Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- sensors:
- sma_power:
- value_template: >-
- {% if states('sensor.sma_power') | float < 0 or states('sensor.sma_power') | float > 3000 %}
- 0
- {% else %}
- {{ states('sensor.sma_power') }}
- {% endif %}
- friendly_name: 'Power'
- unit_of_measurement: 'Watt'
- icon_template: mdi:flash-circle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement