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

Add "enable_telnet" to gateway #734

Merged
merged 3 commits into from
Jun 26, 2020
Merged

Conversation

starkillerOG
Copy link
Contributor

Apperently you can enable the telnet service on xiaomi gateways to get root acces into the operating system of the gateway.
Have not tested it myself (do not (yet) want to mess with the operating system).
But everything is discussed in this HomeAssistant community post: https://community.home-assistant.io/t/xiaomi-mijia-smart-multi-mode-gateway-zndmwg03lm-support/159586/61

It has been tried and succeded for multiple users as it seems in the community post.

Apperently you can enable the telnet service on xiaomi gateways to get root acces into the operating system of the gateway.
Have not tested it myself (do not (yet) want to mess with the operating system).
But everything is discussed in this HomeAssistant community post: https://community.home-assistant.io/t/xiaomi-mijia-smart-multi-mode-gateway-zndmwg03lm-support/159586/61
@coveralls
Copy link

coveralls commented Jun 20, 2020

Coverage Status

Coverage decreased (-0.1%) to 74.182% when pulling 4813154 on starkillerOG:patch-12 into b0a28f0 on rytilahti:master.

@starkillerOG
Copy link
Contributor Author

@syssi do you know if the "disable_telnet_service" command also works (just a good guess)?

@syssi
Copy link
Collaborator

syssi commented Jun 20, 2020

I've a spare gateway and will give it a try asap.

@rytilahti
Copy link
Owner

My lumi.gateway.v3 v1.4.1_150 responds with this for this (and the potential) disable command:

miio.exceptions.DeviceError: {'code': -32601, 'message': 'Method not found.'}

@starkillerOG
Copy link
Contributor Author

My lumi.gateway.v3 v1.4.1_150 responds with this for this (and the potential) disable command:

miio.exceptions.DeviceError: {'code': -32601, 'message': 'Method not found.'}

Well the gateway.v3 apperently does not support that command, it schould work on the lumi.gateway.mgl03

It is a bit frustrating that all these diffrent gateway models support diffrent commands.....

@starkillerOG
Copy link
Contributor Author

starkillerOG commented Jun 26, 2020

First https://github.com/rytilahti/python-miio/pull/732/files needs to be merged, since the catched model is used in the log message.

@rytilahti rytilahti merged commit c6702ad into rytilahti:master Jun 26, 2020
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
* Add "enable_telnet" to gateway

Apperently you can enable the telnet service on xiaomi gateways to get root acces into the operating system of the gateway.
Have not tested it myself (do not (yet) want to mess with the operating system).
But everything is discussed in this HomeAssistant community post: https://community.home-assistant.io/t/xiaomi-mijia-smart-multi-mode-gateway-zndmwg03lm-support/159586/61

* catch error on gateway models not supproting enable_telnet

* fix isort
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

Successfully merging this pull request may close these issues.

4 participants