Advertisement
energywave

Funzionamento lavatrice / asciugatrice

Jan 26th, 2021
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.99 KB | None | 0 0
  1. binary_sensor:
  2.   - platform: template
  3.     sensors:
  4.       asciugatrice_run:
  5.         friendly_name: 'Asciugatrice in funzione'
  6.         device_class: power
  7.         delay_on:
  8.           minutes: 10
  9.         delay_off:
  10.           minutes: 3
  11.         value_template: >-
  12.           {{ states('sensor.asciugatrice_watts')|float > 50 }}
  13.         icon_template: >
  14.          {% if is_state('binary_sensor.asciugatrice_run','on') %}
  15.             mdi:tumble-dryer
  16.           {% else %}
  17.             mdi:tumble-dryer-off
  18.           {% endif %}
  19.   - platform: template
  20.     sensors:
  21.       lavatrice_run:
  22.         friendly_name: 'Lavatrice in funzione'
  23.         device_class: power
  24.         delay_off:
  25.           minutes: 8
  26.         value_template: >-
  27.           {{ states('sensor.lavatrice_watts')|float > 20 }}
  28.         icon_template: >
  29.          {% if is_state('binary_sensor.lavatrice_run','on') %}
  30.             mdi:washing-machine
  31.           {% else %}
  32.             mdi:washing-machine-off
  33.           {% endif %}
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement