Page 1 of 1
Update Mi-light status when using remote
Posted: Saturday 27 July 2019 21:43
by Kranendijk
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.
Re: Update Mi-light status when using remote
Posted: Saturday 27 July 2019 22:29
by poudenes
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.
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...
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
Re: Update Mi-light status when using remote
Posted: Sunday 28 July 2019 10:36
by Kranendijk
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

Re: Update Mi-light status when using remote
Posted: Sunday 28 July 2019 10:46
by poudenes
Kranendijk 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 was writing this from my phone in subway
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

otherwise send me a PM in Dutch
Re: Update Mi-light status when using remote
Posted: Sunday 28 July 2019 11:28
by Kranendijk
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!
Re: Update Mi-light status when using remote
Posted: Sunday 28 July 2019 11:57
by poudenes
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!
Yes. remove the milight hardware in domoticz, let the Plugin add all your bulbs in domoticz.
Then you have a 2way sync setup of your bulbs !!
Re: Update Mi-light status when using remote
Posted: Sunday 28 July 2019 23:51
by Kranendijk
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
Re: Update Mi-light status when using remote
Posted: Monday 29 July 2019 9:14
by poudenes
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"
Re: Update Mi-light status when using remote
Posted: Monday 29 July 2019 19:18
by Kranendijk
Double checked. No luck
I think... could it be the remote which is not supported by the esp hub?
Re: Update Mi-light status when using remote
Posted: Monday 29 July 2019 20:30
by poudenes
Better to ask developer on github
Verzonden vanaf mijn iPhone met Tapatalk Pro
Re: Update Mi-light status when using remote
Posted: Monday 29 July 2019 20:58
by Kranendijk
Re: Update Mi-light status when using remote
Posted: Tuesday 30 July 2019 7:12
by poudenes
Read this:
https://github.com/sidoh/esp8266_milight_hub/issues/76
there was already a question about the fut095
Re: Update Mi-light status when using remote
Posted: Wednesday 31 July 2019 23:35
by Kranendijk
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.
Re: Update Mi-light status when using remote
Posted: Thursday 01 August 2019 8:52
by poudenes
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.
Re: Update Mi-light status when using remote
Posted: Thursday 01 August 2019 22:17
by Kranendijk
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.
Re: Update Mi-light status when using remote
Posted: Thursday 01 August 2019 22:28
by poudenes
Good!! We all.happy again
Verzonden vanaf mijn iPhone met Tapatalk Pro