pauln / tailwind-home-assistant

Tailwind iQ3 integration for Home Assistant
Apache License 2.0
25 stars 3 forks source link

Garage Door Opening is not working as a trigger #23

Closed truckerboy closed 1 year ago

truckerboy commented 1 year ago

Tailwind IQ3 Firmware version: 9.97 HACS integration version: 1.33.0

"Garage Door Opening" is not working as a trigger. Automation is failing silently and log book shows no reference.

"Garage Door Opened" and "Garage Door Closed" are working fine as triggers on the same automation (turn on light switch X).

Is this a recent regression given no one else seems to have reported this?

in debug mode, no errors are reported when I open one of the garage doors: 2023-10-01 13:04:00.222 DEBUG (MainThread) [custom_components.tailwind_iq3] tailwind reported state: 4 2023-10-01 13:04:00.223 DEBUG (MainThread) [custom_components.tailwind_iq3] Finished fetching tailwind devices data in 0.014 seconds (success: True) 2023-10-01 13:04:03.524 INFO (MainThread) [custom_components.tailwind_iq3.cover] Open door: 0 2023-10-01 13:04:10.218 DEBUG (MainThread) [custom_components.tailwind_iq3] tailwind reported state: 5 2023-10-01 13:04:10.218 DEBUG (MainThread) [custom_components.tailwind_iq3] Finished fetching tailwind devices data in 0.011 seconds (success: True)

pauln commented 1 year ago

The Tailwind API doesn't provide "opening" and "closing" states (or events) - presumably because it can't tell when the door stops moving (in order to transition from "opening" to "open"), as the sensor only tells it whether the door is fully closed. As such, there isn't really a way to report that a door is "opening" - only that it has opened (or closed).

truckerboy commented 1 year ago

Understood but then why make these triggers available on Home Assistant if they don't work?

pauln commented 1 year ago

Those come from the core HA "cover" entity/platform, and I'm not aware of a way to remove/disable them for a cover implementation (as the list of supported features doesn't include any options for the "opening" / "closing" states - this component only advertises itself as supporting the basic "open" and "close" features).