andig / homebridge-fritz

Homebridge platform for Fritz!Box router and supported DECT devices
MIT License
74 stars 21 forks source link

Fritz Dect 301 - Open Window mode #60

Open KarstenS123 opened 5 years ago

KarstenS123 commented 5 years ago

Is there a way to add a function to turn the open window mode on and off?

Currently I have time based rules , geofencing rules and rules for sensors on my windows.

The issue is: all of them overwrite each other.

So for example when a window is still open while a time based rule get acive, then this rule will change the temperature even when the window is still opened.

With an active open window mode, it would change the temperature too, but this change does not disable the open window mode.

So this would be a better combination together with window sensors in my opinion.

andig commented 5 years ago

Dont think so as the thermostat does that on its own?

KarstenS123 commented 5 years ago

I don't know. In this case, I'm just a user.

KarstenS123 commented 5 years ago

At least, it is visible in the FritzOS UI when active.

If I would be the coder of the firmware, I would have some kind of switch within. If not for productive use, then for testing scenarios.

https://cdn.discordapp.com/attachments/317705734508904450/552601685474934815/Fritz.JPG

andig commented 5 years ago

@KarstenS123 I'm waiting for intial feedback on https://github.com/andig/homebridge-fritz/pull/62. Once that works we can tweak it to disable the ContactSensor function.

andig commented 5 years ago

Added support for disabling window sensor in b5c79ae46a4f9ffc4d854655c6a9eac7a6e865e6

KarstenS123 commented 5 years ago

Interesting. So maybe one step closer to turn the windows open mode on and off by an external window sensor?

andig commented 5 years ago

Not really. The config only allows to enable/disable it entirely.

KarstenS123 commented 5 years ago

Maybe I found a workaround.

When one of these settings is active...

https://cdn.discordapp.com/attachments/317705734508904450/584332546167406605/unknown.png

... other changes by Homekit rules will silently saved, but the summer or holiday setting will stay active. Even manually changes of temperature or mode selection will not disable these modes.

The display of the Fritz!DECT looks like this when one of these modes is active:

https://cdn.discordapp.com/attachments/317705734508904450/584331928275124234/IMG_1535.JPG

So we just need some kind of switch, which I can turn on in Homekit when the sensor recognises an opened window and to turn it off, when the window get closed. These switch has just to setup the mode with lets say 01.01. to 31.12. and remove it when disabled.

(I can also write in german, when it would be easier)

appliko commented 4 years ago

Could you just switch it off when window is open ? Effect is same

KarstenS123 commented 4 years ago

Could you just switch it off when window is open ? Effect is same

Turning off is not persistent.

Beside window open/close rules I do have geofencing rules.

So when a window is open and the last one leave the house, the "off" will get overwritten by "17°C" which will be set by the geofencing rule.

Thats not happening with the vacation mode. This one stays active and will not get deactivated by temperature changes done by other rules.

appliko commented 4 years ago

I did something similar using dummy switches. I have a switch for "off" mode and a switch for "away". Every time I change temp I look the flags and I set different temps (or ignore it)

KarstenS123 commented 4 years ago

Every time I change temp I look the flags and I set different temps (or ignore it)

Looking at flags is something Apple Homekit currently doesn't provide.

appliko commented 4 years ago

Homekit not. But Homebridge yes, using homebridge-dummy switches I change the switches based on events, and I look for switches on shortcuts. It is cool and it works

GottZ commented 3 years ago

just wanting to let you know openhab can set it: https://community.openhab.org/t/avm-fritz-binding-does-not-recognize-radiator-mode-window-open/70265/11

maybe it can be stolen from the bindings sourcecode.

just here to let you know this is not just a read only state.