![]() |
|
Cumulative sending script - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Cumulative sending script (/showthread.php?tid=6322) |
Cumulative sending script - Domoticatorino - 22.02.2026 Hi, I have to send cyclically, with a scheduler script, the value of 110 group addresses. The value is not the same for all address but I have to send its own group address value. This because some devices lost theirs settings. An example could be: value = grp.getvalue('8/0/36') grp.write('8/0/36' , value) But I have to do it for 110 group address. Is there a more efficient system? In case LM reboots, how can I be sure that LM send the value saved? Do you suggest to use this following: storage.set('8/0/36', value) And this following in "Init" script: mydata = storage.get('myobjectdata') Also in this case what could beĀ a more efficient system? Thanks. BR RE: Cumulative sending script - admin - 23.02.2026 See this: https://forum.logicmachine.net/showthread.php?tid=1878&pid=11677#pid11677 There's no point in saving values into storage because it's synced the same way as the main database. If you have frequent power outages then the most robust solution is to install a UPS. RE: Cumulative sending script - Domoticatorino - 23.02.2026 (23.02.2026, 06:57)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=1878&pid=11677#pid11677 Thanks!! |