![]() |
Shelly 3em- MQTT - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Shelly 3em- MQTT (/showthread.php?tid=5834) |
Shelly 3em- MQTT - mariosp - 13.01.2025 Hello guys , I have made integration with a shelly 3em over mqtt, in the mqtt explorer there is not appear the total consumption . is there any way i can make a scrit to add L1 consumption- L2 consumption - L3 consumption so i can take the total consumption Thank you in advance! RE: Shelly 3em- MQTT - admin - 13.01.2025 See this: https://forum.logicmachine.net/showthread.php?tid=2316&pid=14506#pid14506 RE: Shelly 3em- MQTT - mariosp - 14.01.2025 (13.01.2025, 12:56)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=2316&pid=14506#pid14506 Thank you!!! RE: Shelly 3em- MQTT - mariosp - 01.02.2025 (14.01.2025, 08:08)mariosp Wrote:i tried it but the number i get it realy big is any way to display smaller number i tried this code but it returns 0(13.01.2025, 12:56)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=2316&pid=14506#pid14506 Code: local offset = event.getvalue() * 0.001 RE: Shelly 3em- MQTT - admin - 01.02.2025 In general grp.write(event.dst, value) should not be used in event scripts. You are creating an infinite loop where each write triggers the script again. If you want to scale the resulting value simply modify the tag_sum script. You won't need an additional script this way. Code: grp.checkwrite('1/1/1', sum * 0.001) |