Wiser for KNX storage.set - Printable Version +- Logic Machine 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: Wiser for KNX storage.set (/showthread.php?tid=3339) |
Wiser for KNX storage.set - francesco.bacchin - 03.05.2021 I'll explain the problem, I went to create a Lua script that saves me the values of a lamp so that the next time it is turned on it turns me on with the last RGB data saved. If I go to turn off the power, however, I lose the saved data and when I press the power button it makes me come out a wrong color on the lamp. Can you explain why? RE: Wiser for KNX storage.set - admin - 03.05.2021 To prolong the SD card lifetime the data and storage are saved every 30 minutes. For correct power down sequence use System > Shutdown in System config. Otherwise there's a chance of corrupting the file system if you cut the power off abruptly. RE: Wiser for KNX storage.set - francesco.bacchin - 19.05.2021 (03.05.2021, 10:27)admin Wrote: To prolong the SD card lifetime the data and storage are saved every 30 minutes. For correct power down sequence use System > Shutdown in System config. Otherwise there's a chance of corrupting the file system if you cut the power off abruptly. ok, but what if I lose power inside my home? I wish I could turn my lights back on with the last saved color RE: Wiser for KNX storage.set - Erwin van der Zwart - 19.05.2021 If you have changed the color just before an power outage you might return to the older color before the last change. Nothing you can change about that, placing a UPS would be the only way to keep it up and running. Given the fact that an power outage is quite rare (at least in the NL) I don’t see the problem.. |