Skip to content
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

Error when get multi prop yunmi.waterpuri.lx11 (Xiaomi Water Purifier C1) #692

Closed
anhnvme opened this issue May 6, 2020 · 3 comments
Closed

Comments

@anhnvme
Copy link

anhnvme commented May 6, 2020

Hello,

I'm tried get prop with yunmi.waterpuri.lx11. But when i get single prop, everything is OK

root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["run_status"]'
Running command raw_command
[0]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f1_totaltime"]'
Running command raw_command
[8640]
root@raspberrypi:/home/homeassistant#
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f1_usedtime"]'
Running command raw_command
[585]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f2_totaltime"]'
Running command raw_command
[17280]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f2_usedtime"]'
Running command raw_command
[592]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["tds_in"]'
Running command raw_command
[80]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["tds_out"]'
Running command raw_command
[14]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["rinse"]'
Running command raw_command
[0]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["temperature"]'
Running command raw_command
[28]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["tds_warn_thd"]'
Running command raw_command
[100]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f3_totaltime"]'
Running command raw_command
[8640]
root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["f3_usedtime"]'
Running command raw_command
[592]

And when i'm tried get all prop, i got this error

root@raspberrypi:/home/homeassistant# miiocli device --ip 192.168.31.xxx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_prop '["run_status","f1_totaltime","f1_usedtime","f2_totaltime","f2_usedtime","tds_in","tds_out","rinse","temperature","tds_warn_thd","f3_totaltime","f3_usedtime"]'
Running command raw_command
[0, 'error', 'error', 'error', 'error', 'error', 'error', 'error', 'error', 'error', 'error', 'error']

What i'm wrong ? or some body can help me ?

Thank all

@rytilahti
Copy link
Owner

Some devices are known to limit the number of properties per request, so you could try out to see if it works with two or three properties and keep adding properties until it stops working.

Also, some devices respond with all properties when they encounter an unknown property name, so you could also try what happens if you request ["all"].

@anhnvme
Copy link
Author

anhnvme commented May 7, 2020

Some devices are known to limit the number of properties per request, so you could try out to see if it works with two or three properties and keep adding properties until it stops working.

Also, some devices respond with all properties when they encounter an unknown property name, so you could also try what happens if you request ["all"].

Thanks, Look like, it's only accept single raw command per request.

@rytilahti
Copy link
Owner

This has been supported for long already (#826) so I think this can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants