Xiaomi MI Home Security Camera power on - off


(Josep Xavier Sellart I Gine) #1

Platform information: openhabianpi
openhab ver 2.3.0-1
Cam Xiaomi lumi.camera.aq1 Mi Home Security Camera
Binding in question: org.openhab.binding.miio

the reading with DEBUG and TRACE of the camera, gives me the following result.
How can I use this data to stop and connect the camera?

Command added to Queue {“id”:12,“method”:“set_power”,“params”:[“off”]} -> 192.168.1.14 (Device: 04201E94 token: 55386E4F706D3030744A71584F7XXXXX Queue: 1)

Command added to Queue {“id”:3,“method”:“set_power”,“params”:[“on”]} -> 192.168.1.14 (Device: 04201E94 token: 55386E4F706D3030744A71584F7XXXXX Queue: 1)

Received response for 04201E94 type: MIIO_INFO, result: {“hw_ver”:“Linux”,“fw_ver”:“3.3.7_244”,“mcu_fw_ver”:“0143”,“ap”:{“ssid”:“JAZZTEL_9A75”,“rssi”:-65,“bssid”:“98:97:D1:35:9A:76”},“netif”:{“localIp”:“192.168.1.14”,“mask”:“255.255.255.0”,“gw”:“192.168.1.1”},“model”:“lumi.camera.aq1”,“mac”:“78:11:DC:36:6C:1X”,“token”:“55386e4f706d3030744a71584f7XXXXX”,“life”:1956}, fullresponse: {“partner_id”:"",“id”:2,“code”:0,“message”:“ok”,“result”:{“hw_ver”:“Linux”,“fw_ver”:“3.3.7_244”,“mcu_fw_ver”:“0143”,“ap”:{“ssid”:“JAZZTEL_9A75”,“rssi”:-65,“bssid”:“98:97:D1:35:9A:76”},“netif”:{“localIp”:“192.168.1.14”,“mask”:“255.255.255.0”,“gw”:“192.168.1.1”},“model”:“lumi.camera.aq1”,“mac”:“78:11:DC:36:6C:1B”,“token”:“55386e4f706d3030744a71584f7XXXXX”,“life”:1956}}

camera sleeping
Received response for 04201E94 type: SET_POWER, result: null, fullresponse: {“error”:“No Response”}


Xiaomi Cameras Compatibility in OH2
(Vincent Regaud) #2

Ola,
System details?
Camera?
Java?
openHAB version?
Items and rules?
Binding version, Things…
Logs…

Or we can try to guess…

Please see: How to ask a good question / Help Us Help You