zaphod Posted May 17, 2013 Share Posted May 17, 2013 I have a small electric water heater in my pool cabana that is on a relay that is controlled by a Card Access Contact Relay. Note that this is because the heater consumes too much power (1500W I think) to use a regular C4 switch or outlet switch. I want the heater to turn on at 10am on weekends only and turn off at 11 pm. I also have a 6 button switch tied to this to manually turn it on and off.Here is how I am currently programming it. I have a Boolean Variable called Heater and Scheduler Events called Heater On at 10AM and Heter Off at 11PMHere is my code:When Scheduled event Heat On executes? If month = May, June, July, August or September ?If day of the week is = Sunday or Saturday ->Variables->Heater=TrueWhen Variable Variables-> Heater changes?If Variables->Heater is True ->Turn LED:2 ON on Cabana->6-Button Keypad ->Turn the Cabana->Heater on?If Variables->Heater is False ->Turn LED:2 OFF on Cabana->6-Button Keypad ->Turn the Cabana->Heater offIs this the best way of doing this or is there a better way? Using the Variable Heater On also simplifies using the 6 button as well since I just toggle the variable when the 6 button is pushed. Link to comment Share on other sites More sharing options...
alf1096 Posted May 17, 2013 Share Posted May 17, 2013 Looks fine just be sure when it turns off to set the variable back to false. Which you are probably doing in heater off schedule and the 6 button press. Link to comment Share on other sites More sharing options...
zaphod Posted May 17, 2013 Author Share Posted May 17, 2013 Yes, I am shutting of the heater by setting Heater=False in the Scheduler at 11pm. And a button push toggles the Variable Heater. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.