Update Mi-light status when using remote
Moderators: leecollings, remb0
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Update Mi-light status when using remote
Hi all,
As a first start to make my home a bit more smart, I decided to test a Mi-light bulb and remote. The bulb is a FUT014 and the remote FUT095. Works billiant!
Instead of the wifi box I copied the project "Replacement for a Milight/LimitlessLED hub hosted on an ESP8266" (https://github.com/sidoh/esp8266_milight_hub). I like creating things, and works as well.
However I cannot find out (believe me, I searched!) how to get the status of the bulb right in Domoticz when using the remote (WAF and she LOVES it). Ticking it in domoticz, dashticz updates the bulb icon on/off and also using the milight hub interface does the same.
Is it in some way possible to update the bulb icon on/off when using the remote? I want to have the corrct status of each bulb when using dashticz on a central iPad which is now a leftover.
System running on RPi3, domoticz v4.10717, since today as well mosquitto MQTT installed. Learning about that one though.
As a first start to make my home a bit more smart, I decided to test a Mi-light bulb and remote. The bulb is a FUT014 and the remote FUT095. Works billiant!
Instead of the wifi box I copied the project "Replacement for a Milight/LimitlessLED hub hosted on an ESP8266" (https://github.com/sidoh/esp8266_milight_hub). I like creating things, and works as well.
However I cannot find out (believe me, I searched!) how to get the status of the bulb right in Domoticz when using the remote (WAF and she LOVES it). Ticking it in domoticz, dashticz updates the bulb icon on/off and also using the milight hub interface does the same.
Is it in some way possible to update the bulb icon on/off when using the remote? I want to have the corrct status of each bulb when using dashticz on a central iPad which is now a leftover.
System running on RPi3, domoticz v4.10717, since today as well mosquitto MQTT installed. Learning about that one though.
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
What you can do is read wifi on sidoh github wifi. Read part of the milight plugin. Then you use MQTT protocol to import all bulbs in domoticz. When the bulb status change in the hub it will update it also in domoticz...Kranendijk wrote:Hi all,
As a first start to make my home a bit more smart, I decided to test a Mi-light bulb and remote. The bulb is a FUT014 and the remote FUT095. Works billiant!
Instead of the wifi box I copied the project "Replacement for a Milight/LimitlessLED hub hosted on an ESP8266" (https://github.com/sidoh/esp8266_milight_hub). I like creating things, and works as well.
However I cannot find out (believe me, I searched!) how to get the status of the bulb right in Domoticz when using the remote (WAF and she LOVES it). Ticking it in domoticz, dashticz updates the bulb icon on/off and also using the milight hub interface does the same.
Is it in some way possible to update the bulb icon on/off when using the remote? I want to have the corrct status of each bulb when using dashticz on a central iPad which is now a leftover.
System running on RPi3, domoticz v4.10717, since today as well mosquitto MQTT installed. Learning about that one though.
I'm using the plugin for a while and it's the best way. You don't need to create udp remotes in hub anymore because it work on MQTT
Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Hi poudenes,
Thanks for the quick reply, not sure what you mean though... bulb and otger devices are already in domoticz when I installed the gateway and plugin. Don’t see how to do that using mqtt. Hint and tip is very welcome!
Can’t I check the bulb status in the esp sidoh hub and communicate that to domoticz?
Puzzled here, for now it is beyond my knowledge
Thanks for the quick reply, not sure what you mean though... bulb and otger devices are already in domoticz when I installed the gateway and plugin. Don’t see how to do that using mqtt. Hint and tip is very welcome!
Can’t I check the bulb status in the esp sidoh hub and communicate that to domoticz?
Puzzled here, for now it is beyond my knowledge

-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
I was writing this from my phone in subwayKranendijk wrote: ↑Sunday 28 July 2019 10:36 Hi poudenes,
Thanks for the quick reply, not sure what you mean though... bulb and otger devices are already in domoticz when I installed the gateway and plugin. Don’t see how to do that using mqtt. Hint and tip is very welcome!
Can’t I check the bulb status in the esp sidoh hub and communicate that to domoticz?
Puzzled here, for now it is beyond my knowledge![]()

I use the hub from https://github.com/sidoh/esp8266_milight_hub
and I use the Domoticz Plugin from https://github.com/galinette2000/espmilighthub-domoticz
You create all your groups in the hub and thats it. When you install MQTT in RPi next to Domoticz, then you can config the hub using MQTT as well
The plugin is special made to use the MQTT protocol. When you delete all your bulbs in domoticz, then install MQTT on RPi
Use those MQTT Patterns written in the Wiki: https://github.com/sidoh/esp8266_miligh ... i/Domoticz
Then turn on all bulbs in the hub, so all bulbs are stored also in MQTT.
Now install the plugin in Domoticz, and then when you goto devices you see all your bulbs.
When you change a bulb in the hub, it will send a update to Domoticz using MQTT.
When you change a bulb in domoticz, it will send a update to the hub using MQTT
When you use the remote it will send a signal to the hub, and the hub sends a update to domoticz using MQTT
Im playing around with Home Assistant also, have add the bulbs using MQTT protocol, when I change the bulb in HA, then I see the change back in Domoticz...
Hope you understand it now

RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Haha seems easy. I think I understand now. Installed the milight hardware in domoticz, seems like that is not needed and causes my confusion. Will give your setup a try and let you know!
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
Yes. remove the milight hardware in domoticz, let the Plugin add all your bulbs in domoticz.Kranendijk wrote: ↑Sunday 28 July 2019 11:28 Haha seems easy. I think I understand now. Installed the milight hardware in domoticz, seems like that is not needed and causes my confusion. Will give your setup a try and let you know!
Then you have a 2way sync setup of your bulbs !!
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Bulbs recognized! Almost there as I see no updates when using the remote however
Could be config, need to check that. First holidays and moving. No updates before end of september I am afraid.
I’ll be back

Could be config, need to check that. First holidays and moving. No updates before end of september I am afraid.
I’ll be back
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
You have both in hub and plugin the same MQTT lines:
MQTT topic pattern: milight/:device_id/:device_type/:group_id
MQTT update topic pattern: milight/updates/:hex_device_id/:device_type/:group_id
MQTT state topic pattern: milight/states/:hex_device_id/:device_type/:group_id
Group state fields: Disable "oh_color"
MQTT topic pattern: milight/:device_id/:device_type/:group_id
MQTT update topic pattern: milight/updates/:hex_device_id/:device_type/:group_id
MQTT state topic pattern: milight/states/:hex_device_id/:device_type/:group_id
Group state fields: Disable "oh_color"
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Double checked. No luck
I think... could it be the remote which is not supported by the esp hub?

I think... could it be the remote which is not supported by the esp hub?
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
Better to ask developer on github 
Verzonden vanaf mijn iPhone met Tapatalk Pro

Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
Read this:
https://github.com/sidoh/esp8266_milight_hub/issues/76
there was already a question about the fut095
https://github.com/sidoh/esp8266_milight_hub/issues/76
there was already a question about the fut095
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Yes! It works!
See issue on github for the answer.
In short:
sidoh told me:
It sounds like the remote might have a different ID than the one you're using with espMH. If that's the case, state for the remote will be getting published to a different topic. If this ends up being true, your options are:
(A) Use the remote's ID
Unpair the bulb with the ID espMH is using (see the wiki for unpair instructions)
Make sure they're still working with the remote
Use the remote's ID in espMH, update domoticz accordingly
I had no signal received in the espMH. (use Start sniffing icon) For testing I attached the espMH to a power supply only, apparently not strong enough? I attached it to my laptop via USB, receiving signals in a sudden. No flicker when on power supply, flickering when on USB. So I attached the espMH to the rpi3's USB, found the remote ID, added it as device ID 0x and voila.
See issue on github for the answer.
In short:
sidoh told me:
It sounds like the remote might have a different ID than the one you're using with espMH. If that's the case, state for the remote will be getting published to a different topic. If this ends up being true, your options are:
(A) Use the remote's ID
Unpair the bulb with the ID espMH is using (see the wiki for unpair instructions)
Make sure they're still working with the remote
Use the remote's ID in espMH, update domoticz accordingly
I had no signal received in the espMH. (use Start sniffing icon) For testing I attached the espMH to a power supply only, apparently not strong enough? I attached it to my laptop via USB, receiving signals in a sudden. No flicker when on power supply, flickering when on USB. So I attached the espMH to the rpi3's USB, found the remote ID, added it as device ID 0x and voila.
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
So,
Using remote will update ESP and Domoticz status
?
if so , this is the best combination for Milight Bulbs.. love this hardware and plugin.
I add 3 issues with the plugin, but developer is not often online to check.
There are miner bug fixes to do.
Using remote will update ESP and Domoticz status

if so , this is the best combination for Milight Bulbs.. love this hardware and plugin.
I add 3 issues with the plugin, but developer is not often online to check.
There are miner bug fixes to do.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Update Mi-light status when using remote
Yep, all nice and shiny, great and quick response from developer!
Only thing is that after using the correct ID I had a zillion esp bulb devices
I checked which ones were usefull and working, deleted the remainder.
Trying to get it nicely in dashticz, that might be a different topic if needed.
Only thing is that after using the correct ID I had a zillion esp bulb devices

Trying to get it nicely in dashticz, that might be a different topic if needed.
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: Update Mi-light status when using remote
Good!! We all.happy again
Verzonden vanaf mijn iPhone met Tapatalk Pro
Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Who is online
Users browsing this forum: No registered users and 1 guest