Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- binary_sensor:
- - platform: template
- sensors:
- asciugatrice_run:
- friendly_name: 'Asciugatrice in funzione'
- device_class: power
- delay_on:
- minutes: 10
- delay_off:
- minutes: 3
- value_template: >-
- {{ states('sensor.asciugatrice_watts')|float > 50 }}
- icon_template: >
- {% if is_state('binary_sensor.asciugatrice_run','on') %}
- mdi:tumble-dryer
- {% else %}
- mdi:tumble-dryer-off
- {% endif %}
- - platform: template
- sensors:
- lavatrice_run:
- friendly_name: 'Lavatrice in funzione'
- device_class: power
- delay_off:
- minutes: 8
- value_template: >-
- {{ states('sensor.lavatrice_watts')|float > 20 }}
- icon_template: >
- {% if is_state('binary_sensor.lavatrice_run','on') %}
- mdi:washing-machine
- {% else %}
- mdi:washing-machine-off
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement