Skip to content

help needed with script #1445

Answered by starkillerOG
exeq89 asked this question in Q&A
Jul 7, 2022 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

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:

from miio import Gateway
gateway = Gateway("192.xxxxx", "token")
gateway.discover_devices()
devices = gateway.devices
plugzigbee = devices["lumi.4cf8cdf3c7e54c7"]
print(plugzigbee.get_property_exp(["load_power"]))
print(plugzigbee.get_property_exp(["channel_0"]))

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@starkillerOG
Comment options

Comment options

You must be logged in to vote
1 reply
@starkillerOG
Comment options

Comment options

You must be logged in to vote
1 reply
@exeq89
Comment options

Answer selected by exeq89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants