roberthleeii Posted February 10, 2022 Share Posted February 10, 2022 is there a way to store variable's values if there is a power outage or you have to restart the ISY? Link to comment
BamBamF16 Posted February 10, 2022 Share Posted February 10, 2022 When you store variable value also set it's initialization value to the same. Link to comment
roberthleeii Posted February 10, 2022 Author Share Posted February 10, 2022 8 hours ago, JAbraham said: When you store variable value also set it's initialization value to the same. Thank you, I looked for something like that when I was writing a program but did not see it. Can you tell me how i would do that? Link to comment
larryllix Posted February 10, 2022 Share Posted February 10, 2022 Leak.Kitchen.OK - [ID 0133][Parent 00CD] If 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off Then $sLeak.Kitchen Init To $cLEAK.DRY <---------- ***************** $sLeak.Kitchen = $cLEAK.DRY Wait 25 hours Run Program 'Leak.Kitchen.OK' (Else Path) Else $sLeak.LowBatt.room Init To $cROOM.KITCHEN <-------------- *************** $sLeak.LowBatt.room = $cROOM.KITCHEN $sLeak.Kitchen Init To $cLEAK.LOWBATT <--------------------- ************* $sLeak.Kitchen = $cLEAK.LOWBATT Wait 23 hours Run Program 'Leak.Kitchen.OK' (Then Path) 'Init to' is at the bottom of the arithmetic operator pulldown list Link to comment
BamBamF16 Posted February 10, 2022 Share Posted February 10, 2022 New Program - [ID 0009][Parent 0001] If Time is 9:00:00AM Then $s.Test += 1 $s.Test Init To $s.Test Else - No Actions - (To add one, press 'Action') Where you program the += change that to Init To. Jeff Link to comment
roberthleeii Posted February 10, 2022 Author Share Posted February 10, 2022 11 hours ago, larryllix said: Leak.Kitchen.OK - [ID 0133][Parent 00CD] If 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off Then $sLeak.Kitchen Init To $cLEAK.DRY <---------- ***************** $sLeak.Kitchen = $cLEAK.DRY Wait 25 hours Run Program 'Leak.Kitchen.OK' (Else Path) Else $sLeak.LowBatt.room Init To $cROOM.KITCHEN <-------------- *************** $sLeak.LowBatt.room = $cROOM.KITCHEN $sLeak.Kitchen Init To $cLEAK.LOWBATT <--------------------- ************* $sLeak.Kitchen = $cLEAK.LOWBATT Wait 23 hours Run Program 'Leak.Kitchen.OK' (Then Path) 'Init to' is at the bottom of the arithmetic operator pulldown list 10 hours ago, JAbraham said: New Program - [ID 0009][Parent 0001] If Time is 9:00:00AM Then $s.Test += 1 $s.Test Init To $s.Test Else - No Actions - (To add one, press 'Action') Where you program the += change that to Init To. Jeff Thank you!! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.