I’ve got some gosund smart plugs that i’ve managed to pull current, power and voltage. But the plug displays current in milliamps (mA), and i’d like to convert this to amps so it’s uniform with my other smart plugs.
This is the template sensor i use to pull the current (mA) data from the plug:
- platform: template
sensors:
smartplug4_current:
value_template: >-
{{ states.switch.smartplug4.attributes.current }}
unit_of_measurement: 'mA'
I’ve tried a few things, but they either fail the configuration validation, or return unavailable.
Any ideas what i can try?
I was hoping i could just use another template to take the current value and then multiply it by 1000.