New plugin : ESP8266 Milight Hub

Python and python framework

Moderator: leecollings

galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

New plugin : ESP8266 Milight Hub

Post by galinette »

I wrote a dedicated plugin for the ESP8266 Milight Hub (https://github.com/sidoh/esp8266_milight_hub)

There was already a way to use the hub with the Limitless plugin built-in domoticz, because it emulates the UDP protocol of the official Milight Hubs (iBox, etc...). But it had a lot of limitations:
  • Not compatible with newer devices (FUT089 remotes & lamps) which use the v7 UDP protocol, not implemented
  • Limited to a single remote, so 4 lamps per remote type
  • Not bidirectional : if you use a remote, the domoticz state is not updated
This plugin uses the MQTT implementation of the ESP8266 Milight Hub, so you need a MQTT server. It directly handles MQTT messages from the hub without the need for any translation layer.
It unlocks all the feature of the hub:
  • Up to 65536 remotes
  • Full bidirectional, synced with the lamp state even if you use the remotes
  • All newer milight hardware are supported
  • All functions working, including disco modes, etc...
It's a first draft, feel free to test & report issues!

Github project : https://github.com/galinette2000/espmilighthub-domoticz
ZIP Download link : https://github.com/galinette2000/espmil ... master.zip

----------------------
Updated to 0.0.3 : fixes color temp & brightness updates
Updated to 0.0.4 : fixed error line 458 'devicetype' not defined with some remotes
Updated to 0.0.5 : fixed error line 513 hs_to_rgb
Updated to 0.0.6 : Implemented Night Mode & added some log
Updated to 0.0.7 : Implemented all dzVents light device functions
Last edited by galinette on Saturday 18 May 2019 15:17, edited 5 times in total.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Is it faster then the old way? I have so many bulbs in Domoticz that use the HUB.
If there is any speed performance than yes I will give it a try, its a risk for me... Domoticz is working 100% correct now haha... but sometimes when turn on/off/brightness many bulbs I see a lag... every second 1 bulb is changing instead of milliseconds when I do same action from a .SH script using command line... :D
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

I can test!

How do you switch many bulbs at once, is it an event script, or a scene? Or are you a mouse/touchpad ninja?

The plugin may be run in the same time as the old way, you will just have devices in double. But this should not mess things up.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

I'll already build a RPI3 with Domoticz as test server.
I will come back with some tests :)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Add the plugin, give the MQTT server info (from my running RPi3) I see that its connected but there are no devices found.

What do I need do in the hub itself?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

You need to allow new devices in Domoticz Settings, it is generally disabled.

Just click on 'Allow 5 Minutes', then switch on every light with your usual remote(s) within this time frame. They should be added automatically.
Did you set the topic patterns both in the Hub settings and in the plugin settings?

Hub MQTT settings (these are default settings from hub documentation)
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

Plugin settings : just use the same patterns
MQTT topic pattern: milight/:device_id/:device_type/:group_id
MQTT state topic pattern: milight/states/:hex_device_id/:device_type/:group_id
(update pattern is currently not used)
Last edited by galinette on Thursday 02 May 2019 22:07, edited 5 times in total.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

galinette wrote:You need to allow new devices in Domoticz Settings, it is generally disabled.

Just click on 'Allow 5 Minutes', then switch on every light with your usual remote(s) within this time frame. They should be added automatically.
Did you set the topic patterns both in the Hub settings and in the plugin settings?
The topic patterns I copied and put them in the hub. Then a got a error in domoticz log. I will post it here

Code: Select all

2019-05-02 21:06:25.579  Status: New sensors allowed for 5 minutes...
2019-05-02 21:06:34.300  Error: (Milight) 'onMessage' failed 'NameError':'name 'devicetype' is not defined'.
2019-05-02 21:06:34.300  Error: (Milight) ----> Line 652 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.300  Error: (Milight) ----> Line 226 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.300  Error: (Milight) ----> Line 150 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.301  Error: (Milight) ----> Line 273 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMQTTPublish
2019-05-02 21:06:34.301  Error: (Milight) ----> Line 458 in /home/pi/domoticz/plugins/Milight/plugin.py, function setLightDevice
2019-05-02 21:06:34.803  Error: (Milight) 'onMessage' failed 'NameError':'name 'devicetype' is not defined'.
2019-05-02 21:06:34.803  Error: (Milight) ----> Line 652 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.803  Error: (Milight) ----> Line 226 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.803  Error: (Milight) ----> Line 150 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:06:34.803  Error: (Milight) ----> Line 273 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMQTTPublish
2019-05-02 21:06:34.803  Error: (Milight) ----> Line 458 in /home/pi/domoticz/plugins/Milight/plugin.py, function setLightDevice
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

Fixed in 0.0.4, updated in the first post!
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Still same problem:

Code: Select all

2019-05-02 21:12:12.015  Status: New sensors allowed for 5 minutes...
2019-05-02 21:12:17.892  Error: (Milight) 'onMessage' failed 'TypeError':'unsupported operand type(s) for /: 'NoneType' and 'int''.
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 655 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 226 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 150 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 276 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMQTTPublish
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 607 in /home/pi/domoticz/plugins/Milight/plugin.py, function updateLightDevice
2019-05-02 21:12:17.893  Error: (Milight) ----> Line 513 in /home/pi/domoticz/plugins/Milight/plugin.py, function hs_to_rgb
2019-05-02 21:12:18.996  Error: (Milight) 'onMessage' failed 'TypeError':'unsupported operand type(s) for /: 'NoneType' and 'int''.
2019-05-02 21:12:18.996  Error: (Milight) ----> Line 655 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:18.996  Error: (Milight) ----> Line 226 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:18.996  Error: (Milight) ----> Line 150 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMessage
2019-05-02 21:12:18.997  Error: (Milight) ----> Line 276 in /home/pi/domoticz/plugins/Milight/plugin.py, function onMQTTPublish
2019-05-02 21:12:18.997  Error: (Milight) ----> Line 607 in /home/pi/domoticz/plugins/Milight/plugin.py, function updateLightDevice
2019-05-02 21:12:18.997  Error: (Milight) ----> Line 513 in /home/pi/domoticz/plugins/Milight/plugin.py, function hs_to_rgb
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

0.0.5 ....
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

It is working... Only the group ALL is not working, I don't het a device for it

Would be nice when you also can add Saturation option.

If so maybe I can connect you to guys so they can update dzVents so you can use Saturation also in dzVents script
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

Yes, I did not add it yet, because of a bug in the hub : when you do a change on the 'All' group, the state of individual groups are not modified. Which would cause the sync not to work in domoticz, for instance if you switch 'All' off, the individual devices will not turn to the Off state.

The hub developer is fixing this, as soon as it works, I add it.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Sounds great!! Keep me updated and I'm happy to test it. If everything is working then I'll change my current configuration. The color selector is more accurate with right color so that's a performance update already!!


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
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

I have add now couple of bulbs that are add into device list. But now I see some strange things going on:

1. When bulbs are in Disco modus, switch off is not working
2. When 2 bulbs are in Disco Modus it seems assigned to each other, when brightness the 1 the other change as well

When I change those bulbs in the Milight Hub then I can turn them on and off in Domoticz.

This is my remote list in the Hub:
Screen Shot 2019-05-03 at 09.49.50.png
This is my MQTT settings
Screen Shot 2019-05-03 at 09.51.57.png
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

I did some tests and it seems that your Plugin is much faster then the script inside Domoticz.
Maybe because of this speed the status are not always correct in domesticz. Some are on some not. When off all lights from the dzvent script the bulbs are all off but domesticz status are not correct

your plugin:

Code: Select all

