@Vard0 wrote:
Hi
I have a Shelly EM that measures Voltage and Watts.
I’d like to calculate the amps draw by dividing watts by voltage.
Iv’e tried using adding this to my configuration.yaml but it registers as a non-numeric sensor.
value_template: "{{ ((states.sensor.shelly_shem_b9e7ba_2_current_consumption | float) / (states.sensor.shelly_shem_b9e7ba_voltage | float)) | round(0) }}"
Any pointers as to where I am going wrong?
Thanks
Posts: 1
Participants: 1