Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - platform: template
  2. sensors:
  3. sma_power:
  4. value_template: >-
  5. {% if states('sensor.sma_power') | float < 0 or states('sensor.sma_power') | float > 3000 %}
  6. 0
  7. {% else %}
  8. {{ states('sensor.sma_power') }}
  9. {% endif %}
  10. friendly_name: 'Power'
  11. unit_of_measurement: 'Watt'
  12. icon_template: mdi:flash-circle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement