Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - sensor:
- - name: "Hot Tub Watts"
- unique_id: hot_tub_watts
- unit_of_measurement: "W"
- state: >
- {% set AmpA = states('sensor.hot_tub_current_a')|float(0) %}
- {% set AmpB = states('sensor.hot_tub_current_b')|float(0) %}
- {% set W = (AmpA + AmpB) * 120 %}
- {{W|round(2)}}
- - sensor:
- - name: "Hot Tub Amps"
- unique_id: hot_tub_amps
- unit_of_measurement: "A"
- state: >
- {% set AmpA = states('sensor.hot_tub_current_a')|float(0) %}
- {% set AmpB = states('sensor.hot_tub_current_b')|float(0) %}
- {{ max(AmpA,AmpB) }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement