Thermostat control based on Door Open Sensors


I just wanted to give you a “heads-up” so you plan for the extra triggers.

For example, one logic in your current piston says:

IF Thermostat 1's mode changes
    Change Thermostat 1's mode

There are exceptions to the rule, but generally speaking, I would not recommend sending a command that also triggers the piston again from the top.

(you might be OK though because it is almost the last command sent)


Hey. Thanks for the info. Which import do you have? I posted a more uptodate version a couple weeks back that may have fixed this issue.


Thanks for the review. I definitely agree I need to add some efficiency as I better understand this language/system.


Agree, this was the solution. I also noticed it reposted the updated version. Was not aware that setting the value initially was always setting it (I did not read all the info on the programming screen :wink:


thanks for the pointer. this is a slightly different approach to programming and learning the in’s and out’s :wink:


I’m trying to use these 2 scripts and I’m running into a challenge. I am only controlling 1 door, and I want it to push message me after 2 minutes and every 2 minutes thereafter (for 5 repeats. I’m not getting the first push (of 2 minutes), but after 4 minutes I’m getting one that says it’s been open for 3 minutes. Anybody willing to have a look please? Also, I’d like the door close message to trigger right away if possible, rather than waiting through the last 2 minute cycle.


Why can’t I see my netatmo thermostats that via the netatmo hub is connected to ST. Shouldn’t that be able to work, or is it a problem that the thermostats are connected to a separat hub?