Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sensor for chair position
office_position:
friendly_name: "Office position"
value_template: >-
{% if states.binary_sensor.chair.state == 'on' %}
Standing up
{% else %}
Sitting down
{% endif %}
icon_template: >-
{% if states.binary_sensor.chair.state == 'on' %}
mdi:human-handsup
{% else %}
mdi:human-handsdown
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.