[UPDATED] Check Open Windows & Doors

@Cobra Andy is the app supposed to alert you if the window is opened after the thermostat is in cooling mode or does the window have to be open prior to the thermostat coming on in cooling mode? thanks

EDIT: @Cobra I have tried it with the window open prior to cooling and tried it opening the window while cooling is already on and I cannot get any speech coming out with either way.

Is there still something to do to the app?

@Cobra EDIT 2: Line 51 commented out still causes an error. I saw what it said on line 58 and commented out that line. I was then able to save without error. Although I am not getting any reaction to anything I try. No speech, no pushover.

@Cobra Have you been able to figure this one out? :slightly_smiling_face: I just tried re-doing everything again and it still has no response. Thanks

@Cobra Ok, here is what I did. I changed line 246 in the child app from thermostatMode.heat to thermostatOperatingState.heating and line 247 in the child app from thermostatMode.cool to themostatOperatingState.cooling

This seems to work fine when the thermostat came on and there is a window or door open. It announces. The one thing I notice is since the thermostat is already in cooling, heating state that when you close the door/window it does not announce (I had text in the NO box) that there are no longer any door/windows open. So obviously it doesn't check for a cooling, heating state or window/door status again.

Is it possible to get it to recognize the thermostat is still in cooling, heating and if a door/window is still open and announce it and when you do close them all that it says they are all closed, if you have text there in the box. Thanks

@Cobra Any news on my replies to this app? I noticed there was no response. If you are not doing anything anymore with this then just let me know. thanks

The way the app is contructed, it needs a ā€˜triggerā€™ to run the check process.
In your use case the trigger is the themostat changing to cooling
I donā€™t have a connected thermostat so was using a virtual to test.
If you say the attribute ā€˜themostatOperatingStateā€™ is the correct one then that can easily be changed.

This would require a checking routine to run every x seconds to checl if the stat was heating or cooling
And another one to run if a window opened or closed.

Iā€™ll add these to the feature list but I donā€™t see it happening too soon.
I am spead a little thin atm as Iā€™m maintaining so many apps and working on two other projects.

Andy

Understood. Thanks for the reply.

I've also looked at this to monitor windows when my thermostat is running, but it's a bit complex because:

  • thermostatMode.heat means that thermostat is set into heat mode (ie: is set for heat/cooling/off)
  • thermostatOperatingState.heating means that thermostat is actually heating (it could be heating\cooling or idle)

So I think that thermostatMode it's better than thermostatOperatingState, because (at least in my opinion) it should alert also if something is open and thermostat is in Mode heat but OperatingState idle (because it has already reached the heating setpoint).

At the end I think I'm going to write it with RM4 that should be able to cover all cases..

I look at this differently, I want * thermostatOperatingState.heating to be the trigger so that I am not heating the outside when the heat turns on and I have doors open.

@napalmcsr Change line 246 and 247 to the following:

These lines are in the Child App.

line 246 - replace thermostatMode.heat with thermostatOperatingState.heating
line 247 - replace thermostatMode.cool with thermostatOperatingState.cooling

1 Like

If thermostat mode is heat and it has already reached the setpoint (so operating state is idle), if you open a door/window you are implicitly heating outside, because indoor it's already (so) hot that thermostat stopped and the opening could potentially restart heating (even after door/window has been closed depending on airflow and thermostat refresh time) to bring again desired indoor temperature

I guess I can see a use for both. I live in a hot climate so currently, I have my thermostat in cool mode. I open the door when it is colder outside than inside to cool down my house. I forget to close the door, so when the AC turns on, I want to be told I forgot to close the door.

I did this as soon as you put it up there a couple of posts ago. Thanks!

Has the location if the app on GitHub changed.

A am getting an error message when clicking on the link,

Thanks,
Marcus

Cobra Apps??

Any other way to get this? As it is perfect for what I am trying to do or is this one dead now?

Cobra has said he was going to return with a Member's website. The current site previews this, I think...

Well that is a shame, oh well thanks for that though.

If you arenā€™t afraid of a long rule...

Wow that is one long rule! Thanks for that mate will have a look into it and see what can do.

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