[Plugin now available in Beta] Help with Yeelight Bulb
Moderator: leecollings
- Westcott
- Posts: 423
- Joined: Tuesday 09 December 2014 17:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: UK - Glos
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Hi Deennoo,
No, my code is not 'better' than yours!
It is to demonstrate that the Yee light's API can be controlled directly by Lua.
My Yee is not used as a room light, so I don't need dimmers and colour pickers.
It is instead controlled directly by the security sensors.
No, my code is not 'better' than yours!
It is to demonstrate that the Yee light's API can be controlled directly by Lua.
My Yee is not used as a room light, so I don't need dimmers and colour pickers.
It is instead controlled directly by the security sensors.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
This can be a great trainning for the futur new domoticz feature : Python Plugin.Westcott wrote:Hi Deennoo,
No, my code is not 'better' than yours!
It is to demonstrate that the Yee light's API can be controlled directly by Lua.
My Yee is not used as a room light, so I don't need dimmers and colour pickers.
It is instead controlled directly by the security sensors.
Not to replace yeelight add made by corbin, but enhance it with python plugin
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 4
- Joined: Thursday 08 December 2016 9:19
- Target OS: Windows
- Domoticz version: 3.5877
- Location: Sydney
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Denoo
I reset the whole thing and again tried from step 1 and while no i dont get any error but the LUA script dont seem to work at all
I created 2 LAU scripts
first one named YeeLight Dimmer and second one named YeeLightLounge and scripts as below
commandArray = {}
DomDevice = 'Yeelight Dimmer';
TempDevice = 'YeeLounge'
IP = '192.168.1.111';
PORT = '55443'
if devicechanged[DomDevice] then
if(devicechanged[DomDevice]=='Off') then
DomValue = 0;
runcommandoff = "sudo echo -ne '{\"id\":1,\"method\":\"set_power\", \"params\":[\"off\", \"smooth\", 500]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";;
os.execute(runcommandoff);
else
TempValue = otherdevices_svalues[TempDevice];
CalcValue = ((TempValue-1) * 48)+1700;
DomValue = otherdevices_svalues[DomDevice];
end
if CalcValue==nil then CalcValue=0 end
runcommand = "sudo echo -ne '{\"id\":1, \"method\":\"set_scene\", \"params\":[\"ct\", " .. CalcValue .. ", " .. DomValue .. "]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";
os.execute(runcommand);
print(runcommand)
print("bright value= "..DomValue);
end
return commandArray
script for YeeLightLounge
commandArray = {}
DomDevice = 'YeeLounge';
IP = '192.168.1.111';
PORT = '55443'
if devicechanged[DomDevice] then
if(devicechanged[DomDevice]=='Off') then
DomValue = 0;
runcommandoff = "sudo echo -ne '{\"id\":1,\"method\":\"set_power\", \"params\":[\"off\", \"smooth\", 500]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";;
os.execute(runcommandoff);
else
DomValue = otherdevices_svalues[DomDevice];
CalcValue = ((DomValue-1) * 48)+1700;
end
if CalcValue==nil then CalcValue=0 end
runcommand = " sudo echo -ne '{\"id\":1, \"method\":\"set_scene\",\"params\":[\"ct\"," .. CalcValue .. ", 75]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";
os.execute(runcommand);
print(runcommand)
print("Color Temp= "..CalcValue);
end
return commandArray
When i look in the log there is no error but when i use the virtual switches nothing happens - see log below
2016-12-21 12:35:58.870 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 6068, 33]}\r\n' | nc -w1 192.168.1.110 55443
2016-12-21 12:35:58.872 LUA: bright value= 33
2016-12-21 12:35:58.442 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:35:59.822 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:36:00.160 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",3332, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:00.162 LUA: Color Temp= 3332
2016-12-21 12:35:59.824 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:32.912 EventSystem: reset all events...
2016-12-21 12:36:46.726 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:36:46.976 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:46.977 LUA: bright value= 0
2016-12-21 12:36:46.728 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:36:49.246 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:36:49.546 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:49.548 LUA: Color Temp= 0
2016-12-21 12:36:49.247 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:55.634 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:36:55.886 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:55.888 LUA: Color Temp= 1652
2016-12-21 12:36:55.635 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:57.927 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:36:58.314 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",5780, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:58.316 LUA: Color Temp= 5780
2016-12-21 12:36:57.930 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:59.122 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:36:59.389 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5780, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:59.390 LUA: bright value= 0
2016-12-21 12:36:59.124 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:37:01.578 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:37:01.983 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5780, 84]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:37:01.985 LUA: bright value= 84
2016-12-21 12:37:01.579 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:38:34.240 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:38:34.514 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:34.516 LUA: Color Temp= 0
2016-12-21 12:38:34.241 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:38:39.093 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:38:39.390 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:39.392 LUA: bright value= 0
2016-12-21 12:38:39.094 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:38:56.121 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:38:56.440 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:56.442 LUA: Color Temp= 1652
2016-12-21 12:38:56.123 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:38:58.588 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:38:58.902 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:58.903 LUA: bright value= 0
2016-12-21 12:38:58.590 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:39:02.747 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:39:03.179 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 93]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:39:03.180 LUA: bright value= 93
2016-12-21 12:39:02.749 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:39:03.979 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:39:04.366 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",6116, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:39:04.368 LUA: Color Temp= 6116
2016-12-21 12:39:03.981 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:39:54.255 (Openweather) Temp + Humidity + Baro (Openweather THB)
2016-12-21 12:39:54.548 (Openweather) Wind (Wind)
2016-12-21 12:39:54.744 (Openweather) General/Visibility (Visibility)
2016-12-21 12:40:49.862 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:40:50.561 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:40:50.562 LUA: Color Temp= 0
2016-12-21 12:40:49.863 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:40:52.577 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:40:52.826 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:40:52.827 LUA: bright value= 0
2016-12-21 12:40:52.579 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:41:32.531 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:41:32.840 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:32.841 LUA: bright value= 0
2016-12-21 12:41:32.533 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:41:39.150 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:41:39.440 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:39.441 LUA: Color Temp= 1652
2016-12-21 12:41:39.151 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:41:43.028 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:41:43.431 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",5060, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:43.432 LUA: Color Temp= 5060
2016-12-21 12:41:43.030 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:41:44.551 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:41:44.954 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5060, 78]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:44.956 LUA: bright value= 78
2016-12-21 12:41:44.552 (virtual) Light/Switch (Yeelight Dimmer)
I reset the whole thing and again tried from step 1 and while no i dont get any error but the LUA script dont seem to work at all
I created 2 LAU scripts
first one named YeeLight Dimmer and second one named YeeLightLounge and scripts as below
commandArray = {}
DomDevice = 'Yeelight Dimmer';
TempDevice = 'YeeLounge'
IP = '192.168.1.111';
PORT = '55443'
if devicechanged[DomDevice] then
if(devicechanged[DomDevice]=='Off') then
DomValue = 0;
runcommandoff = "sudo echo -ne '{\"id\":1,\"method\":\"set_power\", \"params\":[\"off\", \"smooth\", 500]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";;
os.execute(runcommandoff);
else
TempValue = otherdevices_svalues[TempDevice];
CalcValue = ((TempValue-1) * 48)+1700;
DomValue = otherdevices_svalues[DomDevice];
end
if CalcValue==nil then CalcValue=0 end
runcommand = "sudo echo -ne '{\"id\":1, \"method\":\"set_scene\", \"params\":[\"ct\", " .. CalcValue .. ", " .. DomValue .. "]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";
os.execute(runcommand);
print(runcommand)
print("bright value= "..DomValue);
end
return commandArray
script for YeeLightLounge
commandArray = {}
DomDevice = 'YeeLounge';
IP = '192.168.1.111';
PORT = '55443'
if devicechanged[DomDevice] then
if(devicechanged[DomDevice]=='Off') then
DomValue = 0;
runcommandoff = "sudo echo -ne '{\"id\":1,\"method\":\"set_power\", \"params\":[\"off\", \"smooth\", 500]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";;
os.execute(runcommandoff);
else
DomValue = otherdevices_svalues[DomDevice];
CalcValue = ((DomValue-1) * 48)+1700;
end
if CalcValue==nil then CalcValue=0 end
runcommand = " sudo echo -ne '{\"id\":1, \"method\":\"set_scene\",\"params\":[\"ct\"," .. CalcValue .. ", 75]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."";
os.execute(runcommand);
print(runcommand)
print("Color Temp= "..CalcValue);
end
return commandArray
When i look in the log there is no error but when i use the virtual switches nothing happens - see log below
2016-12-21 12:35:58.870 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 6068, 33]}\r\n' | nc -w1 192.168.1.110 55443
2016-12-21 12:35:58.872 LUA: bright value= 33
2016-12-21 12:35:58.442 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:35:59.822 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:36:00.160 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",3332, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:00.162 LUA: Color Temp= 3332
2016-12-21 12:35:59.824 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:32.912 EventSystem: reset all events...
2016-12-21 12:36:46.726 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:36:46.976 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:46.977 LUA: bright value= 0
2016-12-21 12:36:46.728 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:36:49.246 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:36:49.546 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:49.548 LUA: Color Temp= 0
2016-12-21 12:36:49.247 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:55.634 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:36:55.886 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:55.888 LUA: Color Temp= 1652
2016-12-21 12:36:55.635 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:57.927 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:36:58.314 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",5780, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:58.316 LUA: Color Temp= 5780
2016-12-21 12:36:57.930 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:36:59.122 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:36:59.389 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5780, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:36:59.390 LUA: bright value= 0
2016-12-21 12:36:59.124 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:37:01.578 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:37:01.983 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5780, 84]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:37:01.985 LUA: bright value= 84
2016-12-21 12:37:01.579 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:38:34.240 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:38:34.514 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:34.516 LUA: Color Temp= 0
2016-12-21 12:38:34.241 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:38:39.093 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:38:39.390 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:39.392 LUA: bright value= 0
2016-12-21 12:38:39.094 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:38:56.121 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:38:56.440 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:56.442 LUA: Color Temp= 1652
2016-12-21 12:38:56.123 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:38:58.588 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:38:58.902 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:38:58.903 LUA: bright value= 0
2016-12-21 12:38:58.590 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:39:02.747 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:39:03.179 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 93]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:39:03.180 LUA: bright value= 93
2016-12-21 12:39:02.749 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:39:03.979 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:39:04.366 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",6116, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:39:04.368 LUA: Color Temp= 6116
2016-12-21 12:39:03.981 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:39:54.255 (Openweather) Temp + Humidity + Baro (Openweather THB)
2016-12-21 12:39:54.548 (Openweather) Wind (Wind)
2016-12-21 12:39:54.744 (Openweather) General/Visibility (Visibility)
2016-12-21 12:40:49.862 User: Admin initiated a switch command (43/YeeLounge/Off)
2016-12-21 12:40:50.561 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",0, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:40:50.562 LUA: Color Temp= 0
2016-12-21 12:40:49.863 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:40:52.577 User: Admin initiated a switch command (44/Yeelight Dimmer/Off)
2016-12-21 12:40:52.826 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 0, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:40:52.827 LUA: bright value= 0
2016-12-21 12:40:52.579 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:41:32.531 User: Admin initiated a switch command (44/Yeelight Dimmer/On)
2016-12-21 12:41:32.840 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 1652, 0]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:32.841 LUA: bright value= 0
2016-12-21 12:41:32.533 (virtual) Light/Switch (Yeelight Dimmer)
2016-12-21 12:41:39.150 User: Admin initiated a switch command (43/YeeLounge/On)
2016-12-21 12:41:39.440 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",1652, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:39.441 LUA: Color Temp= 1652
2016-12-21 12:41:39.151 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:41:43.028 User: Admin initiated a switch command (43/YeeLounge/Set Level)
2016-12-21 12:41:43.431 LUA: sudo echo -ne '{"id":1, "method":"set_scene","params":["ct",5060, 75]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:43.432 LUA: Color Temp= 5060
2016-12-21 12:41:43.030 (virtual) Light/Switch (YeeLounge)
2016-12-21 12:41:44.551 User: Admin initiated a switch command (44/Yeelight Dimmer/Set Level)
2016-12-21 12:41:44.954 LUA: sudo echo -ne '{"id":1, "method":"set_scene", "params":["ct", 5060, 78]}\r\n' | nc -w1 192.168.1.111 55443
2016-12-21 12:41:44.956 LUA: bright value= 78
2016-12-21 12:41:44.552 (virtual) Light/Switch (Yeelight Dimmer)
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
DEENNOO (2 E / 2 N / 2 O) not so hard, please.
Please use "code" to put your lua script this 'll be more readable
Does your yeelight works with domoticz ? have you put them on developper mode ? inclusion is ok ? domoticz can drive them ? is this a white or a color one ? (white one can't change is white temp...thoses script can't work with them)
Please use "code" to put your lua script this 'll be more readable
Does your yeelight works with domoticz ? have you put them on developper mode ? inclusion is ok ? domoticz can drive them ? is this a white or a color one ? (white one can't change is white temp...thoses script can't work with them)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 111
- Joined: Wednesday 12 October 2016 14:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Thank you for this great plug in.
I recently purchased 2 strip lights from gearbest for £28 each for the kitchen and they work great. Have a third on the way!
BTW they are still reduced if anyone is looking for one.
I recently purchased 2 strip lights from gearbest for £28 each for the kitchen and they work great. Have a third on the way!
BTW they are still reduced if anyone is looking for one.
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
mmm
Perhaps start a new topic for yeelight scripts...
My sunrise script is working................Are there more scripts for this light?
Sunset perhaps?
Perhaps start a new topic for yeelight scripts...
My sunrise script is working................Are there more scripts for this light?
Sunset perhaps?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
Got sunset, and other ones, just need some time to update wikiDerik wrote:mmm
Perhaps start a new topic for yeelight scripts...
My sunrise script is working................Are there more scripts for this light?
Sunset perhaps?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Great place in the wiki...
when you share yours GREAT thanks...
when you share yours GREAT thanks...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
About yeelight bulb is this possible to get brightness value on svalues column for event ?
I plan to made a rotative knob using xiaomi cube.
Clock wise turn on to 5% bulb if off and if already on increase dimmer of +10% vs actual value each time clock wise is trigger
turn anti clock wise decrease brightness of 10% vs actual value to turn it off.
Got a way to made it but need parsing json of device...not really fast answer.
I plan to made a rotative knob using xiaomi cube.
Clock wise turn on to 5% bulb if off and if already on increase dimmer of +10% vs actual value each time clock wise is trigger
turn anti clock wise decrease brightness of 10% vs actual value to turn it off.
Got a way to made it but need parsing json of device...not really fast answer.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
make a seperate group for al your yeellight wishes.
You can make any color Bright you like
Then make a blockley, cube size 1 = group 1
cube size 2 = etc
[ i hope every xiaomi cube size is a different idx in domoticz..]
Ordered gateway etc only the post from china grrrr
You can make any color Bright you like
Then make a blockley, cube size 1 = group 1
cube size 2 = etc
[ i hope every xiaomi cube size is a different idx in domoticz..]
Ordered gateway etc only the post from china grrrr
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
Your wrong i'm talking about the spinning fonction, spin the cube on his self clock_wise or anti_clock_wise.Derik wrote:make a seperate group for al your yeellight wishes.
You can make any color Bright you like
Then make a blockley, cube size 1 = group 1
cube size 2 = etc
[ i hope every xiaomi cube size is a different idx in domoticz..]
Ordered gateway etc only the post from china grrrr
Like a rotative knob
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Re: [Plugin now available in Beta] Help with Yeelight Bulb
is there any way to enable developer mode through MiHome app? I want to keep it paired with MiHome app (not yeelight app), but I can't see developer mode in MiHome app.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Install yeelight app enable and remove app
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Re: [Plugin now available in Beta] Help with Yeelight Bulb
thx, I thought it will not be able work in MiHome in developer mode... But it works well
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Guys, a quick help needed.
Does anyone know the default color temperature of the RGBW bulb (I mean the one when I first switch it on)? I'd like to compare it with the white only one (which is 4000k). If it's the same, then I could use the white only (cheaper one ) bulbs in certain places.
Thanks in advance!
Does anyone know the default color temperature of the RGBW bulb (I mean the one when I first switch it on)? I'd like to compare it with the white only one (which is 4000k). If it's the same, then I could use the white only (cheaper one ) bulbs in certain places.
Thanks in advance!
Re: [Plugin now available in Beta] Help with Yeelight Bulb
I am waiting for White Yeelight Bulb... Then I will compare it side by side with RGBW and we will see But I expect it will be quite same as default mode of RGBW.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
Easy !LouiS22 wrote:Guys, a quick help needed.
Does anyone know the default color temperature of the RGBW bulb (I mean the one when I first switch it on)? I'd like to compare it with the white only one (which is 4000k). If it's the same, then I could use the white only (cheaper one ) bulbs in certain places.
Thanks in advance!
Just reset your rgbw bulb by turn it on/off 5 times quickly, if ok bulb will flash to say ok i'm reset !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
Did you understand my question? I have a feeling that the answer is no.deennoo wrote:Easy !LouiS22 wrote:Guys, a quick help needed.
Does anyone know the default color temperature of the RGBW bulb (I mean the one when I first switch it on)? I'd like to compare it with the white only one (which is 4000k). If it's the same, then I could use the white only (cheaper one ) bulbs in certain places.
Thanks in advance!
Just reset your rgbw bulb by turn it on/off 5 times quickly, if ok bulb will flash to say ok i'm reset !
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
yeap i clearly understand your question, by reseting your bulb you will get it as brand new, and get the first white...LouiS22 wrote:Did you understand my question? I have a feeling that the answer is no.deennoo wrote:Easy !LouiS22 wrote:Guys, a quick help needed.
Does anyone know the default color temperature of the RGBW bulb (I mean the one when I first switch it on)? I'd like to compare it with the white only one (which is 4000k). If it's the same, then I could use the white only (cheaper one ) bulbs in certain places.
Thanks in advance!
Just reset your rgbw bulb by turn it on/off 5 times quickly, if ok bulb will flash to say ok i'm reset !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- LouiS22
- Posts: 433
- Joined: Friday 27 February 2015 13:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Budapest, Hungary
- Contact:
Re: RE: Re: [Plugin now available in Beta] Help with Yeelight Bulb
Actually you don'tdeennoo wrote:yeap i clearly understand your question, by reseting your bulb you will get it as brand new, and get the first white...LouiS22 wrote:Did you understand my question? I have a feeling that the answer is no.deennoo wrote: Easy !
Just reset your rgbw bulb by turn it on/off 5 times quickly, if ok bulb will flash to say ok i'm reset !
What I'd like to know is that the default white color temperature of the RGBW version and the "plain" White version of Yeelight is the same? Let's say it's 4000K. (I only have RGBW, so cannot test/compare). Makes sense now?
Who is online
Users browsing this forum: No registered users and 1 guest