mrin / domoticz-mirobot-plugin

Xiaomi Mi Robot Vacuum plugin for Domoticz
57 stars 28 forks source link

No devices created in domoticz V4.9700 #15

Closed FirelightLokeren closed 5 years ago

FirelightLokeren commented 5 years ago

Hi,

I have the insallation done. test.py runs

pi@raspberrypi:~/domoticz/plugins/xiaomi-mirobot $ ./test.py test: python modules path: ././.env/lib/python3.5/site-packages test: trying connect to 127.0.0.1:22222 test: sent request to server [status] test: reading response... test: got server reply {'clean_seconds': 1522, 'fan_level': 90, 'state_code': 8, 'battery': ror': None, 'clean_area': 22.99, 'cmd': 'status'}

Hardware is added

2018-12-22 11:15:50.751 Status: (Stoffie) Started. 2018-12-22 11:15:51.394 Status: (Stoffie) Entering work loop. 2018-12-22 11:15:51.394 Status: (Stoffie) Initialized version 0.1.3, author 'mrin' 2018-12-22 11:16:53.953 (Stoffie) Processing 'onMessageCallback' message 2018-12-22 11:16:53.953 (Stoffie) Calling message handler 'onMessage'. 2018-12-22 11:16:53.953 (Stoffie) Got: {'battery': 100, 'fan_level': 90, 'cmd': 'status', 'clean_seconds': 1522, 'state_code': 8, 'error': None, 'clean_area': 22.99} 2018-12-22 11:17:08.858 (Stoffie) Pushing 'onHeartbeatCallback' on to queue 2018-12-22 11:17:08.895 (Stoffie) Processing 'onHeartbeatCallback' message 2018-12-22 11:17:08.895 (Stoffie) Calling message handler 'onHeartbeat'. 2018-12-22 11:17:08.896 (Stoffie) Pushing 'WriteDirective' on to queue 2018-12-22 11:17:08.896 (Stoffie) Processing 'WriteDirective' message 2018-12-22 11:17:08.896 (Stoffie) Sending 8 bytes of data 2018-12-22 11:17:08.896 (Stoffie) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. ��status 2018-12-22 11:17:08.926 (Stoffie) Pushing 'ReadEvent' on to queue 2018-12-22 11:17:08.946 (Stoffie) Processing 'ReadEvent' message 2018-12-22 11:17:08.946 (Stoffie) Received 88 bytes of data 2018-12-22 11:17:08.946 (Stoffie) 87 a7 62 61 74 74 65 72 79 64 a5 65 72 72 6f 72 c0 aa 63 6c ��batteryd�error��cl 2018-12-22 11:17:08.946 (Stoffie) 65 61 6e 5f 61 72 65 61 cb 40 36 fd 70 a3 d7 0a 3d aa 73 74 ean_area�@6�p��.=�st 2018-12-22 11:17:08.946 (Stoffie) 61 74 65 5f 63 6f 64 65 08 a3 63 6d 64 a6 73 74 61 74 75 73 ate_code.�cmd�status 2018-12-22 11:17:08.946 (Stoffie) ad 63 6c 65 61 6e 5f 73 65 63 6f 6e 64 73 cd 05 f2 a9 66 61 �clean_seconds�.�fa 2018-12-22 11:17:08.946 (Stoffie) 6e 5f 6c 65 76 65 6c 5a .. .. .. .. .. .. .. .. .. .. .. .. n_levelZ 2018-12-22 11:17:08.947 (Stoffie) Pushing 'onMessageCallback' on to queue 2018-12-22 11:17:08.947 (Stoffie) Processing 'onMessageCallback' message 2018-12-22 11:17:08.947 (Stoffie) Calling message handler 'onMessage'. 2018-12-22 11:17:08.947 (Stoffie) Got: {'battery': 100, 'fan_level': 90, 'cmd': 'status', 'clean_seconds': 1522, 'state_code': 8, 'error': None, 'clean_area': 22.99} 2018-12-22 11:17:23.860 (Stoffie) Pushing 'onHeartbeatCallback' on to queue 2018-12-22 11:17:23.884 (Stoffie) Processing 'onHeartbeatCallback' message 2018-12-22 11:17:23.884 (Stoffie) Calling message handler 'onHeartbeat'. 2018-12-22 11:17:23.885 (Stoffie) Pushing 'WriteDirective' on to queue 2018-12-22 11:17:23.885 (Stoffie) Processing 'WriteDirective' message 2018-12-22 11:17:23.885 (Stoffie) Sending 8 bytes of data 2018-12-22 11:17:23.885 (Stoffie) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. ��status 2018-12-22 11:17:23.916 (Stoffie) Pushing 'ReadEvent' on to queue 2018-12-22 11:17:23.935 (Stoffie) Processing 'ReadEvent' message 2018-12-22 11:17:23.935 (Stoffie) Received 88 bytes of data 2018-12-22 11:17:23.935 (Stoffie) 87 a7 62 61 74 74 65 72 79 64 a5 65 72 72 6f 72 c0 aa 63 6c ��batteryd�error��cl 2018-12-22 11:17:23.936 (Stoffie) 65 61 6e 5f 61 72 65 61 cb 40 36 fd 70 a3 d7 0a 3d aa 73 74 ean_area�@6�p��.=�st 2018-12-22 11:17:23.936 (Stoffie) 61 74 65 5f 63 6f 64 65 08 a3 63 6d 64 a6 73 74 61 74 75 73 ate_code.�cmd�status 2018-12-22 11:17:23.936 (Stoffie) ad 63 6c 65 61 6e 5f 73 65 63 6f 6e 64 73 cd 05 f2 a9 66 61 �clean_seconds�.�fa 2018-12-22 11:17:23.936 (Stoffie) 6e 5f 6c 65 76 65 6c 5a .. .. .. .. .. .. .. .. .. .. .. .. n_levelZ 2018-12-22 11:17:23.936 (Stoffie) Pushing 'onMessageCallback' on to queue 2018-12-22 11:17:23.936 (Stoffie) Processing 'onMessageCallback' message 2018-12-22 11:17:23.936 (Stoffie) Calling message handler 'onMessage'. 2018-12-22 11:17:23.936 (Stoffie) Got: {'battery': 100, 'fan_level': 90, 'cmd': 'status', 'clean_seconds': 1522, 'state_code': 8, 'error': None, 'clean_area': 22.99} 2018-12-22 11:17:38.863 (Stoffie) Pushing 'onHeartbeatCallback' on to queue 2018-12-22 11:17:38.913 (Stoffie) Processing 'onHeartbeatCallback' message 2018-12-22 11:17:38.913 (Stoffie) Calling message handler 'onHeartbeat'. 2018-12-22 11:17:38.913 (Stoffie) Pushing 'WriteDirective' on to queue 2018-12-22 11:17:38.913 (Stoffie) Processing 'WriteDirective' message 2018-12-22 11:17:38.913 (Stoffie) Sending 8 bytes of data 2018-12-22 11:17:38.913 (Stoffie) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. ��status 2018-12-22 11:17:38.950 (Stoffie) Pushing 'ReadEvent' on to queue 2018-12-22 11:17:38.964 (Stoffie) Processing 'ReadEvent' message 2018-12-22 11:17:38.964 (Stoffie) Received 88 bytes of data 2018-12-22 11:17:38.964 (Stoffie) 87 a7 62 61 74 74 65 72 79 64 a5 65 72 72 6f 72 c0 aa 63 6c ��batteryd�error��cl 2018-12-22 11:17:38.964 (Stoffie) 65 61 6e 5f 61 72 65 61 cb 40 36 fd 70 a3 d7 0a 3d aa 73 74 ean_area�@6�p��.=�st 2018-12-22 11:17:38.964 (Stoffie) 61 74 65 5f 63 6f 64 65 08 a3 63 6d 64 a6 73 74 61 74 75 73 ate_code.�cmd�status 2018-12-22 11:17:38.964 (Stoffie) ad 63 6c 65 61 6e 5f 73 65 63 6f 6e 64 73 cd 05 f2 a9 66 61 �clean_seconds�.�fa 2018-12-22 11:17:38.964 (Stoffie) 6e 5f 6c 65 76 65 6c 5a .. .. .. .. .. .. .. .. .. .. .. .. n_levelZ 2018-12-22 11:17:38.964 (Stoffie) Pushing 'onMessageCallback' on to queue 2018-12-22 11:17:38.964 (Stoffie) Processing 'onMessageCallback' message 2018-12-22 11:17:38.964 (Stoffie) Calling message handler 'onMessage'. 2018-12-22 11:17:38.965 (Stoffie) Got: {'battery': 100, 'fan_level': 90, 'cmd': 'status', 'clean_seconds': 1522, 'state_code': 8, 'error': None, 'clean_area': 22.99} 2018-12-22 11:17:53.865 (Stoffie) Pushing 'onHeartbeatCallback' on to queue 2018-12-22 11:17:53.892 (Stoffie) Processing 'onHeartbeatCallback' message 2018-12-22 11:17:53.893 (Stoffie) Calling message handler 'onHeartbeat'. 2018-12-22 11:17:53.893 (Stoffie) Pushing 'WriteDirective' on to queue 2018-12-22 11:17:53.893 (Stoffie) Processing 'WriteDirective' message 2018-12-22 11:17:53.893 (Stoffie) Sending 8 bytes of data 2018-12-22 11:17:53.893 (Stoffie) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. ��status 2018-12-22 11:17:53.923 (Stoffie) Pushing 'ReadEvent' on to queue 2018-12-22 11:17:53.944 (Stoffie) Processing 'ReadEvent' message 2018-12-22 11:17:53.944 (Stoffie) Received 88 bytes of data 2018-12-22 11:17:53.944 (Stoffie) 87 a7 62 61 74 74 65 72 79 64 a5 65 72 72 6f 72 c0 aa 63 6c ��batteryd�error��cl 2018-12-22 11:17:53.944 (Stoffie) 65 61 6e 5f 61 72 65 61 cb 40 36 fd 70 a3 d7 0a 3d aa 73 74 ean_area�@6�p��.=�st 2018-12-22 11:17:53.944 (Stoffie) 61 74 65 5f 63 6f 64 65 08 a3 63 6d 64 a6 73 74 61 74 75 73 ate_code.�cmd�status 2018-12-22 11:17:53.944 (Stoffie) ad 63 6c 65 61 6e 5f 73 65 63 6f 6e 64 73 cd 05 f2 a9 66 61 �clean_seconds�.�fa 2018-12-22 11:17:53.944 (Stoffie) 6e 5f 6c 65 76 65 6c 5a .. .. .. .. .. .. .. .. .. .. .. .. n_levelZ 2018-12-22 11:17:53.944 (Stoffie) Pushing 'onMessageCallback' on to queue 2018-12-22 11:17:53.944 (Stoffie) Processing 'onMessageCallback' message 2018-12-22 11:17:53.944 (Stoffie) Calling message handler 'onMessage'. 2018-12-22 11:17:53.945 (Stoffie) Got: {'battery': 100, 'fan_level': 90, 'cmd': 'status', 'clean_seconds': 1522, 'state_code': 8, 'error': None, 'clean_area': 22.99} 2018-12-22 11:18:08.868 (Stoffie) Pushing 'onHeartbeatCallback' on to queue 2018-12-22 11:18:08.872 (Stoffie) Processing 'onHeartbeatCallback' message 2018-12-22 11:18:08.873 (Stoffie) Calling message handler 'onHeartbeat'. 2018-12-22 11:18:08.873 (Stoffie) Pushing 'WriteDirective' on to queue

FirelightLokeren commented 5 years ago

Hi,

Problem is solved, I enabled the "Accept new Hardware Devices" and dit an update of the hardware.