twrecked / hass-virtual

Virtual Components for Home Assistant
GNU General Public License v3.0
167 stars 28 forks source link

virtual swith service switch.turn_on has reverse meaning #58

Closed cayossarian closed 1 year ago

cayossarian commented 1 year ago

Deployed a simple virtual switch:

virtual: switch:

Go to HA UI->Developer Tools->Services

service: switch.turn_on data: {} target: entity_id: switch.virtual_homekit_integration_init_switch

causes the switch to turn OFF. turn_off causes the swtich to turn ON

Perhaps at least document this behavior if HA is broken as I see a an open issue there since 2020. Maybe HA decided they couldn't fix that call because it would break too many implementations???

https://github.com/home-assistant/core/issues/42798#issuecomment-721685421

cayossarian commented 1 year ago

This is not an issue with this repository after all it seems. The issue is a synchronization problem with a remote system state.