I can turn my switch on and off either using Home Assistant or directly from my browser. What I want to do is to be able to have a Pi turn it on and off from a script, and poll it for its status (minimum On/Off, and ideally power consumption).
Digging around on online implies that I should be able to do the switching using Python talking to Home Assistant, but I’ve yet to get that to work. I appear to be able to connect to the broker (on Home Assistant), but that seems to be it .
Logging suggests that it gets the message, but the switch doesn’t operate.
Where to look next ?
Thanks in advance.
Adrian