help needed with script #1445
-
Hello,
but it throws an error on plugzigbee.update():
but the load power is fetched, in this case 50.7 watts ;) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I think the unexpected result comes as it is requesting two properties and just getting one back. Maybe @starkillerOG knows what's the solution here :-) |
Beta Was this translation helpful? Give feedback.
-
@exeq89 rytilahti is right, we are requesting both the status (on/off) and the load power and only getting the load_power back. It is a simple fix, we just need to figure out the correct name of the status property. Could you try the following script:
These are my best guess for what the correct name of the status property is. |
Beta Was this translation helpful? Give feedback.
-
Hello
|
Beta Was this translation helpful? Give feedback.
-
The PR to fix the issue is here: #1449 In the mean time you can use the following command to get the status and load power:
|
Beta Was this translation helpful? Give feedback.
The PR to fix the issue is here: #1449
However that requires a new version of python miio to be released.
In the mean time you can use the following command to get the status and load power: