Skip to content

Instantly share code, notes, and snippets.

@bogdanbujdea
Created November 18, 2020 21:01
Show Gist options
  • Select an option

  • Save bogdanbujdea/f5d5ef88013d53c9ffd81f6ad61dab6e to your computer and use it in GitHub Desktop.

Select an option

Save bogdanbujdea/f5d5ef88013d53c9ffd81f6ad61dab6e to your computer and use it in GitHub Desktop.
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