enkama / hass-variables

Home Assistant variables component
90 stars 12 forks source link

Can you add switch method to binary sensor? #74

Closed Bibyte closed 1 year ago

Bibyte commented 1 year ago

I do not need to set true or false value to the binary_sensor, but need to call switch service, then binary_sensor if it is True - change to False. Or if it is False - cahnge to True.

Snuffy2 commented 1 year ago

A variable.toggle_binary_sensor service could possibly be created.

For now though, you can do this with an if-else in an automation, script or template.