Page 1 of 1

sidoh/esp8266_milight_hub 1.13.0

Posted: Tuesday 12 November 2024 20:25
by sincze
Just a heads up before updating!

I just updated my ESP8266 milight hub to version 1.13.0
New interface looks really fantastic.

The lights via this hub are integrated via autodiscovery into Domoticz 2024.7.

When enabling the alarm the milights would flash red and disabling they would flash green.

I just noticed that enabling and disabling the alarm only results into the lights going ' On' (white) and no sign of red/green flashing.
Something has changed somewhere.
In my Domoticz Hardware I noticed:
milight.jpg
milight.jpg (34.14 KiB) Viewed 2552 times
Still figuring out what is going on here as I can not control the color of the lights from within Domoticz anymore.
I can control the color of the lights via the milight hub itself.

I added the discovery topic to my test Domoticz system and it added the milight as a switch.
milight-2.jpg
milight-2.jpg (12.47 KiB) Viewed 2550 times
I can control on/off however if i change switch to dimmer in Domoticz this does not work correctly. After setting dimmer to 0 it does not turn on again..

Re: sidoh/esp8266_milight_hub 1.13.0

Posted: Sunday 24 November 2024 16:56
by sincze
I noticed the MQTT commands changed slightly.

From:

Code: Select all

{
	"state": "ON",
	"brightness": 255,
	"color": {
		"r": 255,
		"g": 255,
		"b": 255
	},
	"color_mode": "brightness",
	"status": "ON"
}
To:

Code: Select all

{"state":"ON","color":{"r":255,"g":136,"b":100}}
{"state":"ON","brightness":148}
Or for white:

Code: Select all

{"state":"ON","color":{"r":255,"g":255,"b":255}}

Re: sidoh/esp8266_milight_hub 1.13.0

Posted: Tuesday 26 November 2024 22:19
by theo11
Autodiscovery was already available in the previous version.

I just migrated from RPI3B to RPI5.
On the RPI3B, the ESP8266 milight hub was integrated via a Domoticz plug-in for the ESP8266 Milight hub (https://github.com/galinette2000/espmil ... -domoticz), which also has the auto discovery of devices, including color selection.

On the RPI5B I tested the auto discovery (home assistance) of the ESP8266 milight hub, but it creates plain on/off devices, without dimmer and color selection.
So I have installed this plug-in again, see following link on how to configure https://github.com/sidoh/esp8266_milight_hub
These are the MQTT settings in ESP8266 milight hub:
Image