How would I do this....?

I made a smoke room for my mothers friends, I had to put an electric heater in there because its almost winter here in Canada!!!
The electric heater is on a high power smart plug zigbee.

So far I got rule machine to turn off the heater and turn it back on at set temperatures thanks to the new temperature zigbee sensor..
I have a window contact sensor thats able to turn off the heater plug if the window opens.. they seem to like to air out the room if it gets smokey!!!

here is the problem, if the window is open the heater goes off, but if the temperature drops to my set point the heater goes back on, even if the window is open!!

is there away to get rule machine to check if the window is open say every 10 seconds? and if after checking and the window is open, have it automatically turn off the zigbee plug? I'm not sure if this is the best way to do it, or if there is another way, but defiantly looking for some smarties out there :slight_smile:

I feel that checking every 10 seconds would spam your network quite a bit. Would you ever want the heater on if the window is open? If not, put a condition on your heater set point that if the window is open, the heater cannot turn on.

On a personal note, I stay away from using smart plugs on electric heaters unless it's just to turn them off.

1 Like

I think it would be best to see screenshots of your rules.
I am thinking though maybe in the rule to turn it on by temp, you could add a wait for conditions to wait for the windows to be closed before it kicks on.

2 Likes

Seems like you could just add a required expression of "window closed" to your rule. This won't turn it off, just prevent it from turning on again, assuming that's what your rule does, but it sounds like you already have a way to handle that. If not, share your current rules, and someone can give better help.

EDITING TO ADD: Hubitat is generally described as an event-driven system. While time-based approaches may have their place, it's almost always better to look at how you can respond to events instead (or, in this case, respond to events or not based on some other state, which itself is determined based on events). That's why I'm suggesting this type of approach first.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.