Power Failure
Jump to navigation
Jump to search
In real-life power fails, the power is never restored cleanly. It sometimes comes on and off several times.
Smarthome design is such that "in the event of a power loss, the SwitchLinc Dimmer will return to its last brightness level when power is restored." Consider experiencing a power failure at night when things are on, then the power being restored the next day after you've left the house. Everything could be on, wasting all that power you've saved!
We can fix this. We'll need to ensure that a program runs when power is restored to the ISY.
Caveats;
- Devices will return to the last brightness level when power is restored until the ISY can take over. The ISY can take several minutes to fully reboot.
- Every time you start the ISY, it will run the power restore code.
Steps;
- Add a program, POWER FAILED, which will launch another program. It must be done this way to prevent the second program from running all the time.
- Add a program, POWER RECOVERY, which will set things as you want them. In my example, if it's daytime, turn everything off. If it's night, turn on a single lamp.
- In Programs, Summary, for POWER FAILED, turn ON "Run at Startup"
Notes;
- Change the time of day to your liking.
- Change the SMS notification as you choose. Mine is Subject: "Power Restored ${sys.time12}" and Body: "There was a power failure. ISY is now running again."
POWER FAILED;
If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Send Notification to "Myself" content "Power Restored" Enable Program 'POWER RECOVERY' Run Program 'POWER RECOVERY' (If) Else - No Actions - (To add one, press 'Action')
POWER RECOVERY;
If ;If there is some light From Sunrise - 1 hour To Sunset + 1 hour (same day)! Then ;Turn everything off then disable this program Set Scene 'My_Home_ISY' Off Disable Program 'POWER RECOVERY' Else ;Turn everything off, turn on a soft light then disable this program Set Scene 'My_Home_ISY' Off Set Scene 'Downstairs / Soft_Light' On Disable Program 'POWER RECOVERY'
Please let me know if you find any anomalies or can improve functionality.