sidoh/esp8266_milight_hub 1.13.0

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

sidoh/esp8266_milight_hub 1.13.0

Post 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 1022 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 1020 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..
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: sidoh/esp8266_milight_hub 1.13.0

Post 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}}
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
theo11
Posts: 14
Joined: Saturday 11 April 2020 11:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherland
Contact:

Re: sidoh/esp8266_milight_hub 1.13.0

Post 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
Attachments
Scherm­afbeelding 2024-11-26 om 22.15.51.png
Scherm­afbeelding 2024-11-26 om 22.15.51.png (242.68 KiB) Viewed 873 times
Domoticz v2024.7, running on RP5/RP3B+, Bookworm/docker.
Applications/Devices/plugins:
RP5: Z-wave-JS, MQTT Broker, Homebridge, Milight hub, LMS, Denon, MQTT client/auto, RFXCOM
RP3B+: SolarEdge, P1 Smart meter UBS, Plugwise Anna, LIBGPIOD (Doorbell)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests