i am not sure about the Syntax (again )
i do not have the device at home, so i have to make sure the code is working when i upload it to the device which controls some big gas heaters.
What i try to do is an emergency plan when my houscontrolling software crashes.
So in the case MQTT is disconnected i want the heaters to switch on and off between 15-16 degree untill MQTT Broker is online again.
Is this the right code ? Or would you guys change it ?
Code: Select all
on MQTT#Connected do timerSet,8,0 endon on MQTT#Disconnected do timerSet,8,60 endon On Rules#Timer=8 do if [Unten#Temp]<15 mcpgpio,1,1 if [Unten#Temp]>16 mcpgpio,1,0 timerSet,8,60 endon