Closed cambronf closed 9 months ago
Hi! Do you try to turn on a P1 Meter?
The state_set
call is only supported for the HWE-SKT (Energy Socket), to turn on and off the relay. See https://api-documentation.homewizard.com/docs/endpoints/api-v1-state
Maybe this can help preventing confusion like that; https://github.com/homewizard/python-homewizard-energy/pull/326 ?
I have issues to run the example under Python 3.9 (and 3.11). Code was updated to:
Output of .identify, .device and .data is OK, but await api.state_set(power_on=True) is causing following error:
Calling state_set without any argument give no errors, but the expected output is: "At least one state update is required"
Is the state_power call necessary? What is the purpose of this call, as everything works fine with out this call.