HI,
I’ve tried to test it but with no luck. Should auto-discover work or I need to add it manually?
Auto-discovery for me doesn’t work. I’ve tried to add it manually, tried both Mi IO Device and Unsupported MI IO Device, but the status always either “OFFLINE - COMMUNICATION_ERROR No Response from device” or just “OFFLINE” .
I’ve added Ip-address of lamp, token and ID in thing config.
14:52:35.076 [DEBUG] [ivacuum.handler.XiaomiGenericHandler] - Update connection ‘xiaomivacuum:generic:ba7e93f2’
14:52:35.078 [DEBUG] [aomivacuum.handler.XiaomiMiIoHandler] - Ping MiIO device 57992992 at 192.168.1.33
14:52:35.163 [DEBUG] [aomivacuum.handler.XiaomiMiIoHandler] - Ping response from device 0374E720 at 192.168.1.33. Time stamp: 1970-01-01T06:35:42, OH time 2017-08-08T14:52:35.163, delta 47
14:52:35.166 [DEBUG] [omivacuum.internal.RoboCommunication] - Send command: {‘method’: ‘miIO.info’, ‘id’: 98} → 192.168.1.33 (Device: 57992992 token: C46BDF4E564F927B204BFFE801DC4E19)
14:52:50.184 [DEBUG] [omivacuum.internal.RoboCommunication] - Communication error for vacuum at 192.168.1.33: Receive timed out
14:52:50.187 [DEBUG] [omivacuum.internal.RoboCommunication] - No response from device 57992992 at 192.168.1.33 for command {‘method’: ‘miIO.info’, ‘id’: 98}.
But I could control, discover and so on via miio package.
daznik@OPENHAB:~ $ miio --control 57992992 --method set_mode --params ‘[“toggle”]’
INFO Attempting to control 57992992
INFO Got result:
[
“ok”
]
Also when I try to send commands to " xiaomivacuum:generic:ba7e93f2:actions#commands "
14:57:50.776 [DEBUG] [ivacuum.handler.XiaomiGenericHandler] - Update connection ‘xiaomivacuum:generic:ba7e93f2’
14:57:50.778 [DEBUG] [aomivacuum.handler.XiaomiMiIoHandler] - Ping MiIO device 57992992 at 192.168.1.33
14:57:51.018 [DEBUG] [aomivacuum.handler.XiaomiMiIoHandler] - Ping response from device 0374E720 at 192.168.1.33. Time stamp: 1970-01-01T06:40:56, OH time 2017-08-08T14:57:51.017, delta 47
14:57:51.020 [DEBUG] [omivacuum.internal.RoboCommunication] - Send command: {‘method’: ‘miIO.info’, ‘id’: 183} → 192.168.1.33 (Device: 57992992 token: C46BDF4E564F927B204BFFE801DC4E19)
14:58:03.682 [DEBUG] [omivacuum.internal.RoboCommunication] - Send command: {‘method’: ‘set_mode’, ‘params’: [toggle],‘id’: 184} → 192.168.1.33 (Device: 57992992 token: C46BDF4E564F927B204BFFE801DC4E19)
14:58:03.687 [INFO ] [marthome.event.ItemStateChangedEvent] - Philips1 changed from null to set_mode[toggle]
14:58:06.042 [DEBUG] [omivacuum.internal.RoboCommunication] - Communication error for vacuum at 192.168.1.33: Receive timed out
14:58:06.044 [DEBUG] [omivacuum.internal.RoboCommunication] - No response from device 57992992 at 192.168.1.33 for command {‘method’: ‘miIO.info’, ‘id’: 183}.
14:58:08.683 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber ‘org.eclipse.smarthome.core.thing.internal.ThingManager@1303f6d’ takes more than 5000ms.
14:58:08.689 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘Philips1’ received command set_mode[toggle]
14:58:21.060 [DEBUG] [omivacuum.internal.RoboCommunication] - Communication error for vacuum at 192.168.1.33: Receive timed out
14:58:21.062 [DEBUG] [omivacuum.internal.RoboCommunication] - No response from device 57992992 at 192.168.1.33 for command {‘method’: ‘set_mode’, ‘params’: [toggle],‘id’: 184}.
14:58:21.087 [INFO ] [marthome.event.ItemStateChangedEvent] - Philips1 changed from set_mode[toggle] to null
Also I have another miio devices but they also non-discoverable via binding, but I could see them through miio package
daznik@OPENHAB:~ $ miio --discover
INFO Discovering devices. Press Ctrl+C to stop.
Device ID: 52273049
Model info: Unknown
Address: 192.168.1.30 (Xiaomi_GW)
Token: ???
Support: Unknown
Device ID: 57992992
Model info: Unknown
Address: 192.168.1.33 (Xiaomi_Philips_Light_1)
Token: c46bdf4e564f927b204bffe801dc4e19 via stored token
Support: Unknown
Device ID: 52819025
Model info: Unknown
Address: 192.168.1.32 (Xiaomi_Plug)
Token: 20baddcb82613fc040de173276c995c9 via auto-token
Support: Unknown
Device ID: 54220075
Model info: Unknown
Address: 192.168.1.31 (Xiaomi_Air_Pur)
Token: a9523eb3880289b53c49bfedd89064e8 via auto-token
Support: Unknown