Open 2d53 opened 1 day ago
Just tested and yes it is not working for anything that is a true/false event. I will fix in next release. In the meantime, either downgrade to v3.4.11 or you can amend the following code.
In custom_components/wiser/events.py change line line 70 from
hasattr(old_state, event[CONF_ATTRIBUTE])
and getattr(new_state, event[CONF_ATTRIBUTE])
and getattr(old_state, event[CONF_ATTRIBUTE])
to
hasattr(old_state, event[CONF_ATTRIBUTE])
and getattr(new_state, event[CONF_ATTRIBUTE]) is not None
and getattr(old_state, event[CONF_ATTRIBUTE]) is not None
Like this (now in dev branch) - https://github.com/asantaga/wiserHomeAssistantPlatform/blob/2eb70fc9c6d397c86c92f433ec5fad7ea2c132ba/custom_components/wiser/events.py#L71
Thanks for the prompt response Mark. I'll stay at 3.4.10 until the next release comes out.
I have automation to turn on a switch, triggered when climate.wiser_bathroom starts heating, and to turn it off when it stops heating. Has worked perfectly for a year. After upgrade to 3.4.12, the triggers did not fire at all. Nothing in the logbook.
Reverted to 3.4.10 and everything back to normal, and the logbook shows
Example of the automation