-
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qmi.powerstrip.v1 no longer working on 0.40 #334
Comments
Could you provide the output of:
The the command returns the same error please reduce the requested properties gradually. May be one of the properties isn't supported. |
/usr/local/bin/miiocli powerstrip --ip 192.168.1.206 --token c48f53f25f913d2dbe226ccd9f0bf4bc raw_command get_prop "['power','temperature','current','mode','power_consume_rate','voltage','power_factor','elec_leakage']" Running command raw_command It doesnt work even with one parameter root@pi3:/home/pi# miiocli powerstrip --ip 192.168.1.206 --token c48f53f25f913d2dbe226ccd9f0bf4bc raw_command get_prop "['power']" |
This is another bug. :-( Please use:
instead. |
Not working too: root@pi3:/home/pi# mirobo --ip 192.168.1.206 --token abc123 raw_command get_prop "[ 'power', 'temperature', 'current', 'mode', 'power_consume_rate', 'voltage', 'power_factor', 'elec_leakage']" |
This is the expected error. Now reduce the number of properties. Remove the last one first. Try to identify the problematic property:
|
Maybe im doing something wrong or it is a format or sintaxis issue but if I send just ONE command, it works fine, but i cant send 2 commands: root@pi3:/home/pi# mirobo --ip 192.168.1.206 --token abc123 raw_command get_prop "[ 'power', 'temperature']" But i can ask for power and temperature separatedly. root@pi3:/home/pi# mirobo --ip 192.168.1.206 --token c48f53f25f913d2dbe226ccd9f0bf4bc raw_command get_prop "[ 'power',]" root@pi3:/home/pi# mirobo --ip 192.168.1.206 --token c48f53f25f913d2dbe226ccd9f0bf4bc raw_command get_prop "[ 'temperature',]" |
Did you block the internet access of the device? Could you try to unblock just for testing? |
wow, you did the trick ! Yes i had no internet on this powerstrip.... |
Now it works using the powertrip command: /usr/local/bin/miiocli powerstrip --ip 192.168.1.206 --token abc123 status |
Good to know. In this case it's hard to improve the behaviour. Are you able to request all properties (one by one) if you block the internet? I could implement a fallback here. If the request of the property list fails the values are retrieved one by one. |
No, i think this is a issue regarding powerstrip, if i request one property i get an empy value just []. Let me check on wireshark what behaviour the powerstrip has. Thank you so much !!!! |
You are welcome! Please close the issue if it's solved. |
Just hit the same So Dustcloud can emulate the MiIO cloud. I don't have cloud keys (which are different from tokens), so I'm running a janky modified dustcloud server that can't even proxy anything to the cloud — any "advanced" (non-ping) messages are not even processed due to checksum exceptions. And yet, just responding to pings on both UDP and TCP is enough to make it return the data again \o/ I'll release a much simpler fake cloud server soon. |
@unrelentingtech feel free to create a PR to add it to the (newly created) related projects section (https://github.com/rytilahti/python-miio/blob/master/README.rst#other-related-projects) to make it easier to find :-) I wouldn't be surprised if that could also be useful for some other devices. |
This is a QMCXB01ZN powerstrip ( 3 usb ) i have just upgraded to version 0.40
I can get the info about the device:
But when i try to get the status i get this error:
It worked before using 0.39
Others powerstrip v2 and so on, working fine.
The text was updated successfully, but these errors were encountered: