Hi all,
This is my first post, I’ve been using HA for a couple of months now with various things around the house, but I cannot figure out what I am doing wrong. I am trying to get the W power consumption from the SP2 UK, I have the switch working correctly in HA and have tried to add a sensor which I see but not showing any usage and nor is it showing against the attribute in the switch.
The idea is simple, I want to use the power consumption to notify my children when their electric scooter is charged in the garage, so I’ll write an automation to trigger when the power is <7W for example.
- platform: broadlink
host: 192.168.15.xxx
mac: 'My_Mac_Address'
type: sp2
friendly_name: 'Scooter'
sensor:
- platform: template
sensors:
rig_pow:
friendly_name: "Broadlink Power"
value_template: "{{ states.switch.scooter.attributes.current_power_w }}"
unit_of_measurement: 'W'
Thanks once again for any help you can offer,