Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- sensors:
- broad_light:
- friendly_name: "Broadlink noise"
- value_template: >-
- {% if is_state('sensor.a1_noise', '0') %}
- dark
- {% elif is_state('sensor.a1_noise', '1') %}
- normally
- {% elif is_state('sensor.a1_noise', '2') %}
- light
- {% else %}
- unknown
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement