Hello,
i just tested the plug-in with my xiaomi mi robot V1.
Everything appears fine in domoticz, but no action works and the levels remain at 0 (battery for example).
I am using the latest stable version of Domoticz.
When I run the following test command, it hangs on: Test: reading response
sudo service miio_server start
sudo chmod +x test.py
sudo ./test.py
Can you give me a hand ?
In the logs I have the following:
2020-07-30 11:57:18.460 (Aspirateur Xiaomi) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-07-30 11:57:18.460 (Aspirateur Xiaomi) 'HardwareID':'15'
2020-07-30 11:57:18.460 (Aspirateur Xiaomi) 'HomeFolder':'/home/pi/domoticz/plugins/xiaomi-mirobot/'
2020-07-30 11:57:18.460 (Aspirateur Xiaomi) 'StartupFolder':'/home/pi/domoticz/'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'UserDataFolder':'/home/pi/domoticz/'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Database':'/home/pi/domoticz/domoticz.db'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Language':'fr'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Version':'0.1.3'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Author':'mrin'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Name':'Aspirateur Xiaomi'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Port':'0'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Key':'xiaomi-mi-robot-vacuum'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Mode2':'15'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Mode4':'Debug'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Mode5':'selector'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'Mode6':'127.0.0.1:22222'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'DomoticzVersion':'2020.2 (build 12221)'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'DomoticzHash':'74c0c9fcc-modified'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) 'DomoticzBuildTime':'2020-07-12 10:47:23'
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) Device count: 9
2020-07-30 11:57:18.461 (Aspirateur Xiaomi) Device: 1 - ID: 80, Name: 'Aspirateur Xiaomi - Status', nValue: 0, sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device ID: '80'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Status'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device: 2 - ID: 81, Name: 'Aspirateur Xiaomi - Control', nValue: 0, sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device ID: '81'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Control'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device: 4 - ID: 82, Name: 'Aspirateur Xiaomi - Fan Level', nValue: 0, sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device ID: '82'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Fan Level'
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.462 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device: 5 - ID: 83, Name: 'Aspirateur Xiaomi - Battery', nValue: 0, sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device ID: '83'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Battery'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device: 6 - ID: 84, Name: 'Aspirateur Xiaomi - Care Main Brush', nValue: 0, sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device ID: '84'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Care Main Brush'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device: 7 - ID: 85, Name: 'Aspirateur Xiaomi - Care Side Brush', nValue: 0, sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device ID: '85'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Care Side Brush'
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.463 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device: 8 - ID: 86, Name: 'Aspirateur Xiaomi - Care Sensors', nValue: 0, sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device ID: '86'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Care Sensors'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device: 9 - ID: 87, Name: 'Aspirateur Xiaomi - Care Filter', nValue: 0, sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device ID: '87'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Care Filter'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device: 10 - ID: 88, Name: 'Aspirateur Xiaomi - Care Reset Control', nValue: 0, sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device ID: '88'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device Name: 'Aspirateur Xiaomi - Care Reset Control'
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device nValue: 0
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device sValue: ''
2020-07-30 11:57:18.464 (Aspirateur Xiaomi) Device LastLevel: 0
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Pushing 'ProtocolDirective' on to queue
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Pushing 'PollIntervalDirective' on to queue
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Processing 'ProtocolDirective' message
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Protocol set to: 'None'.
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Processing 'PollIntervalDirective' message
2020-07-30 11:57:18.465 (Aspirateur Xiaomi) Heartbeat interval set to: 15.
2020-07-30 11:57:27.966 (Aspirateur Xiaomi) Pushing 'onHeartbeatCallback' on to queue
2020-07-30 11:57:27.980 (Aspirateur Xiaomi) Processing 'onHeartbeatCallback' message
2020-07-30 11:57:27.981 (Aspirateur Xiaomi) Calling message handler 'onHeartbeat'.
2020-07-30 11:57:27.981 (Aspirateur Xiaomi) Pushing 'ConnectDirective' on to queue
2020-07-30 11:57:27.981 (Aspirateur Xiaomi) Trying connect to MIIOServer 127.0.0.1:22222
2020-07-30 11:57:27.981 (Aspirateur Xiaomi) Processing 'ConnectDirective' message
2020-07-30 11:57:27.981 (Aspirateur Xiaomi) Transport set to: 'TCP/IP', 127.0.0.1:22222.
2020-07-30 11:57:27.982 (Aspirateur Xiaomi) Connect directive received, action initiated successfully.
2020-07-30 11:57:27.982 (Aspirateur Xiaomi) Pushing 'onConnectCallback' on to queue
2020-07-30 11:57:28.032 (Aspirateur Xiaomi) Processing 'onConnectCallback' message
2020-07-30 11:57:28.032 (Aspirateur Xiaomi) Calling message handler 'onConnect'.
2020-07-30 11:57:28.032 (Aspirateur Xiaomi) MIIOServer connection status is [0] [Success]
2020-07-30 11:57:42.969 (Aspirateur Xiaomi) Pushing 'onHeartbeatCallback' on to queue
2020-07-30 11:57:43.009 (Aspirateur Xiaomi) Processing 'onHeartbeatCallback' message
2020-07-30 11:57:43.009 (Aspirateur Xiaomi) Calling message handler 'onHeartbeat'.
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Pushing 'WriteDirective' on to queue
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Pushing 'WriteDirective' on to queue
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Processing 'WriteDirective' message
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Sending 19 bytes of data
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) 91 b1 63 6f 6e 73 75 6d 61 62 6c 65 5f 73 74 61 74 75 73 .. ѱconsumable_status
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Processing 'WriteDirective' message
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) Sending 8 bytes of data
2020-07-30 11:57:43.010 (Aspirateur Xiaomi) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. Ѧstatus
2020-07-30 11:57:57.972 (Aspirateur Xiaomi) Pushing 'onHeartbeatCallback' on to queue
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) Processing 'onHeartbeatCallback' message
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) Calling message handler 'onHeartbeat'.
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) Pushing 'WriteDirective' on to queue
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) Processing 'WriteDirective' message
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) Sending 8 bytes of data
2020-07-30 11:57:57.989 (Aspirateur Xiaomi) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. Ѧstatus
2020-07-30 11:58:17.099 (Aspirateur Xiaomi) Pushing 'onHeartbeatCallback' on to queue
2020-07-30 11:58:17.105 (Aspirateur Xiaomi) Processing 'onHeartbeatCallback' message
2020-07-30 11:58:17.105 (Aspirateur Xiaomi) Calling message handler 'onHeartbeat'.
2020-07-30 11:58:17.106 (Aspirateur Xiaomi) Pushing 'WriteDirective' on to queue
2020-07-30 11:58:17.106 (Aspirateur Xiaomi) Processing 'WriteDirective' message
2020-07-30 11:58:17.106 (Aspirateur Xiaomi) Sending 8 bytes of data
2020-07-30 11:58:17.106 (Aspirateur Xiaomi) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. Ѧstatus