Hello,
How can you invert values, e.g. for an awning?
Open becomes closed
Closed becomes open?
Thank you and best regards
gerd
See if the ivert helper in the Spook integration can help you.
Let say i have this sensor
binary_sensor.garage_door
now in the templates
- binary_sensor:
- name: "Actual Garage Door"
unique_id: 2e27c7bd-5fff-440a-b3b5-35f4d8d72fa1
device_class: door
state: >
{{not is_state("binary_sensor.garage_door",'on')}}
as it uses the not when its on/open it show off/closed
The Spook integration’s invert helper also invert the action calls.
This might be wanted and then that is probably the best solution, but if that is not wanted, then myle’s solution is better.