UbhiTS/ad-autofanspeed

When temperature changes at the same moment of end time the fan never turns off

haberda opened this issue · 2 comments

Hello,
I noticed that if the home temperature is changing when the end time occurs there seems to be a battle of the callbacks and usually the temperature change callback wins. The result is the fan never turns off. I suggest you save your callback to a variable so when end time comes you can call self.cancel_timer and cancel the callback before calling fan/turn_off.

I can do a pull request later if you want or if you can fix it that's great too.

Great app!

I'm not sure that the likelihood of the temperature changing exactly at the shut off time is very realistic as the shut off happens exactly at the hour, minute and second that you define in the config. Can you please tell me exactly your use case. What and when do you see this happening and your config values.

closing due to no response