2019-05-04 09:12:18.075  Status: dzVents: Info:  ------ Finished test
2019-05-04 09:12:18.084  Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-05-04 09:12:18.096  (Milight Hub) onCommand 001/Dressoir 1 - 0xAAAF/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.097  (Milight Hub) onCommand 002/Dressoir 2 - 0xAAAF/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.097  (Milight Hub) onCommand 003/Dressoir 3 - 0xAAAF/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.097  (Milight Hub) onCommand 006/Hall - 0xAAA3/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.097  (Milight Hub) onCommand 010/Balcony - 0xAAA4/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.097  (Milight Hub) onCommand 013/Sk 5 - 0xAAAB/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.098  (Milight Hub) onCommand 014/Sk 6 - 0xAAAB/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.098  (Milight Hub) onCommand 015/Sink 1 - 0xAAA1/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.098  (Milight Hub) onCommand 016/Sink 2 - 0xAAA1/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.098  (Milight Hub) onCommand 017/Sink 3 - 0xAAA1/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.099  (Milight Hub) onCommand 019/Kitchen 1 - 0xAAA2/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.150  (Milight Hub) onCommand 020/Kitchen 2 - 0xAAA2/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.150  (Milight Hub) onCommand 021/Kitchen 3 - 0xAAA2/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.151  (Milight Hub) onCommand 007/Sk 1 - 0xAAAA/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.152  (Milight Hub) onCommand 008/Sk 2 - 0xAAAA/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.153  (Milight Hub) onCommand 009/Sk 3 - 0xAAAA/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.154  (Milight Hub) onCommand 018/Sk 4 - 0xAAAA/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.155  (Milight Hub) onCommand 022/Bk 3 - 0xAAAD/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.155  (Milight Hub) onCommand 026/Wall R - 0xAAAC/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.156  (Milight Hub) onCommand 027/Wall L - 0xAAAC/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.157  (Milight Hub) onCommand 028/Window R - 0xAAAC/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.157  (Milight Hub) onCommand 029/Window L - 0xAAAC/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.157  (Milight Hub) onCommand 030/WC 1 - 0xAAAE/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.158  (Milight Hub) onCommand 031/Bk 1 - 0xAAAD/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.158  (Milight Hub) onCommand 032/Bk 4 - 0xAAAD/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.159  (Milight Hub) onCommand 033/WC 2 - 0xAAAE/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.159  (Milight Hub) onCommand 034/WC 3 - 0xAAAE/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 09:12:18.160  (Milight Hub) onCommand 035/Bk 2 - 0xAAAD/rgb_cct/2: Command: 'Off', Level: 0, Color:
Domoitcz build in:

Code: Select all

2019-05-04 09:17:56.320  Status: User: Admin initiated a switch command (639/Scene Disco/On)
2019-05-04 09:17:56.330  (Scene Switches) Light/Switch (Scene Disco)
2019-05-04 09:17:56.891  (Milight Bedroom 1234) Color Switch (Bedroom 1)
2019-05-04 09:17:57.219  (Milight Bedroom 1234) Color Switch (Bedroom 2)
2019-05-04 09:17:57.533  (Milight Bedroom 56) Color Switch (Bedroom 5)
2019-05-04 09:17:57.853  (Milight Bedroom 56) Color Switch (Bedroom 6)
2019-05-04 09:17:58.187  (Milight Bedroom 1234) Color Switch (Bedroom 4)
2019-05-04 09:17:58.514  (Milight Bedroom 1234) Color Switch (Bedroom 3)
2019-05-04 09:17:58.829  (Milight Dressoir) Color Switch (Dressoir 1)
2019-05-04 09:17:59.148  (Milight Dressoir) Color Switch (Dressoir 2)
2019-05-04 09:17:59.465  (Milight Dressoir) Color Switch (Dressoir 3)
2019-05-04 09:17:59.781  (Milight Hall) Color Switch (Hall)
2019-05-04 09:18:00.098  (Milight Livingroom) Color Switch (Livingroom 1)
2019-05-04 09:18:00.413  (Milight Livingroom) Color Switch (Livingroom 2)
2019-05-04 09:18:00.745  (Milight Livingroom) Color Switch (Livingroom 4)
2019-05-04 09:18:01.061  (Milight Livingroom) Color Switch (Livingroom 3)
2019-05-04 09:18:01.381  (Milight Bathroom) Color Switch (Bathroom 1)
2019-05-04 09:18:01.702  (Milight Bathroom) Color Switch (Bathroom 2)
2019-05-04 09:18:02.021  (Milight Bathroom) Color Switch (Bathroom 3)
2019-05-04 09:18:02.338  (Milight Bathroom) Color Switch (Bathroom 4)
2019-05-04 09:18:02.654  (Milight Kitchen) Color Switch (Kitchen  1)
2019-05-04 09:18:02.976  (Milight Kitchen) Color Switch (Kitchen  2)
2019-05-04 09:18:03.297  (Milight Kitchen) Color Switch (Kitchen  3)
2019-05-04 09:18:03.613  (Milight Kitchen Sink) Color Switch (Kitchen Sink 1)
2019-05-04 09:18:03.935  (Milight Kitchen Sink) Color Switch (Kitchen Sink 2)
2019-05-04 09:18:04.251  (Milight Kitchen Sink) Color Switch (Kitchen Sink 3)
2019-05-04 09:18:04.565  (Milight Toilet) Color Switch (Toilet 1)
2019-05-04 09:18:04.892  (Milight Toilet) Color Switch (Toilet 2)
2019-05-04 09:18:05.206  (Milight Toilet) Color Switch (Toilet 3)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
galinette
Posts: 68
Joined: Monday 11 December 2017 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by galinette »

Thanks for these tests!

Actually, the UDP settings in the hub are not used, since my plugin doesn't use the UDP protocol, only MQTT.

So you say that when swiching off all lights using a dzVents script, it switches off all lights, but the state does not update? Does it update if you wait some time? (such as one minute)?

In the plugin, when you switch one light, I chose not to update the device immediately, but to wait the MQTT server to respond for updating. This means, that if you do not see the state changes, either the MQTT server did not send all state updates, or the plugin could not process them.

If possible, could you repeat your test, with:
- The plugin log in Debug mode (in the hardware settings), changing this requires to restart Domoticz I think
- Monitoring the MQTT server : in a console do
mosquitto_sub -h host -u user -P pass -v -t 'milight/states/#' (replace host, user and pass)
and report the output when the dzVents script runs

Thanks!
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

here MQTT part:

Code: Select all

