Maybe I doing something wrong but I always get an “user ack timeout”. Here is what I do/get:
ia Karaf I send:
openhab> smarthome:send XiaomiSmartFan1C_ExecuteCommand "get_prop[{\"did\":\"power\"},{\"siid\": 2},{\"piid\":1}]"
In the log I see
2020-08-13 12:09:59.550 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":616,"method":"get_prop","params":[{"did":"power"},{"siid":2},{"piid":1}]} -> 192.168.X.X (Device: 0E463FDD token: <TOKEN> Queue: 1)
2020-08-13 12:10:03.686 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0E463FDD type: GET_PROPERTY, result: {}, fullresponse: {"id":616,"error":{"code":-9999,"message":"user ack timeout"}}
2020-08-13 12:10:06.740 [DEBUG] [ernal.handler.MiIoUnsupportedHandler] - Periodic update for 'miio:generic:0E463FDD' (miio:unsupported)
2020-08-13 12:10:06.741 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":617,"method":"miIO.info","params":[]} -> 192.168.X.X (Device: 0E463FDD token: TOKEN Queue: 1)
2020-08-13 12:10:07.026 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0E463FDD type: MIIO_INFO, result: {"life":32210,"uid":6271696519,"model":"dmaker.fan.p8","token":"TOKEN","fw_ver":"2.0.4","mcu_fw_ver":"0003","miio_ver":"0.0.6","hw_ver":"esp8266","mmfree":25740,"mac":"MAC","wifi_fw_ver":"2709610","ap":{"ssid":"SSID","bssid":"BSSID","rssi":-56,"primary":11},"netif":{"localIp":"192.168.X.X","mask":"255.255.255.0","gw":"192.168.X.X"}}, fullresponse: {"id":617,"result":{"life":32210,"uid":6271696519,"model":"dmaker.fan.p8","token":"TOKEN","fw_ver":"2.0.4","mcu_fw_ver":"0003","miio_ver":"0.0.6","hw_ver":"esp8266","mmfree":25740,"mac":"MAC","wifi_fw_ver":"2709610","ap":{"ssid":"SSID","bssid":"BSSID","rssi":-56,"primary":11},"netif":{"localIp":"192.168.X.X","mask":"255.255.255.0","gw":"192.168.X.X"}}}}}
Btw.: with “get_prop[{“did”:“power”,“siid”: 2,“piid”:1}]” I get an com.google.gson.stream.MalformedJsonException: Unterminated array