-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[miio] adding new device support (yeelink.light.lamp15) #10589
Comments
do all functions work when you use the experimental file? |
Actually I don’t know (maybe I did something wrong). I tried to link an item I saw in the file, but didn’t work. But As I said I don’t know if I did something wrong. I’m keen on helping where I can. |
If things went well, you should see in the UI the channels as they are created by the file, There seem to be some unique commands for your device. dunno what they are doing,
|
close openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]>
OK just tried the created channels and they work, but the main light switch is always on. When I shut of the light, the switch in openhab just jumps back to ON. |
Can you share a debug log of the refresh and a switch on and a switch off Otherwise it is a bit of a big guess what is going on. |
I think this should it be. When I change the switch to OFF and pretty fast back to ON, the lamp goes on. So the commands are OK in general. `2021-04-28 09:35:35.867 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'XiaomiDesklampPro_Power' received command OFF 2021-04-28 09:35:35.869 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'XiaomiDesklampPro_Power' predicted to become OFF 2021-04-28 09:35:35.875 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiDesklampPro_Power' changed from ON to OFF ==> /var/log/openhab/openhab.log <== 2021-04-28 09:35:35.875 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Locating action for miio:basic:0EEA71D5 channel 'power': 'OFF' 2021-04-28 09:35:35.875 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Sending command set_power["off"] 2021-04-28 09:35:35.876 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":16,"method":"set_power","params":["off"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:35:36.025 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: SET_POWER, result: ["ok"], fullresponse: {"id":16,"result":["ok"],"exe_time":0} 2021-04-28 09:35:36.549 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Communication error for Mi device at 192.168.7.51: Receive timed out 2021-04-28 09:35:36.549 [DEBUG] [nal.transport.MiIoAsyncCommunication] - No response from device 07F02123 at 192.168.7.51 for command {"id":63,"method":"get_prop","params":["power","bright"]}. 2021-04-28 09:35:36.550 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 457dfdcf type: GET_PROPERTY, result: {}, fullresponse: {"error":"No Response"} 2021-04-28 09:35:36.550 [DEBUG] [internal.handler.MiIoAbstractHandler] - Error received: "No Response" ==> /var/log/openhab/events.log <== 2021-04-28 09:35:38.944 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiDesklampPro_Power' changed from OFF to ON ==> /var/log/openhab/openhab.log <== 2021-04-28 09:35:38.876 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:35:38.877 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.877 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.878 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.878 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.878 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.879 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.879 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.879 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.879 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.880 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:35:38.880 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":17,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:35:38.944 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":17,"result":["on"],"exe_time":10}` |
what happens if you wait a bit longer? It seems there is some delayed reaction from your light as at 09:35:36.025 it accepted the command and processes it well but on It can be that in the following refresh (30 sec later) it actually is switched |
`2021-04-28 09:46:28.342 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'XiaomiDesklampPro_Power' received command OFF 2021-04-28 09:46:28.343 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'XiaomiDesklampPro_Power' predicted to become OFF 2021-04-28 09:46:28.344 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiDesklampPro_Power' changed from ON to OFF ==> /var/log/openhab/openhab.log <== 2021-04-28 09:46:28.349 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Locating action for miio:basic:0EEA71D5 channel 'power': 'OFF' 2021-04-28 09:46:28.349 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Sending command set_power["off"] 2021-04-28 09:46:28.349 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":51,"method":"set_power","params":["off"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:46:28.400 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: SET_POWER, result: ["ok"], fullresponse: {"id":51,"result":["ok"],"exe_time":10} ==> /var/log/openhab/events.log <== 2021-04-28 09:46:31.420 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiDesklampPro_Power' changed from OFF to ON ==> /var/log/openhab/openhab.log <== 2021-04-28 09:46:31.350 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:46:31.350 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.350 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.351 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.351 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.351 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.351 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.352 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.352 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.352 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.352 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:31.353 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":52,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:46:31.418 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":52,"result":["on"],"exe_time":0} 2021-04-28 09:46:47.468 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:46:47.469 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.469 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.470 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.470 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.470 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.470 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.471 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.471 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.471 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.471 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:46:47.471 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":53,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:46:47.472 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":54,"method":"miIO.info","params":[]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 2). 2021-04-28 09:46:47.650 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":53,"result":["on"],"exe_time":10} 2021-04-28 09:47:17.472 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:47:17.473 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.473 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.473 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.473 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.474 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.474 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.474 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.474 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.475 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.475 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:17.475 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":55,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:47:17.659 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":55,"result":["on"],"exe_time":0} 2021-04-28 09:47:47.475 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:47:47.476 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.476 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.476 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.477 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.477 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.477 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.477 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.477 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.478 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.478 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:47:47.478 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":56,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:47:47.478 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":57,"method":"miIO.info","params":[]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 2). 2021-04-28 09:47:47.561 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":56,"result":["on"],"exe_time":0} 2021-04-28 09:48:17.479 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Periodic update for 'miio:basic:0EEA71D5' (miio:basic) 2021-04-28 09:48:17.479 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel brightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.479 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel delayoff for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.480 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.480 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel colorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.480 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel rgbColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.480 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientBrightness for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.480 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientPower for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.481 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColor for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.481 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorTemperature for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.481 [DEBUG] [io.internal.handler.MiIoBasicHandler] - Skip refresh of channel ambientColorMode for miio:basic:0EEA71D5 as it is not linked 2021-04-28 09:48:17.481 [DEBUG] [nal.transport.MiIoAsyncCommunication] - Command added to Queue {"id":58,"method":"get_prop","params":["power"]} -> 192.168.7.44 (Device: 0EEA71D5 token: A10576FEXXXXXXXXXXXXXXXX1D35DEC9 Queue: 1). 2021-04-28 09:48:17.668 [DEBUG] [internal.handler.MiIoAbstractHandler] - Received response for 0EEA71D5 type: GET_PROPERTY, result: ["on"], fullresponse: {"id":58,"result":["on"],"exe_time":0}` |
btw, if you enable the command channel, you may can try the following commands. something they call smartswitch (value 0 & 1)
shortkey config??
|
Openhab wont let me create this channel as I get an infinite loading circle FYI it's this lamp https://en.yeelight.com/product/1512.html |
It seems interesting product indeed. |
…#10603) closes #10589 Signed-off-by: Marcel Verpaalen <[email protected]>
@r0bertreh basic support is now merged in the build. I did double check in the app apk that indeed the on-off values are "on" & "off" as the binding is sending. |
…openhab#10603) closes openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]> Signed-off-by: John Marshall <[email protected]>
…openhab#10603) closes openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]>
…openhab#10603) closes openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]>
…openhab#10603) closes openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]>
…openhab#10603) closes openhab#10589 Signed-off-by: Marcel Verpaalen <[email protected]>
I just got a Yeelight Desktop lamp, but it's not fully supported. The experimental feature extracted this json file.
I hope it can help you.
yeelink.light.lamp15-experimental.json.zip
The text was updated successfully, but these errors were encountered: