roberthleeii Posted February 10, 2022 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?
BamBamF16 Posted February 10, 2022 Posted February 10, 2022 (edited) When you store variable value also set it's initialization value to the same. Edited February 10, 2022 by JAbraham 1
roberthleeii Posted February 10, 2022 Author 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?
larryllix Posted February 10, 2022 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 1
BamBamF16 Posted February 10, 2022 Posted February 10, 2022 (edited) 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 Edited February 10, 2022 by JAbraham 2
roberthleeii Posted February 10, 2022 Author 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!!
Recommended Posts