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

ble_dbg_tbl_dump user ack timeout #1051

Closed
viiy opened this issue May 21, 2021 · 9 comments
Closed

ble_dbg_tbl_dump user ack timeout #1051

viiy opened this issue May 21, 2021 · 9 comments

Comments

@viiy
Copy link

viiy commented May 21, 2021

  • Python 3.9.5
  • miiocli, version 0.5.6

I trying get mibeacon encryption key
run command
miiocli device --ip --token raw_command ble_dbg_tbl_dump '{"table":"evtRuleTbl"}'
token and ip is right but always rescived:
Error: {'code': -9999, 'message': 'user ack timeout'}

@rezmus
Copy link

rezmus commented May 21, 2021

device model? token/ip correct?

@rytilahti
Copy link
Owner

Token & IP are correct as this error message comes from the device itself and not from this library. This error is very generic and can happen for example when the device doesn't know that command, doesn't accept the parameters etc.

Otherwise, knowing the model and the reason why you think this command should work might be helpful.

@viiy
Copy link
Author

viiy commented May 22, 2021

I has 5 devices:
ceiling4(YLXD02YL) x 1
ceiling3(YLXD05YL) x 4

All lamps works well in HA, so token and ip are correct.

Also, another commands is work
miiocli yeelight --ip --token status
miiocli yeelight --ip --token on
miiocli yeelight --ip --token off

@viiy
Copy link
Author

viiy commented May 22, 2021

i maked request from windows before, now i was try from LTS, and all work.

@viiy viiy closed this as completed May 22, 2021
@rezmus
Copy link

rezmus commented May 22, 2021

@viiy when you send from windows might be better to send like this

miiocli device --ip IP --token TOKEN raw_command ble_dbg_tbl_dump {\"table\":\"evtRuleTbl\"}

@viiy
Copy link
Author

viiy commented May 22, 2021

@viiy when you send from windows might be better to send like this

miiocli device --ip IP --token TOKEN raw_command ble_dbg_tbl_dump {\"table\":\"evtRuleTbl\"}

ty

@rytilahti
Copy link
Owner

Is this for yeelight? If yes, should the yeelight.py be extended to add direct support for this?

@rezmus
Copy link

rezmus commented May 24, 2021

@rytilahti it's for some yeelight devices (ceilings, 1s strip) which can pair yeelight bt remotes/dimmer directly. you can read mac and beaconkey of paired device, which can be later used to decrypt payload (but there are also other ways to get this data).

check https://github.com/custom-components/ble_monitor for details. support for yeelight remotes/dimmer was added recently.

@rytilahti
Copy link
Owner

Thanks @rezmus! I think it's fair enough to add it there, makes it simpler and less error-prone than using raw-commands :-)

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

No branches or pull requests

3 participants