bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
86 stars 23 forks source link

[schedy] Problem with generic actor and short_values #29

Closed SebuZet closed 5 years ago

SebuZet commented 5 years ago

Hi, I've observed strange behavior when device is turned off and Schedy is going to turn it on. Replication steps:

Problem occurs only when schedy is changing state from Off to On. Schedy config Log file

bob1de commented 5 years ago

Hi,

The log looks perfectly ok. Schedy just calls the fan.turn_on and immediately after that the fan.set_speed services. What behaves strange is the fan, which first comes on in the favorite mode (probably because that was the one previously set), then turns off and comes back on in the silent mode. You could fire the two services manually shortly after each other to verify this also happens without Schedy.

Best regards Robert

bob1de commented 5 years ago

You can try using call_reversed: true in the actor config with latest state from master branch to have the services called in reverse order. That will probably help in some situations like yours.

I'm closing this issue. Feel free to comment further on how it goes.

SebuZet commented 5 years ago

Hi, Thanks for checking this for me. Generaly it works. Strange behaviour can be observed only when device is switched on. It can be device specific behaviour. I noticed, that turning my purifier on can be achieved by setting speed mode. If device was powered off then it will be switched on automatiacaly. Thanks once again.

bob1de commented 5 years ago

But then you should really use call_reversed to have it fixed.