niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
515 stars 66 forks source link

how to open aqarq p3 telnet #7

Closed mikeinblue closed 3 years ago

mikeinblue commented 3 years ago

Is there anyone can tell me how to use the custom open telnet command,thank you!

xStars commented 3 years ago

Open Aqara P3 telnet can use python-miio

miiocli gateway --ip xxx.xxx.xxx.xxx --token xxxxxxx raw_command set_ip_info '{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}'

Replace xxx with your ip and token

mikeinblue commented 3 years ago

Open Aqara P3 telnet can use python-miio

miiocli gateway --ip xxx.xxx.xxx.xxx --token xxxxxxx raw_command set_ip_info '{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}'

Replace xxx with your ip and token

Thanks I will have a try.

mikeinblue commented 3 years ago

I am trying to get the token.

xStars commented 3 years ago
  1. Press the button 10 times in a row
  2. P3 will give a sound prompt to restore the factory setting successfully.
  3. Then quickly press the button twice.
  4. If successful, you will hear a ringtone. restart,then Pressing the button for 5 seconds will prompt you to open Mi home app pairing.
mikeinblue commented 3 years ago
  • Press the button 10 times in a row
  • P3 will give a sound prompt to restore the factory setting successfully.
  • Then quickly contact and press the button twice.
  • If successful, you will hear a ringtone. restart,then Pressing the button for 5 seconds will prompt you to open Mi home app pairing.

thank you so much.I will have a try.

mikeinblue commented 3 years ago

finally,I solved it.Thanks for your great work. Screenshot_20210531-231650__01

xquyan commented 2 years ago

Open Aqara P3 telnet can use python-miio

miiocli gateway --ip xxx.xxx.xxx.xxx --token xxxxxxx raw_command set_ip_info '{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}'

Replace xxx with your ip and token

I tried this command but got this error:

WARNING:miio.device:Found an unsupported model 'lumi.aircondition.acn05' for class 'Gateway'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/ ERROR:miio.miioprotocol:Got error when receiving: timed out Error: No response from the device

what can I do?