[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by weiweipossible »

corbin wrote:I'm fixing up some of the Yeelight commands, and for the mono light there is warm and cool white buttons. Are these modes possible with the mono light?

warmcool.PNG

From the "support" header in discover response message, you can find all the supported actions for each different type of device.
For "mono", it only supports "set_bright", no rgb or ct adjustment.
deennoo
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

Post by deennoo »

weiweipossible wrote:

From the "support" header in discover response message, you can find all the supported actions for each different type of device.
For "mono", it only supports "set_bright", no rgb or ct adjustment.
Still waiting my mono one's from ali...made some test with rgbw one with mono selection

using Full Light button doesn't works, it set bulb on a cold with with mid bright, can you help please ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

weiweipossible wrote:
From the "support" header in discover response message, you can find all the supported actions for each different type of device.
For "mono", it only supports "set_bright", no rgb or ct adjustment.
Thanks, I was thinking I'd missed something seeing those buttons there for the mono light.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

deennoo wrote:
Still waiting my mono one's from ali...made some test with rgbw one with mono selection

using Full Light button doesn't works, it set bulb on a cold with with mid bright, can you help please ?
How do you change the RGBW to mono in Domoticz?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
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

Post by deennoo »

Delet rgbw and add the new as a mono
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

The reason the Full light button doesn't work as you expect is that only the brightness command is currently sent, as it expects a Mono light where setting brightness is sufficient.

With a RGBW light, it should go to full brightness for the colour it is currently set to. What if you send warm white or cool white prior to the full light command?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
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

Post by deennoo »

corbin wrote:The reason the Full light button doesn't work as you expect is that only the brightness command is currently sent, as it expects a Mono light where setting brightness is sufficient.

With a RGBW light, it should go to full brightness for the colour it is currently set to. What if you send warm white or cool white prior to the full light command?
What do you mean by prior ? before sending full bright ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

yes, if you want a white light at full brightness.

otherwise it will go to full brightness for the currently set colour.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
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

Post by deennoo »

Back to rgbw, will spoke about mono when mine arrive.

My probleme is that actually, when i turn on the bulb it start a 100% bright and cold white.

With last domo stable.

As a bed room light : not so good.

I'm helping another HA to implented yeelight, they do it great (as you) on/off don't change temp and bright.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

When using the "Limitless_LedOn" command, my lights are turning on to the same brightness they were last at, when I use Domoticz or the Yeelight Android app. Yes the bedroom light is nice to be dim! one of the reasons I started looking for these kind of lights.

So I think your lights could be behaving differently, or maybe you are not triggering the "Limitless_LedOn" command, which sends:

Code: Select all

{"id":1,"method":"set_power","params":["on", "smooth", 500]}\r\n
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
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

Post by deennoo »

I made some dummy device and lua script to improve yeelight implantation, i think that natively domotigz have to add the device for each yeelight bulb

Interest of this dummy device : they can be trigger with api, or scene, or lua script
white temp yeelight.PNG
white temp yeelight.PNG (55.45 KiB) Viewed 1832 times
add to this lua script :

Code: Select all

commandArray = {}
DomDevice = 'White Temp Yeelight';
IP = '192.168.0.207';
PORT = '55443'
--PIN = "4";
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
turn automaticaly bulb and set it to the white temp color choose
yeelight dimmer.PNG
yeelight dimmer.PNG (49.96 KiB) Viewed 1832 times
join to this script

Code: Select all

[codecommandArray = {}
DomDevice = 'Yeelight Dimmer'; -- here name of your dimmer
TempDevice = 'White Temp Yeelight' -- here name of your white temperature slider
IP = 'youryeelightbulbip';
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
This Dimmer turn automaticaly On and Off Yeelight Bulb to the dimmer value and the color temp choose on the Color temp Slider

Yeelight Sceen selector :
yeelight sceen.PNG
yeelight sceen.PNG (63.19 KiB) Viewed 1832 times

Code: Select all

Working on the lua script
This one allow to choose sceen, as disco can't work, and ccan not be call from the api, for yeelight bulb,
Want to add red alerte sceen need help from @weiweipossible to get mobile app scene if possible, send me an MP please.
Last edited by deennoo on Monday 12 December 2016 11:16, edited 2 times in total.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
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

Post by Westcott »

Hi Deennoo,
I've done much the same with Lua to control my light.
My light is used mainly as a security warning, showing different colours and flash patterns depending on the warning.
It's also a welcome and night light.
they all use different colo(u)r flow 'start_cf' commands, configured in Lua.
Creating Disco won't be too difficult.
It looks like endless smooth 0.5s transitions between red, yellow/green, pale blue, pink
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
deennoo
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

Post by deennoo »

Westcott wrote:Hi Deennoo,
I've done much the same with Lua to control my light.
My light is used mainly as a security warning, showing different colours and flash patterns depending on the warning.
It's also a welcome and night light.
they all use different colo(u)r flow 'start_cf' commands, configured in Lua.
Creating Disco won't be too difficult.
It looks like endless smooth 0.5s transitions between red, yellow/green, pale blue, pink
Can you share you lua please ? To see if they use sale kind of api.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
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

Post by Westcott »

The code can be included with -

package.path = '/home/pi/domoticz/scripts/lua/?.lua;' .. package.path
YEE = require("Yee")

It can be run either from Domoticz Lua, or from a stand-alone Lua test script.
It should be able to support multiple lamps, but that's untested.
It uses a socket, but could probably use io.popen(url) instead to get the lamp's status.

Code: Select all

local Yee = {};
	package.loadlib("core.so", "*")
    local Socket = require "socket"

	local YeeName = 'Study Yee'
	
	local YeeNames  = {}
    YeeNames[YeeName] = '172.16.176.75'

	local YeeIP = YeeNames[YeeName]
    local YeePort = 55443
    
	local YeeState
	
    function TCPopenYee()
    
        local tcp = Socket.connect(YeeIP, YeePort)
        
        if not tcp then
        	print("Socket connect failed for Yee")
        	return
		else
--			print("Yee OK")
        end
        
        tcp:settimeout(2)
			
        return tcp
    end

	function SendToYee(method, params)
		if not params then params = "" end
		sendStr = string.format('{"id":1,"method":"%s","params":[%s]}\r\n', method, params)
--		sendStr = string.format('{"id":1,"method":"get_prop","params":["power", "bright", "rgb"]} \r\n')
		tcp = TCPopenYee()
    	i, status = tcp:send(sendStr);
    	
    	if not i then
    		print("Yee send failed - "..status)
     	end
		
	    s, status, partial = tcp:receive()
    		
    	if (status) then
    		print("Yee receive - "..status)
    	end
    			
    	local line = (s or partial)
--		print(line)

        tcp:close()
	end
	
	function GetState()
		sendStr = string.format('{"id":1,"method":"get_prop","params":["power","bright","rgb","flowing"]} \r\n')
		tcp = TCPopenYee()
    	i, status = tcp:send(sendStr);
    	
    	if not i then
    		print("Yee send failed - "..status)
			return
     	end
		
	    s, status, partial = tcp:receive()
    		
    	if (status) then
    		print("Yee receive - "..status)
			return
    	end
    			
    	local result = (s or partial)
        tcp:close()
		state, bright, rgb, flowing = string.match(result, '%["(%a+)","(%d+)","(%d+)","(%d)"')
		return state, flowing
	end
	
	function SetPower(param1, speed)
		if not YeeState then YeeState = GetState() end
		if (YeeState ~= param1) then SetSpeed("set_power", param1, speed) end
	end

	function SetSpeed(method, param1, speed)
		if speed then
			effect = "smooth"
		else
			effect = "sudden"
			speed  = 0
		end
		params = string.format('%s,"%s",%d', param1, effect, speed)
		SendToYee(method, params)
	end

	function Yee.Bright(bright, speed)
		SetSpeed("set_bright", bright, speed)
	end

	function Yee.Colour(colour, speed)
		SetSpeed("set_ct_abx", colour, speed)
	end

	function Yee.RGB(hexRGB, speed)
		rgb = tostring(tonumber(hexRGB, 16))
		SetSpeed("set_rgb", rgb, speed)
	end

	function GetAction()
		if not YeeState then YeeState, flowing = GetState() end

		if (flowing == "1") then
			print("Yee is flowing")
			action = -1
		elseif (YeeState == "on") then
--			print("Yee is ON "..YeeState)
			action = 0
		else -- Turn lamp on, action 2 will turn it off afterwards
--			print("Yee is OFF "..YeeState)
			SetSpeed("set_power",'"on"', 500)
			action = 2
		end
		return action
	end
	
	function Yee.OnFor(secs, colour, bright)
        hex = string.match(colour, "%x%x%x%x%x%x")
		if hex then
			col = tostring(tonumber(hex, 16))
			mode = 1
		else
			col = tostring(colour)
			mode = 2
		end
		action = GetAction()
		if (action > 0) then
			params = string.format('2, %d, "250,%d,%s,%d, %d,7,50,50"', action, mode, col, bright, secs*1000)
			SendToYee("start_cf", params)
			print("Yee on for "..secs)
		end
	end

	function Yee.Pulse(colour, reps, speed, bmax, bmin)
		if colour then col = tonumber(colour, 16) else col = tonumber("aaaaaa", 16) end
		if reps then reps = reps*2 else reps = 6 end 
		if not speed then speed = 500 end
		if not bmax  then bmax  = 100 end
		if not bmin  then bmin  = 5 end
		action = GetAction()
		if (action > 0) then		
			params = string.format('%d,%d,"%d,1,%d,%d,%d,1,%d,%d"', reps, action, speed, col, bmax, speed, col, bmin)
			SendToYee("start_cf", params)
			print("Yee pulse "..reps)
		end
	end
	
	function Yee.On(speed)
		SetPower('"on"', speed)
	end
		
	function Yee.Off(speed)
		SetPower('"off"', speed)
	end

	function Yee.Toggle()
		SendToYee("toggle")
	end
	
	function Yee.Default()
		SendToYee("set_default")
	end

	function Yee.Stop()
		SendToYee("stop_cf")
	end

	function Yee.Set(name)
		YeeIP    = YeeNames[name]
		YeeName  = name
		YeeState = GetState()
	end

return Yee;
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
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

Good work guys, the way Domoticz works scripting is needed to do this fine control. It is a good thing you can make it do what you want rather than be limited to what the GUI offers.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
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

Post by deennoo »

Westcott wrote:The code can be included with -

package.path = '/home/pi/domoticz/scripts/lua/?.lua;' .. package.path
YEE = require("Yee")

It can be run either from Domoticz Lua, or from a stand-alone Lua test script.
It should be able to support multiple lamps, but that's untested.
It uses a socket, but could probably use io.popen(url) instead to get the lamp's status.

Code: Select all

local Yee = {};
	package.loadlib("core.so", "*")
    local Socket = require "socket"

	local YeeName = 'Study Yee'
	
	local YeeNames  = {}
    YeeNames[YeeName] = '172.16.176.75'

	local YeeIP = YeeNames[YeeName]
    local YeePort = 55443
    
	local YeeState
	
    function TCPopenYee()
    
        local tcp = Socket.connect(YeeIP, YeePort)
        
        if not tcp then
        	print("Socket connect failed for Yee")
        	return
		else
--			print("Yee OK")
        end
        
        tcp:settimeout(2)
			
        return tcp
    end

	function SendToYee(method, params)
		if not params then params = "" end
		sendStr = string.format('{"id":1,"method":"%s","params":[%s]}\r\n', method, params)
--		sendStr = string.format('{"id":1,"method":"get_prop","params":["power", "bright", "rgb"]} \r\n')
		tcp = TCPopenYee()
    	i, status = tcp:send(sendStr);
    	
    	if not i then
    		print("Yee send failed - "..status)
     	end
		
	    s, status, partial = tcp:receive()
    		
    	if (status) then
    		print("Yee receive - "..status)
    	end
    			
    	local line = (s or partial)
--		print(line)

        tcp:close()
	end
	
	function GetState()
		sendStr = string.format('{"id":1,"method":"get_prop","params":["power","bright","rgb","flowing"]} \r\n')
		tcp = TCPopenYee()
    	i, status = tcp:send(sendStr);
    	
    	if not i then
    		print("Yee send failed - "..status)
			return
     	end
		
	    s, status, partial = tcp:receive()
    		
    	if (status) then
    		print("Yee receive - "..status)
			return
    	end
    			
    	local result = (s or partial)
        tcp:close()
		state, bright, rgb, flowing = string.match(result, '%["(%a+)","(%d+)","(%d+)","(%d)"')
		return state, flowing
	end
	
	function SetPower(param1, speed)
		if not YeeState then YeeState = GetState() end
		if (YeeState ~= param1) then SetSpeed("set_power", param1, speed) end
	end

	function SetSpeed(method, param1, speed)
		if speed then
			effect = "smooth"
		else
			effect = "sudden"
			speed  = 0
		end
		params = string.format('%s,"%s",%d', param1, effect, speed)
		SendToYee(method, params)
	end

	function Yee.Bright(bright, speed)
		SetSpeed("set_bright", bright, speed)
	end

	function Yee.Colour(colour, speed)
		SetSpeed("set_ct_abx", colour, speed)
	end

	function Yee.RGB(hexRGB, speed)
		rgb = tostring(tonumber(hexRGB, 16))
		SetSpeed("set_rgb", rgb, speed)
	end

	function GetAction()
		if not YeeState then YeeState, flowing = GetState() end

		if (flowing == "1") then
			print("Yee is flowing")
			action = -1
		elseif (YeeState == "on") then
--			print("Yee is ON "..YeeState)
			action = 0
		else -- Turn lamp on, action 2 will turn it off afterwards
--			print("Yee is OFF "..YeeState)
			SetSpeed("set_power",'"on"', 500)
			action = 2
		end
		return action
	end
	
	function Yee.OnFor(secs, colour, bright)
        hex = string.match(colour, "%x%x%x%x%x%x")
		if hex then
			col = tostring(tonumber(hex, 16))
			mode = 1
		else
			col = tostring(colour)
			mode = 2
		end
		action = GetAction()
		if (action > 0) then
			params = string.format('2, %d, "250,%d,%s,%d, %d,7,50,50"', action, mode, col, bright, secs*1000)
			SendToYee("start_cf", params)
			print("Yee on for "..secs)
		end
	end

	function Yee.Pulse(colour, reps, speed, bmax, bmin)
		if colour then col = tonumber(colour, 16) else col = tonumber("aaaaaa", 16) end
		if reps then reps = reps*2 else reps = 6 end 
		if not speed then speed = 500 end
		if not bmax  then bmax  = 100 end
		if not bmin  then bmin  = 5 end
		action = GetAction()
		if (action > 0) then		
			params = string.format('%d,%d,"%d,1,%d,%d,%d,1,%d,%d"', reps, action, speed, col, bmax, speed, col, bmin)
			SendToYee("start_cf", params)
			print("Yee pulse "..reps)
		end
	end
	
	function Yee.On(speed)
		SetPower('"on"', speed)
	end
		
	function Yee.Off(speed)
		SetPower('"off"', speed)
	end

	function Yee.Toggle()
		SendToYee("toggle")
	end
	
	function Yee.Default()
		SendToYee("set_default")
	end

	function Yee.Stop()
		SendToYee("stop_cf")
	end

	function Yee.Set(name)
		YeeIP    = YeeNames[name]
		YeeName  = name
		YeeState = GetState()
	end

return Yee;
As i'm not a script coder familiar (i begin with this), please can you comment this ? and add an real lua script who use it ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
deennoo
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

Post by deennoo »

corbin wrote:Good work guys, the way Domoticz works scripting is needed to do this fine control. It is a good thing you can make it do what you want rather than be limited to what the GUI offers.
Gui can be change, by using appropriate device (not the limitlessled ones who was done for another hardware

Exemple : for rgbw bulb
using a RGBW switch at creation instead of a limitless one (who add unusful button)
and add selector for pre registred scene
and dimmer slider set as a white temp slider.

bright dimmer can stay a dummy and lua script device, i made it for my comfort.

Easy to say, but surely not easy to do for none Domoticz c++ Dev
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
somiarun
Posts: 4
Joined: Thursday 08 December 2016 9:19
Target OS: Windows
Domoticz version: 3.5877
Location: Sydney
Contact:

Help with Yeelight Bulb

Post by somiarun »

Hi i have 3 yeelight i am running in my home automation setup. When i register into domoticz yeelight is registered as RGB bulb and i am able to tun on and off lights and as well change colours but i want to create a scene so that when i set the scene normal mode i want the Yeelight to be able to switch to normal Yellow/White mode as opposed to RGB mode - can anyone help please.

I tried few commands with various parameters but cant seem to be able to do so. I even registered the lights only as mono but no luck.

My aim to to setup 3 scenes that i can use with alexa - Normal mode (Normal Yellow/White lights , Movie - Blue colour and Music mode - Trigger Disco Lights)

Any help from the forum would much appreciate
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Help with Yeelight Bulb

Post by deennoo »

somiarun wrote:Hi i have 3 yeelight i am running in my home automation setup. When i register into domoticz yeelight is registered as RGB bulb and i am able to tun on and off lights and as well change colours but i want to create a scene so that when i set the scene normal mode i want the Yeelight to be able to switch to normal Yellow/White mode as opposed to RGB mode - can anyone help please.

I tried few commands with various parameters but cant seem to be able to do so. I even registered the lights only as mono but no luck.

My aim to to setup 3 scenes that i can use with alexa - Normal mode (Normal Yellow/White lights , Movie - Blue colour and Music mode - Trigger Disco Lights)

Any help from the forum would much appreciate
My solution was to use the white dummy dimmer + lua script and then trigger it from scene (it will turn bulb on and off)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
somiarun
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

Post by somiarun »

what do you mean when you say White Dummy Dimmer - you mean add a virtual sensor

I am on domoticz 3.5877 but there is no white dummy dimmer only RGB or RGBW
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests