Closed mattsaxon closed 2 years ago
Discussions in #25 suggest we may keep this functionality.
this has now been resolved.
a new class, for the controller has been created, which has a callback for when the first zone is requested power or the last zone is turned off.
on the ha side there is a power handler class which then responds to the call back and turned the smart plug on/off.
there is a delay of 60 seconds to turn off so its not turning the mains power on/off repeatedly.
@sjeffrey101 suggested;