milight/states/0xAAAF/rgb_cct/1 {"state":"ON","status":"ON","brightness":235,"level":92,"hue":357,"saturation":92,"color":{},"bulb_mode":"color"}
milight/states/0xAAAF/rgb_cct/2 {"state":"ON","status":"ON","brightness":112,"level":44,"kelvin":61,"color_temp":285,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAAF/rgb_cct/3 {"state":"ON","status":"ON","brightness":59,"level":23,"hue":229,"saturation":44,"color":{},"bulb_mode":"color"}
milight/states/0xAAA1/rgb_cct/2 {"state":"ON","status":"ON","brightness":255,"level":100,"kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAAA/rgb_cct/4 {"state":"ON","status":"ON","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43690}
milight/states/0xAAAC/rgb_cct/1 {"state":"ON","status":"ON","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/2 {"state":"ON","status":"ON","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/4 {"state":"ON","status":"ON","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/3 {"state":"ON","status":"ON","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}
milight/states/0xAAAE/rgb_cct/1 {"state":"ON","status":"ON","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAD/rgb_cct/1 {"state":"ON","status":"ON","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":1,"device_type":"rgb_cct"}
milight/states/0xAAAD/rgb_cct/4 {"state":"ON","status":"ON","brightness":255,"level":100,"kelvin":100,"color_temp":370,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAAE/rgb_cct/2 {"state":"ON","status":"ON","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAE/rgb_cct/3 {"state":"ON","status":"ON","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAD/rgb_cct/2 {"state":"ON","status":"ON","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":2,"device_type":"rgb_cct"}
milight/states/0xAAAF/rgb_cct/1 {"state":"OFF","status":"OFF","brightness":235,"level":92,"hue":357,"saturation":92,"color":{},"bulb_mode":"color"}
milight/states/0xAAAF/rgb_cct/2 {"state":"OFF","status":"OFF","brightness":112,"level":44,"kelvin":61,"color_temp":285,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAA3/rgb_cct/1 {"state":"OFF","status":"OFF","brightness":255,"level":100,"kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAA1/rgb_cct/3 {"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":229,"color":{"r":0},"bulb_mode":"color"}
milight/states/0xAAAA/rgb_cct/3 {"state":"OFF","status":"OFF","brightness":13,"level":5,"kelvin":100,"color_temp":370,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAAC/rgb_cct/1 {"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/2 {"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/4 {"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}
milight/states/0xAAAC/rgb_cct/3 {"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}
milight/states/0xAAAE/rgb_cct/1 {"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAD/rgb_cct/1 {"state":"OFF","status":"OFF","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":1,"device_type":"rgb_cct"}
milight/states/0xAAAD/rgb_cct/4 {"state":"OFF","status":"OFF","brightness":255,"level":100,"kelvin":100,"color_temp":370,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}
milight/states/0xAAAE/rgb_cct/2 {"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAE/rgb_cct/3 {"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}
milight/states/0xAAAD/rgb_cct/2 {"state":"OFF","status":"OFF","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":2,"device_type":"rgb_cct"}
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Here Debug part Domoticz plugin with everything:

Code: Select all

019-05-04 11:50:18.570  Status: User: Admin initiated a switch command (28/Switch/Off)
2019-05-04 11:50:18.579  (Dummy) Light/Switch (Switch)
2019-05-04 11:50:18.726  Status: dzVents: Info:  Handling events for: "Switch", value: "Off"
2019-05-04 11:50:18.727  Status: dzVents: Info:  ------ Start internal script: test: Device: "Switch (Dummy)", Index: 28
2019-05-04 11:50:18.752  Status: dzVents: Info:  ------ Finished test
2019-05-04 11:50:18.760  Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-05-04 11:50:18.767  (Milight Hub) onCommand 001/Dressoir 1 - 0xAAAF/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.768  (Milight Hub) MqttClient::Publish milight/0xAAAF/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.768  (Milight Hub) onCommand 002/Dressoir 2 - 0xAAAF/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.768  (Milight Hub) MqttClient::Publish milight/0xAAAF/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.769  (Milight Hub) onCommand 003/Dressoir 3 - 0xAAAF/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.769  (Milight Hub) MqttClient::Publish milight/0xAAAF/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.769  (Milight Hub) onCommand 006/Hall - 0xAAA3/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.769  (Milight Hub) MqttClient::Publish milight/0xAAA3/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.769  (Milight Hub) onCommand 010/Balcony - 0xAAA4/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.769  (Milight Hub) MqttClient::Publish milight/0xAAA4/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.769  (Milight Hub) onCommand 013/Sk 5 - 0xAAAB/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.769  (Milight Hub) MqttClient::Publish milight/0xAAAB/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.770  (Milight Hub) onCommand 014/Sk 6 - 0xAAAB/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.770  (Milight Hub) MqttClient::Publish milight/0xAAAB/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.770  (Milight Hub) onCommand 015/Sink 1 - 0xAAA1/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.770  (Milight Hub) MqttClient::Publish milight/0xAAA1/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.770  (Milight Hub) onCommand 016/Sink 2 - 0xAAA1/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.770  (Milight Hub) MqttClient::Publish milight/0xAAA1/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.770  (Milight Hub) onCommand 017/Sink 3 - 0xAAA1/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.770  (Milight Hub) MqttClient::Publish milight/0xAAA1/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.771  (Milight Hub) onCommand 019/Kitchen 1 - 0xAAA2/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.771  (Milight Hub) MqttClient::Publish milight/0xAAA2/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.771  (Milight Hub) onCommand 020/Kitchen 2 - 0xAAA2/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.771  (Milight Hub) MqttClient::Publish milight/0xAAA2/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.771  (Milight Hub) onCommand 021/Kitchen 3 - 0xAAA2/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.771  (Milight Hub) MqttClient::Publish milight/0xAAA2/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.771  (Milight Hub) onCommand 007/Sk 1 - 0xAAAA/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.772  (Milight Hub) MqttClient::Publish milight/0xAAAA/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.772  (Milight Hub) onCommand 008/Sk 2 - 0xAAAA/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.772  (Milight Hub) MqttClient::Publish milight/0xAAAA/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.772  (Milight Hub) onCommand 009/Sk 3 - 0xAAAA/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.772  (Milight Hub) MqttClient::Publish milight/0xAAAA/rgb_cct/4 ({"status": "OFF"})
2019-05-04 11:50:18.772  (Milight Hub) onCommand 018/Sk 4 - 0xAAAA/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.772  (Milight Hub) MqttClient::Publish milight/0xAAAA/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.773  (Milight Hub) onCommand 022/Bk 3 - 0xAAAD/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.773  (Milight Hub) MqttClient::Publish milight/0xAAAD/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.773  (Milight Hub) onCommand 026/Wall R - 0xAAAC/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.773  (Milight Hub) MqttClient::Publish milight/0xAAAC/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.773  (Milight Hub) onCommand 027/Wall L - 0xAAAC/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.773  (Milight Hub) MqttClient::Publish milight/0xAAAC/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.773  (Milight Hub) onCommand 028/Window R - 0xAAAC/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.774  (Milight Hub) MqttClient::Publish milight/0xAAAC/rgb_cct/4 ({"status": "OFF"})
2019-05-04 11:50:18.774  (Milight Hub) onCommand 029/Window L - 0xAAAC/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.774  (Milight Hub) MqttClient::Publish milight/0xAAAC/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.774  (Milight Hub) onCommand 030/WC 1 - 0xAAAE/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.774  (Milight Hub) MqttClient::Publish milight/0xAAAE/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.774  (Milight Hub) onCommand 031/Bk 1 - 0xAAAD/rgb_cct/1: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.774  (Milight Hub) MqttClient::Publish milight/0xAAAD/rgb_cct/1 ({"status": "OFF"})
2019-05-04 11:50:18.775  (Milight Hub) onCommand 032/Bk 4 - 0xAAAD/rgb_cct/4: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.775  (Milight Hub) MqttClient::Publish milight/0xAAAD/rgb_cct/4 ({"status": "OFF"})
2019-05-04 11:50:18.775  (Milight Hub) onCommand 033/WC 2 - 0xAAAE/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.775  (Milight Hub) MqttClient::Publish milight/0xAAAE/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.775  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.775  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 46 2f 72     0+..milight/0xAAAF/r
2019-05-04 11:50:18.775  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.775  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.776  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.776  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 46 2f 72     0+..milight/0xAAAF/r
2019-05-04 11:50:18.776  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.776  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.776  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.776  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 46 2f 72     0+..milight/0xAAAF/r
2019-05-04 11:50:18.776  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.776  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.776  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.776  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 33 2f 72     0+..milight/0xAAA3/r
2019-05-04 11:50:18.777  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.777  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.777  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.777  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 34 2f 72     0+..milight/0xAAA4/r
2019-05-04 11:50:18.777  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.777  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.777  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.777  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 42 2f 72     0+..milight/0xAAAB/r
2019-05-04 11:50:18.777  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.777  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.777  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.777  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 42 2f 72     0+..milight/0xAAAB/r
2019-05-04 11:50:18.777  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.777  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.778  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.778  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 31 2f 72     0+..milight/0xAAA1/r
2019-05-04 11:50:18.778  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.778  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.778  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.778  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 31 2f 72     0+..milight/0xAAA1/r
2019-05-04 11:50:18.778  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.778  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.778  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.778  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 31 2f 72     0+..milight/0xAAA1/r
2019-05-04 11:50:18.778  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.778  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.778  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.778  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 32 2f 72     0+..milight/0xAAA2/r
2019-05-04 11:50:18.779  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.779  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.779  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.779  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 32 2f 72     0+..milight/0xAAA2/r
2019-05-04 11:50:18.779  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.779  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.779  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.779  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 32 2f 72     0+..milight/0xAAA2/r
2019-05-04 11:50:18.779  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.779  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.779  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.779  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 41 2f 72     0+..milight/0xAAAA/r
2019-05-04 11:50:18.779  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.780  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.780  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.780  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 41 2f 72     0+..milight/0xAAAA/r
2019-05-04 11:50:18.780  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.780  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.780  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.780  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 41 2f 72     0+..milight/0xAAAA/r
2019-05-04 11:50:18.780  (Milight Hub)     67 62 5f 63 63 74 2f 34 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/4{"status":."
2019-05-04 11:50:18.780  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.780  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.780  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 41 2f 72     0+..milight/0xAAAA/r
2019-05-04 11:50:18.780  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.780  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.780  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.781  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 44 2f 72     0+..milight/0xAAAD/r
2019-05-04 11:50:18.781  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.781  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.781  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.781  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 43 2f 72     0+..milight/0xAAAC/r
2019-05-04 11:50:18.781  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.781  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.781  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.781  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 43 2f 72     0+..milight/0xAAAC/r
2019-05-04 11:50:18.781  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.781  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.781  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.781  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 43 2f 72     0+..milight/0xAAAC/r
2019-05-04 11:50:18.782  (Milight Hub)     67 62 5f 63 63 74 2f 34 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/4{"status":."
2019-05-04 11:50:18.782  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.782  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.782  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 43 2f 72     0+..milight/0xAAAC/r
2019-05-04 11:50:18.782  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.782  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.782  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.782  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 45 2f 72     0+..milight/0xAAAE/r
2019-05-04 11:50:18.782  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.782  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.782  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.782  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 44 2f 72     0+..milight/0xAAAD/r
2019-05-04 11:50:18.782  (Milight Hub)     67 62 5f 63 63 74 2f 31 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/1{"status":."
2019-05-04 11:50:18.782  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.783  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.783  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 44 2f 72     0+..milight/0xAAAD/r
2019-05-04 11:50:18.783  (Milight Hub)     67 62 5f 63 63 74 2f 34 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/4{"status":."
2019-05-04 11:50:18.783  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.783  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.783  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 45 2f 72     0+..milight/0xAAAE/r
2019-05-04 11:50:18.783  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.783  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.833  (Milight Hub) onCommand 034/WC 3 - 0xAAAE/rgb_cct/3: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.834  (Milight Hub) MqttClient::Publish milight/0xAAAE/rgb_cct/3 ({"status": "OFF"})
2019-05-04 11:50:18.834  (Milight Hub) onCommand 035/Bk 2 - 0xAAAD/rgb_cct/2: Command: 'Off', Level: 0, Color:
2019-05-04 11:50:18.834  (Milight Hub) MqttClient::Publish milight/0xAAAD/rgb_cct/2 ({"status": "OFF"})
2019-05-04 11:50:18.834  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.834  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 45 2f 72     0+..milight/0xAAAE/r
2019-05-04 11:50:18.834  (Milight Hub)     67 62 5f 63 63 74 2f 33 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/3{"status":."
2019-05-04 11:50:18.834  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.834  (Milight Hub) Sending 45 bytes of data
2019-05-04 11:50:18.834  (Milight Hub)     30 2b 00 18 6d 69 6c 69 67 68 74 2f 30 78 41 41 41 44 2f 72     0+..milight/0xAAAD/r
2019-05-04 11:50:18.835  (Milight Hub)     67 62 5f 63 63 74 2f 32 7b 22 73 74 61 74 75 73 22 3a 20 22     gb_cct/2{"status":."
2019-05-04 11:50:18.835  (Milight Hub)     4f 46 46 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     OFF"}
2019-05-04 11:50:18.985  (Milight Hub) Received 151 bytes of data
2019-05-04 11:50:18.985  (Milight Hub)     30 94 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:18.985  (Milight Hub)     30 78 41 41 41 46 2f 72 67 62 5f 63 63 74 2f 31 7b 22 73 74     0xAAAF/rgb_cct/1{"st
2019-05-04 11:50:18.985  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:18.985  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:18.985  (Milight Hub)     33 35 2c 22 6c 65 76 65 6c 22 3a 39 32 2c 22 68 75 65 22 3a     35,"level":92,"hue":
2019-05-04 11:50:18.985  (Milight Hub)     33 35 37 2c 22 73 61 74 75 72 61 74 69 6f 6e 22 3a 39 32 2c     357,"saturation":92,
2019-05-04 11:50:18.985  (Milight Hub)     22 63 6f 6c 6f 72 22 3a 7b 7d 2c 22 62 75 6c 62 5f 6d 6f 64     "color":{},"bulb_mod
2019-05-04 11:50:18.985  (Milight Hub)     65 22 3a 22 63 6f 6c 6f 72 22 7d .. .. .. .. .. .. .. .. ..     e":"color"}
2019-05-04 11:50:18.986  (Milight Hub) onMQTTPublish: milight/states/0xAAAF/rgb_cct/1:b'{"state":"OFF","status":"OFF","brightness":235,"level":92,"hue":357,"saturation":92,"color":{},"bulb_mode":"color"}'
2019-05-04 11:50:18.986  (Milight Hub) Topic: milight/states/0xAAAF/rgb_cct/1 message : {"hue": 357, "saturation": 92, "bulb_mode": "color", "status": "OFF", "color": {}, "level": 92, "brightness": 235, "state": "OFF"}
2019-05-04 11:50:18.986  (Milight Hub) getDevices device_id: '0xAAAF' device_type: 'rgb_cct' group_id: '1'
2019-05-04 11:50:18.986  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:18.987  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 255, "g": 20.39999999999999, "b": 32, "t": 0, "cw": 0}
2019-05-04 11:50:18.987  (Dressoir 1 - 0xAAAF/rgb_cct/1) Updating device from 1:'92' to have values 0:'92'.
2019-05-04 11:50:19.442  (Milight Hub) Received 177 bytes of data
2019-05-04 11:50:19.444  (Milight Hub)     30 ae 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:19.444  (Milight Hub)     30 78 41 41 41 46 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAAF/rgb_cct/2{"st
2019-05-04 11:50:19.444  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:19.444  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 31     "OFF","brightness":1
2019-05-04 11:50:19.444  (Milight Hub)     31 32 2c 22 6c 65 76 65 6c 22 3a 34 34 2c 22 6b 65 6c 76 69     12,"level":44,"kelvi
2019-05-04 11:50:19.444  (Milight Hub)     6e 22 3a 36 31 2c 22 63 6f 6c 6f 72 5f 74 65 6d 70 22 3a 32     n":61,"color_temp":2
2019-05-04 11:50:19.445  (Milight Hub)     38 35 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 77 68 69 74     85,"bulb_mode":"whit
2019-05-04 11:50:19.445  (Milight Hub)     65 22 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32 35 35 2c     e","color":{"r":255,
2019-05-04 11:50:19.445  (Milight Hub)     22 67 22 3a 32 35 35 2c 22 62 22 3a 32 35 35 7d 7d .. .. ..     "g":255,"b":255}}
2019-05-04 11:50:19.446  (Milight Hub) onMQTTPublish: milight/states/0xAAAF/rgb_cct/2:b'{"state":"OFF","status":"OFF","brightness":112,"level":44,"kelvin":61,"color_temp":285,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}'
2019-05-04 11:50:19.446  (Milight Hub) Topic: milight/states/0xAAAF/rgb_cct/2 message : {"level": 44, "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 285, "bulb_mode": "white", "status": "OFF", "state": "OFF", "brightness": 112, "kelvin": 61}
2019-05-04 11:50:19.446  (Milight Hub) getDevices device_id: '0xAAAF' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:19.447  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:19.447  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 155.1152073732719, "cw": 0}
2019-05-04 11:50:19.448  (Dressoir 2 - 0xAAAF/rgb_cct/2) Updating device from 1:'43' to have values 0:'43'.
2019-05-04 11:50:19.592  Error: CheckAuthToken(ID=5d18d8a0342de5e6759c1fb93322da32_NjVhN2ViN2QtZjczMC00NmU5LWExZmEtOTFjYjc0MjY0MWVk) : session id not found
2019-05-04 11:50:19.957  (Milight Hub) Received 150 bytes of data
2019-05-04 11:50:19.958  (Milight Hub)     30 93 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:19.958  (Milight Hub)     30 78 41 41 41 46 2f 72 67 62 5f 63 63 74 2f 33 7b 22 73 74     0xAAAF/rgb_cct/3{"st
2019-05-04 11:50:19.958  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:19.958  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 35     "OFF","brightness":5
2019-05-04 11:50:19.958  (Milight Hub)     39 2c 22 6c 65 76 65 6c 22 3a 32 33 2c 22 68 75 65 22 3a 32     9,"level":23,"hue":2
2019-05-04 11:50:19.958  (Milight Hub)     32 39 2c 22 73 61 74 75 72 61 74 69 6f 6e 22 3a 34 34 2c 22     29,"saturation":44,"
2019-05-04 11:50:19.958  (Milight Hub)     63 6f 6c 6f 72 22 3a 7b 7d 2c 22 62 75 6c 62 5f 6d 6f 64 65     color":{},"bulb_mode
2019-05-04 11:50:19.958  (Milight Hub)     22 3a 22 63 6f 6c 6f 72 22 7d .. .. .. .. .. .. .. .. .. ..     ":"color"}
2019-05-04 11:50:19.958  (Milight Hub) onMQTTPublish: milight/states/0xAAAF/rgb_cct/3:b'{"state":"OFF","status":"OFF","brightness":59,"level":23,"hue":229,"saturation":44,"color":{},"bulb_mode":"color"}'
2019-05-04 11:50:19.959  (Milight Hub) Topic: milight/states/0xAAAF/rgb_cct/3 message : {"hue": 229, "saturation": 44, "bulb_mode": "color", "status": "OFF", "color": {}, "level": 23, "brightness": 59, "state": "OFF"}
2019-05-04 11:50:19.959  (Milight Hub) getDevices device_id: '0xAAAF' device_type: 'rgb_cct' group_id: '3'
2019-05-04 11:50:19.959  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:19.959  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 142.8, "g": 163, "b": 255, "t": 0, "cw": 0}
2019-05-04 11:50:19.960  (Dressoir 3 - 0xAAAF/rgb_cct/3) Updating device from 1:'23' to have values 0:'23'.
2019-05-04 11:50:20.465  (Milight Hub) Received 177 bytes of data
2019-05-04 11:50:20.466  (Milight Hub)     30 ae 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:20.466  (Milight Hub)     30 78 41 41 41 31 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAA1/rgb_cct/2{"st
2019-05-04 11:50:20.466  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:20.466  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:20.466  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 6b 65 6c 76     55,"level":100,"kelv
2019-05-04 11:50:20.466  (Milight Hub)     69 6e 22 3a 30 2c 22 63 6f 6c 6f 72 5f 74 65 6d 70 22 3a 31     in":0,"color_temp":1
2019-05-04 11:50:20.466  (Milight Hub)     35 33 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 77 68 69 74     53,"bulb_mode":"whit
2019-05-04 11:50:20.466  (Milight Hub)     65 22 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32 35 35 2c     e","color":{"r":255,
2019-05-04 11:50:20.467  (Milight Hub)     22 67 22 3a 32 35 35 2c 22 62 22 3a 32 35 35 7d 7d .. .. ..     "g":255,"b":255}}
2019-05-04 11:50:20.468  (Milight Hub) onMQTTPublish: milight/states/0xAAA1/rgb_cct/2:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}'
2019-05-04 11:50:20.468  (Milight Hub) Topic: milight/states/0xAAA1/rgb_cct/2 message : {"level": 100, "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 153, "bulb_mode": "white", "status": "OFF", "state": "OFF", "brightness": 255, "kelvin": 0}
2019-05-04 11:50:20.468  (Milight Hub) getDevices device_id: '0xAAA1' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:20.469  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:20.469  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 0.0, "cw": 0}
2019-05-04 11:50:20.470  (Sink 2 - 0xAAA1/rgb_cct/2) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:21.030  (Milight Hub) Received 188 bytes of data
2019-05-04 11:50:21.030  (Milight Hub)     30 b9 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:21.030  (Milight Hub)     30 78 41 41 41 41 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAAA/rgb_cct/2{"st
2019-05-04 11:50:21.030  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:21.030  (Milight Hub)     22 4f 46 46 22 2c 22 6b 65 6c 76 69 6e 22 3a 30 2c 22 63 6f     "OFF","kelvin":0,"co
2019-05-04 11:50:21.030  (Milight Hub)     6c 6f 72 5f 74 65 6d 70 22 3a 31 35 33 2c 22 62 75 6c 62 5f     lor_temp":153,"bulb_
2019-05-04 11:50:21.030  (Milight Hub)     6d 6f 64 65 22 3a 22 77 68 69 74 65 22 2c 22 63 6f 6c 6f 72     mode":"white","color
2019-05-04 11:50:21.030  (Milight Hub)     22 3a 7b 22 72 22 3a 32 35 35 2c 22 67 22 3a 32 35 35 2c 22     ":{"r":255,"g":255,"
2019-05-04 11:50:21.030  (Milight Hub)     62 22 3a 32 35 35 7d 2c 22 65 66 66 65 63 74 22 3a 22 77 68     b":255},"effect":"wh
2019-05-04 11:50:21.030  (Milight Hub)     69 74 65 5f 6d 6f 64 65 22 2c 22 64 65 76 69 63 65 5f 69 64     ite_mode","device_id
2019-05-04 11:50:21.030  (Milight Hub)     22 3a 34 33 36 39 30 7d .. .. .. .. .. .. .. .. .. .. .. ..     ":43690}
2019-05-04 11:50:21.031  (Milight Hub) onMQTTPublish: milight/states/0xAAAA/rgb_cct/2:b'{"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43690}'
2019-05-04 11:50:21.031  (Milight Hub) Topic: milight/states/0xAAAA/rgb_cct/2 message : {"effect": "white_mode", "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 153, "device_id": 43690, "bulb_mode": "white", "status": "OFF", "state": "OFF", "kelvin": 0}
2019-05-04 11:50:21.031  (Milight Hub) getDevices device_id: '0xAAAA' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:21.032  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:21.032  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 0.0, "cw": 0}
2019-05-04 11:50:21.032  (Sk 2 - 0xAAAA/rgb_cct/2) Updating device from 1:'Disco Mode 1' to have values 0:'Disco Mode 1'.
2019-05-04 11:50:21.539  (Milight Hub) Received 143 bytes of data
2019-05-04 11:50:21.539  (Milight Hub)     30 8c 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:21.539  (Milight Hub)     30 78 41 41 41 43 2f 72 67 62 5f 63 63 74 2f 31 7b 22 73 74     0xAAAC/rgb_cct/1{"st
2019-05-04 11:50:21.540  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:21.540  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:21.540  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 68 75 65 22     55,"level":100,"hue"
2019-05-04 11:50:21.540  (Milight Hub)     3a 33 35 39 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32 35     :359,"color":{"r":25
2019-05-04 11:50:21.540  (Milight Hub)     35 7d 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 63 6f 6c 6f     5},"bulb_mode":"colo
2019-05-04 11:50:21.540  (Milight Hub)     72 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     r"}
2019-05-04 11:50:21.541  (Milight Hub) onMQTTPublish: milight/states/0xAAAC/rgb_cct/1:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}'
2019-05-04 11:50:21.542  (Milight Hub) Topic: milight/states/0xAAAC/rgb_cct/1 message : {"hue": 359, "bulb_mode": "color", "status": "OFF", "color": {"r": 255}, "level": 100, "brightness": 255, "state": "OFF"}
2019-05-04 11:50:21.542  (Milight Hub) getDevices device_id: '0xAAAC' device_type: 'rgb_cct' group_id: '1'
2019-05-04 11:50:21.542  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:21.543  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 255, "g": 255, "b": 255, "t": 0, "cw": 0}
2019-05-04 11:50:21.543  (Wall R - 0xAAAC/rgb_cct/1) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:22.053  (Milight Hub) Received 142 bytes of data
2019-05-04 11:50:22.053  (Milight Hub)     30 8b 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:22.053  (Milight Hub)     30 78 41 41 41 43 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAAC/rgb_cct/2{"st
2019-05-04 11:50:22.054  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:22.054  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:22.054  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 68 75 65 22     55,"level":100,"hue"
2019-05-04 11:50:22.054  (Milight Hub)     3a 31 30 32 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 37 36     :102,"color":{"r":76
2019-05-04 11:50:22.054  (Milight Hub)     7d 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 63 6f 6c 6f 72     },"bulb_mode":"color
2019-05-04 11:50:22.054  (Milight Hub)     22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     "}
2019-05-04 11:50:22.054  (Milight Hub) onMQTTPublish: milight/states/0xAAAC/rgb_cct/2:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}'
2019-05-04 11:50:22.055  (Milight Hub) Topic: milight/states/0xAAAC/rgb_cct/2 message : {"hue": 102, "bulb_mode": "color", "status": "OFF", "color": {"r": 76}, "level": 100, "brightness": 255, "state": "OFF"}
2019-05-04 11:50:22.055  (Milight Hub) getDevices device_id: '0xAAAC' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:22.055  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:22.056  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 76, "g": 255, "b": 76.50000000000001, "t": 0, "cw": 0}
2019-05-04 11:50:22.056  (Wall L - 0xAAAC/rgb_cct/2) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:22.561  (Milight Hub) Received 142 bytes of data
2019-05-04 11:50:22.562  (Milight Hub)     30 8b 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:22.562  (Milight Hub)     30 78 41 41 41 43 2f 72 67 62 5f 63 63 74 2f 34 7b 22 73 74     0xAAAC/rgb_cct/4{"st
2019-05-04 11:50:22.562  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:22.562  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:22.562  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 68 75 65 22     55,"level":100,"hue"
2019-05-04 11:50:22.563  (Milight Hub)     3a 31 30 32 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 37 36     :102,"color":{"r":76
2019-05-04 11:50:22.563  (Milight Hub)     7d 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 63 6f 6c 6f 72     },"bulb_mode":"color
2019-05-04 11:50:22.563  (Milight Hub)     22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     "}
2019-05-04 11:50:22.564  (Milight Hub) onMQTTPublish: milight/states/0xAAAC/rgb_cct/4:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":102,"color":{"r":76},"bulb_mode":"color"}'
2019-05-04 11:50:22.564  (Milight Hub) Topic: milight/states/0xAAAC/rgb_cct/4 message : {"hue": 102, "bulb_mode": "color", "status": "OFF", "color": {"r": 76}, "level": 100, "brightness": 255, "state": "OFF"}
2019-05-04 11:50:22.564  (Milight Hub) getDevices device_id: '0xAAAC' device_type: 'rgb_cct' group_id: '4'
2019-05-04 11:50:22.565  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:22.566  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 76, "g": 255, "b": 76.50000000000001, "t": 0, "cw": 0}
2019-05-04 11:50:22.566  (Window R - 0xAAAC/rgb_cct/4) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:23.076  (Milight Hub) Received 143 bytes of data
2019-05-04 11:50:23.076  (Milight Hub)     30 8c 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:23.076  (Milight Hub)     30 78 41 41 41 43 2f 72 67 62 5f 63 63 74 2f 33 7b 22 73 74     0xAAAC/rgb_cct/3{"st
2019-05-04 11:50:23.076  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:23.076  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:23.076  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 68 75 65 22     55,"level":100,"hue"
2019-05-04 11:50:23.076  (Milight Hub)     3a 33 35 39 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32 35     :359,"color":{"r":25
2019-05-04 11:50:23.076  (Milight Hub)     35 7d 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 63 6f 6c 6f     5},"bulb_mode":"colo
2019-05-04 11:50:23.077  (Milight Hub)     72 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     r"}
2019-05-04 11:50:23.077  (Milight Hub) onMQTTPublish: milight/states/0xAAAC/rgb_cct/3:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"hue":359,"color":{"r":255},"bulb_mode":"color"}'
2019-05-04 11:50:23.077  (Milight Hub) Topic: milight/states/0xAAAC/rgb_cct/3 message : {"hue": 359, "bulb_mode": "color", "status": "OFF", "color": {"r": 255}, "level": 100, "brightness": 255, "state": "OFF"}
2019-05-04 11:50:23.078  (Milight Hub) getDevices device_id: '0xAAAC' device_type: 'rgb_cct' group_id: '3'
2019-05-04 11:50:23.078  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:23.078  (Milight Hub) Update Color : {"ww": 0, "m": 3, "r": 255, "g": 255, "b": 255, "t": 0, "cw": 0}
2019-05-04 11:50:23.078  (Window L - 0xAAAC/rgb_cct/3) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:23.584  (Milight Hub) Received 188 bytes of data
2019-05-04 11:50:23.586  (Milight Hub)     30 b9 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:23.586  (Milight Hub)     30 78 41 41 41 45 2f 72 67 62 5f 63 63 74 2f 31 7b 22 73 74     0xAAAE/rgb_cct/1{"st
2019-05-04 11:50:23.586  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:23.586  (Milight Hub)     22 4f 46 46 22 2c 22 6b 65 6c 76 69 6e 22 3a 30 2c 22 63 6f     "OFF","kelvin":0,"co
2019-05-04 11:50:23.586  (Milight Hub)     6c 6f 72 5f 74 65 6d 70 22 3a 31 35 33 2c 22 62 75 6c 62 5f     lor_temp":153,"bulb_
2019-05-04 11:50:23.587  (Milight Hub)     6d 6f 64 65 22 3a 22 77 68 69 74 65 22 2c 22 63 6f 6c 6f 72     mode":"white","color
2019-05-04 11:50:23.587  (Milight Hub)     22 3a 7b 22 72 22 3a 32 35 35 2c 22 67 22 3a 32 35 35 2c 22     ":{"r":255,"g":255,"
2019-05-04 11:50:23.587  (Milight Hub)     62 22 3a 32 35 35 7d 2c 22 65 66 66 65 63 74 22 3a 22 77 68     b":255},"effect":"wh
2019-05-04 11:50:23.587  (Milight Hub)     69 74 65 5f 6d 6f 64 65 22 2c 22 64 65 76 69 63 65 5f 69 64     ite_mode","device_id
2019-05-04 11:50:23.587  (Milight Hub)     22 3a 34 33 36 39 34 7d .. .. .. .. .. .. .. .. .. .. .. ..     ":43694}
2019-05-04 11:50:23.588  (Milight Hub) onMQTTPublish: milight/states/0xAAAE/rgb_cct/1:b'{"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}'
2019-05-04 11:50:23.589  (Milight Hub) Topic: milight/states/0xAAAE/rgb_cct/1 message : {"effect": "white_mode", "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 153, "device_id": 43694, "bulb_mode": "white", "status": "OFF", "state": "OFF", "kelvin": 0}
2019-05-04 11:50:23.589  (Milight Hub) getDevices device_id: '0xAAAE' device_type: 'rgb_cct' group_id: '1'
2019-05-04 11:50:23.589  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:23.590  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 0.0, "cw": 0}
2019-05-04 11:50:23.590  (WC 1 - 0xAAAE/rgb_cct/1) Updating device from 1:'Disco Mode 1' to have values 0:'Disco Mode 1'.
2019-05-04 11:50:24.100  (Milight Hub) Received 155 bytes of data
2019-05-04 11:50:24.101  (Milight Hub)     30 98 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:24.101  (Milight Hub)     30 78 41 41 41 44 2f 72 67 62 5f 63 63 74 2f 31 7b 22 73 74     0xAAAD/rgb_cct/1{"st
2019-05-04 11:50:24.101  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:24.102  (Milight Hub)     22 4f 46 46 22 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32     "OFF","color":{"r":2
2019-05-04 11:50:24.102  (Milight Hub)     35 35 2c 22 67 22 3a 32 35 35 2c 22 62 22 3a 32 35 35 7d 2c     55,"g":255,"b":255},
2019-05-04 11:50:24.102  (Milight Hub)     22 64 65 76 69 63 65 5f 69 64 22 3a 34 33 36 39 33 2c 22 67     "device_id":43693,"g
2019-05-04 11:50:24.102  (Milight Hub)     72 6f 75 70 5f 69 64 22 3a 31 2c 22 64 65 76 69 63 65 5f 74     roup_id":1,"device_t
2019-05-04 11:50:24.102  (Milight Hub)     79 70 65 22 3a 22 72 67 62 5f 63 63 74 22 7d .. .. .. .. ..     ype":"rgb_cct"}
2019-05-04 11:50:24.103  (Milight Hub) onMQTTPublish: milight/states/0xAAAD/rgb_cct/1:b'{"state":"OFF","status":"OFF","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":1,"device_type":"rgb_cct"}'
2019-05-04 11:50:24.103  (Milight Hub) Topic: milight/states/0xAAAD/rgb_cct/1 message : {"device_type": "rgb_cct", "group_id": 1, "device_id": 43693, "status": "OFF", "color": {"r": 255, "b": 255, "g": 255}, "state": "OFF"}
2019-05-04 11:50:24.104  (Milight Hub) getDevices device_id: '0xAAAD' device_type: 'rgb_cct' group_id: '1'
2019-05-04 11:50:24.104  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:24.104  (Milight Hub) Update Color : {"r": 255, "b": 255, "g": 255}
2019-05-04 11:50:24.105  (Bk 1 - 0xAAAD/rgb_cct/1) Updating device from 1:'' to have values 0:''.
2019-05-04 11:50:24.561  (Milight Hub) Received 179 bytes of data
2019-05-04 11:50:24.562  (Milight Hub)     30 b0 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:24.562  (Milight Hub)     30 78 41 41 41 44 2f 72 67 62 5f 63 63 74 2f 34 7b 22 73 74     0xAAAD/rgb_cct/4{"st
2019-05-04 11:50:24.563  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:24.563  (Milight Hub)     22 4f 46 46 22 2c 22 62 72 69 67 68 74 6e 65 73 73 22 3a 32     "OFF","brightness":2
2019-05-04 11:50:24.564  (Milight Hub)     35 35 2c 22 6c 65 76 65 6c 22 3a 31 30 30 2c 22 6b 65 6c 76     55,"level":100,"kelv
2019-05-04 11:50:24.564  (Milight Hub)     69 6e 22 3a 31 30 30 2c 22 63 6f 6c 6f 72 5f 74 65 6d 70 22     in":100,"color_temp"
2019-05-04 11:50:24.565  (Milight Hub)     3a 33 37 30 2c 22 62 75 6c 62 5f 6d 6f 64 65 22 3a 22 77 68     :370,"bulb_mode":"wh
2019-05-04 11:50:24.565  (Milight Hub)     69 74 65 22 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32 35     ite","color":{"r":25
2019-05-04 11:50:24.565  (Milight Hub)     35 2c 22 67 22 3a 32 35 35 2c 22 62 22 3a 32 35 35 7d 7d ..     5,"g":255,"b":255}}
2019-05-04 11:50:24.567  (Milight Hub) onMQTTPublish: milight/states/0xAAAD/rgb_cct/4:b'{"state":"OFF","status":"OFF","brightness":255,"level":100,"kelvin":100,"color_temp":370,"bulb_mode":"white","color":{"r":255,"g":255,"b":255}}'
2019-05-04 11:50:24.567  (Milight Hub) Topic: milight/states/0xAAAD/rgb_cct/4 message : {"level": 100, "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 370, "bulb_mode": "white", "status": "OFF", "state": "OFF", "brightness": 255, "kelvin": 100}
2019-05-04 11:50:24.568  (Milight Hub) getDevices device_id: '0xAAAD' device_type: 'rgb_cct' group_id: '4'
2019-05-04 11:50:24.568  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:24.569  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 255.0, "cw": 0}
2019-05-04 11:50:24.570  (Bk 4 - 0xAAAD/rgb_cct/4) Updating device from 1:'100' to have values 0:'100'.
2019-05-04 11:50:25.080  (Milight Hub) Received 188 bytes of data
2019-05-04 11:50:25.080  (Milight Hub)     30 b9 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:25.081  (Milight Hub)     30 78 41 41 41 45 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAAE/rgb_cct/2{"st
2019-05-04 11:50:25.081  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:25.081  (Milight Hub)     22 4f 46 46 22 2c 22 6b 65 6c 76 69 6e 22 3a 30 2c 22 63 6f     "OFF","kelvin":0,"co
2019-05-04 11:50:25.081  (Milight Hub)     6c 6f 72 5f 74 65 6d 70 22 3a 31 35 33 2c 22 62 75 6c 62 5f     lor_temp":153,"bulb_
2019-05-04 11:50:25.081  (Milight Hub)     6d 6f 64 65 22 3a 22 77 68 69 74 65 22 2c 22 63 6f 6c 6f 72     mode":"white","color
2019-05-04 11:50:25.082  (Milight Hub)     22 3a 7b 22 72 22 3a 32 35 35 2c 22 67 22 3a 32 35 35 2c 22     ":{"r":255,"g":255,"
2019-05-04 11:50:25.082  (Milight Hub)     62 22 3a 32 35 35 7d 2c 22 65 66 66 65 63 74 22 3a 22 77 68     b":255},"effect":"wh
2019-05-04 11:50:25.082  (Milight Hub)     69 74 65 5f 6d 6f 64 65 22 2c 22 64 65 76 69 63 65 5f 69 64     ite_mode","device_id
2019-05-04 11:50:25.082  (Milight Hub)     22 3a 34 33 36 39 34 7d .. .. .. .. .. .. .. .. .. .. .. ..     ":43694}
2019-05-04 11:50:25.083  (Milight Hub) onMQTTPublish: milight/states/0xAAAE/rgb_cct/2:b'{"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}'
2019-05-04 11:50:25.083  (Milight Hub) Topic: milight/states/0xAAAE/rgb_cct/2 message : {"effect": "white_mode", "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 153, "device_id": 43694, "bulb_mode": "white", "status": "OFF", "state": "OFF", "kelvin": 0}
2019-05-04 11:50:25.084  (Milight Hub) getDevices device_id: '0xAAAE' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:25.084  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:25.084  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 0.0, "cw": 0}
2019-05-04 11:50:25.085  (WC 2 - 0xAAAE/rgb_cct/2) Updating device from 1:'' to have values 0:''.
2019-05-04 11:50:25.591  (Milight Hub) Received 188 bytes of data
2019-05-04 11:50:25.592  (Milight Hub)     30 b9 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:25.593  (Milight Hub)     30 78 41 41 41 45 2f 72 67 62 5f 63 63 74 2f 33 7b 22 73 74     0xAAAE/rgb_cct/3{"st
2019-05-04 11:50:25.593  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:25.593  (Milight Hub)     22 4f 46 46 22 2c 22 6b 65 6c 76 69 6e 22 3a 30 2c 22 63 6f     "OFF","kelvin":0,"co
2019-05-04 11:50:25.594  (Milight Hub)     6c 6f 72 5f 74 65 6d 70 22 3a 31 35 33 2c 22 62 75 6c 62 5f     lor_temp":153,"bulb_
2019-05-04 11:50:25.594  (Milight Hub)     6d 6f 64 65 22 3a 22 77 68 69 74 65 22 2c 22 63 6f 6c 6f 72     mode":"white","color
2019-05-04 11:50:25.595  (Milight Hub)     22 3a 7b 22 72 22 3a 32 35 35 2c 22 67 22 3a 32 35 35 2c 22     ":{"r":255,"g":255,"
2019-05-04 11:50:25.595  (Milight Hub)     62 22 3a 32 35 35 7d 2c 22 65 66 66 65 63 74 22 3a 22 77 68     b":255},"effect":"wh
2019-05-04 11:50:25.596  (Milight Hub)     69 74 65 5f 6d 6f 64 65 22 2c 22 64 65 76 69 63 65 5f 69 64     ite_mode","device_id
2019-05-04 11:50:25.596  (Milight Hub)     22 3a 34 33 36 39 34 7d .. .. .. .. .. .. .. .. .. .. .. ..     ":43694}
2019-05-04 11:50:25.597  (Milight Hub) onMQTTPublish: milight/states/0xAAAE/rgb_cct/3:b'{"state":"OFF","status":"OFF","kelvin":0,"color_temp":153,"bulb_mode":"white","color":{"r":255,"g":255,"b":255},"effect":"white_mode","device_id":43694}'
2019-05-04 11:50:25.598  (Milight Hub) Topic: milight/states/0xAAAE/rgb_cct/3 message : {"effect": "white_mode", "color": {"r": 255, "b": 255, "g": 255}, "color_temp": 153, "device_id": 43694, "bulb_mode": "white", "status": "OFF", "state": "OFF", "kelvin": 0}
2019-05-04 11:50:25.599  (Milight Hub) getDevices device_id: '0xAAAE' device_type: 'rgb_cct' group_id: '3'
2019-05-04 11:50:25.600  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:25.601  (Milight Hub) Update Color : {"ww": 0, "m": 2, "r": 255, "g": 255, "b": 255, "t": 0.0, "cw": 0}
2019-05-04 11:50:25.601  (WC 3 - 0xAAAE/rgb_cct/3) Updating device from 1:'Disco Mode 1' to have values 0:'Disco Mode 1'.
2019-05-04 11:50:25.911  (Milight Hub) Heartbeating...
2019-05-04 11:50:25.912  (Milight Hub) Sending 2 bytes of data
2019-05-04 11:50:25.912  (Milight Hub)     c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     �.
2019-05-04 11:50:25.962  (Milight Hub) Received 2 bytes of data
2019-05-04 11:50:25.963  (Milight Hub)     d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     �.
2019-05-04 11:50:26.063  (Milight Hub) Received 155 bytes of data
2019-05-04 11:50:26.063  (Milight Hub)     30 98 01 00 1f 6d 69 6c 69 67 68 74 2f 73 74 61 74 65 73 2f     0�...milight/states/
2019-05-04 11:50:26.063  (Milight Hub)     30 78 41 41 41 44 2f 72 67 62 5f 63 63 74 2f 32 7b 22 73 74     0xAAAD/rgb_cct/2{"st
2019-05-04 11:50:26.064  (Milight Hub)     61 74 65 22 3a 22 4f 46 46 22 2c 22 73 74 61 74 75 73 22 3a     ate":"OFF","status":
2019-05-04 11:50:26.064  (Milight Hub)     22 4f 46 46 22 2c 22 63 6f 6c 6f 72 22 3a 7b 22 72 22 3a 32     "OFF","color":{"r":2
2019-05-04 11:50:26.064  (Milight Hub)     35 35 2c 22 67 22 3a 32 35 35 2c 22 62 22 3a 32 35 35 7d 2c     55,"g":255,"b":255},
2019-05-04 11:50:26.064  (Milight Hub)     22 64 65 76 69 63 65 5f 69 64 22 3a 34 33 36 39 33 2c 22 67     "device_id":43693,"g
2019-05-04 11:50:26.065  (Milight Hub)     72 6f 75 70 5f 69 64 22 3a 32 2c 22 64 65 76 69 63 65 5f 74     roup_id":2,"device_t
2019-05-04 11:50:26.065  (Milight Hub)     79 70 65 22 3a 22 72 67 62 5f 63 63 74 22 7d .. .. .. .. ..     ype":"rgb_cct"}
2019-05-04 11:50:26.065  (Milight Hub) onMQTTPublish: milight/states/0xAAAD/rgb_cct/2:b'{"state":"OFF","status":"OFF","color":{"r":255,"g":255,"b":255},"device_id":43693,"group_id":2,"device_type":"rgb_cct"}'
2019-05-04 11:50:26.066  (Milight Hub) Topic: milight/states/0xAAAD/rgb_cct/2 message : {"device_type": "rgb_cct", "group_id": 2, "device_id": 43693, "status": "OFF", "color": {"r": 255, "b": 255, "g": 255}, "state": "OFF"}
2019-05-04 11:50:26.066  (Milight Hub) getDevices device_id: '0xAAAD' device_type: 'rgb_cct' group_id: '2'
2019-05-04 11:50:26.066  (Milight Hub) getDevices found 1 devices
2019-05-04 11:50:26.067  (Milight Hub) Update Color : {"r": 255, "b": 255, "g": 255}
2019-05-04 11:50:26.067  (Bk 2 - 0xAAAD/rgb_cct/2) Updating device from 1:'' to have values 0:''.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Updated also :

Hub MQTT settings (these are default settings from hub documentation)
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

Plugin settings : just use the same patterns
MQTT topic pattern: milight/:device_id/:device_type/:group_id
MQTT state topic pattern: milight/states/:hex_device_id/:device_type/:group_id
(update pattern is currently not used)

When using hub then device is updated in Domoticz
When I use switch to activate dzvents then not all devices are updated

Here the Dzvent script to test all bulbs in 1 action:

device 28 is a dummy switch

Code: Select all

local Version = '19.05.02'

return {
    active = true,
    on = {
    
    devices = {28},
    },
    
    -- logging = {marker = 'SWITCHES Control ' ..Version..'......'},
    execute = function(domoticz, device)

    if (domoticz.devices(28).active) then
        
        domoticz.devices(1).switchOn()
        domoticz.devices(2).switchOn()
        domoticz.devices(3).switchOn()

        domoticz.devices(6).switchOn()
        domoticz.devices(10).switchOn()
        domoticz.devices(13).switchOn()
        domoticz.devices(14).switchOn()
        domoticz.devices(15).switchOn()
        domoticz.devices(16).switchOn()
        domoticz.devices(17).switchOn()
        domoticz.devices(19).switchOn()
        domoticz.devices(20).switchOn()
        domoticz.devices(21).switchOn()

        domoticz.devices(29).switchOn()
        domoticz.devices(30).switchOn()
        domoticz.devices(31).switchOn()
        domoticz.devices(32).switchOn()
        domoticz.devices(33).switchOn()
        domoticz.devices(34).switchOn()
        domoticz.devices(35).switchOn()
        domoticz.devices(36).switchOn()
        domoticz.devices(37).switchOn()
        domoticz.devices(38).switchOn()
        domoticz.devices(39).switchOn()
        domoticz.devices(40).switchOn()
        domoticz.devices(41).switchOn()
        domoticz.devices(42).switchOn()
        domoticz.devices(43).switchOn()


    elseif (not domoticz.devices(28).active) then

        domoticz.devices(1).switchOff()
        domoticz.devices(2).switchOff()
        domoticz.devices(3).switchOff()
        domoticz.devices(6).switchOff()
        domoticz.devices(10).switchOff()
        domoticz.devices(13).switchOff()
        domoticz.devices(14).switchOff()
        domoticz.devices(15).switchOff()
        domoticz.devices(16).switchOff()
        domoticz.devices(17).switchOff()
        domoticz.devices(19).switchOff()
        domoticz.devices(20).switchOff()
        domoticz.devices(21).switchOff()

        domoticz.devices(29).switchOff()
        domoticz.devices(30).switchOff()
        domoticz.devices(31).switchOff()
        domoticz.devices(32).switchOff()
        domoticz.devices(33).switchOff()
        domoticz.devices(34).switchOff()
        domoticz.devices(35).switchOff()
        domoticz.devices(36).switchOff()
        domoticz.devices(37).switchOff()
        domoticz.devices(38).switchOff()
        domoticz.devices(39).switchOff()
        domoticz.devices(40).switchOff()
        domoticz.devices(41).switchOff()
        domoticz.devices(42).switchOff()
        domoticz.devices(43).switchOff()
        
    end
    --domoticz.log('------------------------==<[ SWITCH '..device.idx..' On/Off ]>==--------------------', domoticz.LOG_FORCE)
end
}
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by poudenes »

Im goto my work now.... So no testing for now anymore ... :geek: :ugeek:
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests