Advertisement
energywave

AC temperature sensor

May 27th, 2021
1,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.57 KB | None | 0 0
  1.  - platform: template
  2.     sensors:
  3.       camera_ac_temperature_status:
  4.         friendly_name: "Stato temperatura condizionatore camera"
  5.         value_template: >-
  6.           {% if state_attr('climate.condizionatore_camera', 'current_temperature') < (state_attr('climate.condizionatore_camera', 'temperature')-0.3) %}
  7.             low
  8.           {% elif state_attr('climate.condizionatore_camera', 'current_temperature') > (state_attr('climate.condizionatore_camera', 'temperature')+0.3) %}
  9.             high
  10.           {% else %}
  11.             normal
  12.           {% endif %}
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement