Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Saturday 06 January 2018 12:31
Thanks...
The trick "Lan beheer" does the job..
Also in android..
xxx
The trick "Lan beheer" does the job..
Also in android..
xxx
Open source Home Automation System
https://forum.domoticz.com/
Thanks!!Boredcat wrote: ↑Saturday 06 January 2018 9:40How to go developermode in the Yeelight app.
Select the light
In the right down corner (Ios App) there is a triangle with a line below, select that.
The you see LAN Beheer (With be named differently in the English app)
Select that and you can enable/dsiable develop mode
Code: Select all
2018-04-03 07:16:44.669 Yeelight::udp_server::HandleIncoming found set_ct_abx
2018-04-03 07:16:44.669 Yeelight::udp_server::HandleIncoming found set_rgb
2018-04-03 07:16:44.669 Yeelight::udp_server::HandleIncoming found set_rgb and set_ct_abx
2018-04-03 07:16:44.669 Yeelight::udp_server::HandleIncoming mode: 1, Support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set
2018-04-03 07:16:44.670 Yeelight::InsertUpdateSwitch colorMode: 1, Bri: 55, Hue: 290, Sat: 100, RGB: 14156031, CT: 4000
2018-04-03 07:16:44.670 YeeLight: New Light Found (192.168.5.33/YeeLight LED (Color))
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_ct_abx
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_rgb
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_rgb and set_ct_abx
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming mode: 1, Support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust set_music set_name
2018-04-03 07:16:44.671 Yeelight::InsertUpdateSwitch colorMode: 1, Bri: 100, Hue: 204, Sat: 100, RGB: 16711680, CT: 2700
2018-04-03 07:16:44.671 YeeLight: New Light Found (192.168.5.32/YeeLight LED (Color))
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_ct_abx
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_rgb
2018-04-03 07:16:44.671 Yeelight::udp_server::HandleIncoming found set_rgb and set_ct_abx
2018-04-03 07:16:44.672 Yeelight::udp_server::HandleIncoming mode: 1, Support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set
2018-04-03 07:16:44.672 Yeelight::InsertUpdateSwitch colorMode: 1, Bri: 100, Hue: 229, Sat: 100, RGB: 16762624, CT: 4000
2018-04-03 07:16:44.672 YeeLight: New Light Found (192.168.5.35/YeeLight LED (Color))
2018-04-03 07:16:44.672 Yeelight::udp_server::HandleIncoming found set_ct_abx
2018-04-03 07:16:44.672 Yeelight::udp_server::HandleIncoming found set_rgb
2018-04-03 07:16:44.672 Yeelight::udp_server::HandleIncoming found set_rgb and set_ct_abx
2018-04-03 07:16:44.672 Yeelight::udp_server::HandleIncoming mode: 1, Support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust set_music set_name
2018-04-03 07:16:44.672 Yeelight::InsertUpdateSwitch colorMode: 1, Bri: 85, Hue: 228, Sat: 100, RGB: 13311, CT: 4000
2018-04-03 07:16:44.672 YeeLight: New Light Found (192.168.5.30/YeeLight LED (Stripe))
2018-04-03 07:16:44.673 Yeelight::udp_server::HandleIncoming found set_ct_abx
2018-04-03 07:16:44.673 Yeelight::udp_server::HandleIncoming found set_rgb
2018-04-03 07:16:44.673 Yeelight::udp_server::HandleIncoming found set_rgb and set_ct_abx
2018-04-03 07:16:44.673 Yeelight::udp_server::HandleIncoming mode: 2, Support: get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust set_music set_name
2018-04-03 07:16:44.673 Yeelight::InsertUpdateSwitch colorMode: 2, Bri: 100, Hue: 359, Sat: 100, RGB: 16711680, CT: 4000
2018-04-03 07:16:44.673 YeeLight: New Light Found (192.168.5.34/YeeLight LED (Color))
Code: Select all
return {
active = true,
on = {
devices = {
'$Wireless Switch 1', '$Wireless Switch 2'
}
},
execute = function(domoticz, switch)
if (switch.state == 'Click' and domoticz.devices('Master').state ~= 'On') then
domoticz.log('Master Night On')
domoticz.setScene('Master Red 1%', 'On')
switch.switchOff()
elseif (switch.state == 'Click' and domoticz.devices('Master').state ~= 'Off') then
domoticz.log('Master Off')
domoticz.devices('Master').dimTo(0)
switch.switchOff()
elseif (switch.state == 'Double Click' and domoticz.devices(43).state ~= 'On') then
domoticz.log('Nursery Night On')
domoticz.setScene('Nursery Red 1%', 'On')
switch.switchOff()
elseif (switch.state == 'Double Click' and domoticz.devices(43).state ~= 'Off') then
domoticz.log('Nursery Night Off')
domoticz.devices(43).dimTo(0)
switch.switchOff()
elseif (switch.state == 'Long Click' and domoticz.devices('$status_NightMode').state == 'Off') then
domoticz.log('Night Mode On')
domoticz.devices('$status_NightMode').switchOn()
switch.switchOff()
end
end
}
Code: Select all
return {
active = true,
on = {
devices = {
'$Wireless Switch 1', '$Wireless Switch 2'
}
},
execute = function(domoticz, switch)
if (switch.state == 'Click' and domoticz.devices(57).state ~= 'On') then
domoticz.log('Master Night On')
runcommandon = " sudo echo -ne '{\"id\":1,\"method\":\"set_scene\", \"params\": [\"color\", 16711680, 1]}\\r\\n' | nc -w1 192.168.50.72 55443 ";;
os.execute(runcommandon);
domoticz.devices(57).dimTo(1)
switch.switchOff()
elseif (switch.state == 'Click' and domoticz.devices(57).state ~= 'Off') then
domoticz.log('Master Off')
domoticz.devices('Master').switchOff()
switch.switchOff()
elseif (switch.state == 'Double Click' and domoticz.devices(43).state ~= 'On') then
domoticz.log('Nursery Night On')
runcommandon = " sudo echo -ne '{\"id\":1,\"method\":\"set_scene\", \"params\": [\"color\", 16711680, 1]}\\r\\n' | nc -w1 192.168.50.73 55443 ";;
os.execute(runcommandon);
domoticz.devices(43).dimTo(1)
switch.switchOff()
elseif (switch.state == 'Double Click' and domoticz.devices(43).state ~= 'Off') then
domoticz.log('Nursery Night Off')
domoticz.devices(43).dimTo(0)
switch.switchOff()
end
end
}
Code: Select all
domoticz.devices(57).dimTo(1)
Code: Select all
Error: YeeLight: Exception: connect: No connection could be made because the target machine actively refused it
As the lamps were working perfectly fine in the main LAN it was now time to move them to the IOT VLAN. I could not find a way how to do this with SQLBrowser but the following works just fine.sincze wrote: ↑Saturday 16 February 2019 10:51 The yeelights have been working very nice.
Recently I created an IOT network, so I want to move the yeelights from the inital network to the VLAN.
(That is possible via the APP).
In the wiki https://www.domoticz.com/wiki/YeelightI found
"Note that the IP address of the light is used as the device ID in Domoticz. For that reason, use static IP addresses for your lights (assign via MAC address reservation on your router)"
As the IP address will change in the VLAN.. I guess I have to re-add the Yeelights to Domoticz.
No easy migration of the existing device-id's?