fjhorrillo / homebridge-airzone-cloud

Homebridge Airzone Cloud
Apache License 2.0
21 stars 3 forks source link

security on switching mode #24

Open tiimjcb opened 2 years ago

tiimjcb commented 2 years ago

greetings everyone,

i'm using this plugin since 8 months now, and it's almost perfect, thanks for working on this. but sometimes, i'm accidentally switching the mode of one of my unit, and so it's screwing up all my system. let me explain :

in the home app, the modes are in this order : off, heat, cool. when i'm on the "cool" mode, and i want an unit to turn off, i have to scroll up to "off", but sometimes i'm doing something wrong with my fingers and it's actually selecting "heat". and then it's screwing everything up. i don't know why, but all the temperatures are changing, and my whole system is reversing (which is terribly bad). i have to go back to the airzone app and revert everything.

so, i was wondering if it could be possible to add something to enable a security, that would block any change from "heat" to "cool". to make it as the only way to switch from those two, is from the airzone app. the only possible change would be from the initial mode, to "off", and from "off", to that initial mode.

for me it's not that stupid, because i personally switch between those two modes two times a year, and it would prevent those kind of accidents.

thanks for reading this, have a great day! :)

fjhorrillo commented 1 year ago

Hello, could you share the logs in debug mode, it should change to the last selected mode, even if you get heat on the way, if you leave it off, it should associate it with off state. Regarding the temperature issue, you mean the target temperatures, right? The system has target temperatures for each mode so it shouldn't be happening, but it's still something I did wrong, with your logs I can analyze it.

tiimjcb commented 1 year ago

hello, sorry for the late answer. unfortunatly, or maybe fortunatly, it's not doing the weird things on temperatures anymore. but it could still be great to implement this security feature. it would be great for exemple to disable the mode we're not using, and to let only the "off" mode, and the mode we're using.

the only way to switch would be on the airzone app if we use this security. even if we would have to restart the plugin each time we switch, as he can get and register the mode in the home app, I think this improvement is necessary when you have a whole system running. I don't want all my system to reverse because I missclicked the button in the home app.

also, the improvement suggested in the issue #8 is great and maybe necessary in some cases. that would be awesome if you implement this in the plugin!