EspMilightHub new binding for milight limitlessLED and easybulb

Have you setup a persistence file for the broker?

There was a bug in the persistence configuration for Moquette. That is fixed in openHAB master only (we do not have snapshots at the moment).

If persistence was not setup or working it would stop auto detecting and adding the globes for you. If you setup with manual textual config it would then work and could be why the other user reported that it was working. I find textual to be far quicker when setting up 20+ globes all similar and I also get to use nice short friendly names. Having a list of the remote codes is also handy for when the globes become unsynced.

1 Like

New build 2019-04-11 has these changes:

  • New ability to auto setup the esp8266 settings to eliminate issues from people not following long setup instructions carefully. Just provide the HUB_IP and the binding will take care of a lot of the setup. If you protect the hubs setup with a user:password this feature will not work.
  • Fixed bug where any config settings changed were not used until a reboot or binding restart was completed.
2 Likes

Hi Matt, now using 2019-04-11 and didn’t worry about the HUB_IP since I have it setup fine. openHAB complained though with this log msg:

[INFO ] [b.handler.EspMilightHubBridgeHandler] - No HUB_IP has been provided, binding can not auto setup the Hub for you.

So I added HUB_IP=“192.168.0.200” to my things config, a few things, is this the correct format or should I add “tcp:\\” to the start ?

You have done it correctly. It is worth doing as people in the past have missed ticking one little thing and not known the binding was not fully working due to that.

1 Like

I have some issues with addressing my lights through groups. I can switch them ON/OFF, but changing the color temperature or brightness gives me problems. On my sitemap I see all the sliders from single lights jump all around when I use the group switch, and they never settle at the position where I set them.

Openhab log:

2019-04-16 21:02:05.757 [ome.event.ItemCommandEvent] - Item 'gBeganeGrondLightsLevel' received command 88
2019-04-16 21:02:05.768 [ome.event.ItemCommandEvent] - Item 'gHalLightsLevel' received command 88
2019-04-16 21:02:05.771 [ome.event.ItemCommandEvent] - Item 'gToiletLightsLevel' received command 88
2019-04-16 21:02:05.790 [ome.event.ItemCommandEvent] - Item 'gKeukenLightsLevel' received command 88
2019-04-16 21:02:05.794 [ome.event.ItemCommandEvent] - Item 'gWoonkamerLightsLevel' received command 88
2019-04-16 21:02:05.801 [ome.event.ItemCommandEvent] - Item 'Milight_ID0x2_G4_Level' received command 88
2019-04-16 21:02:05.805 [ome.event.ItemCommandEvent] - Item 'Milight_ID0x2_G3_Level' received command 88
2019-04-16 21:02:05.807 [ome.event.ItemCommandEvent] - Item 'Milight_ID0x2_G1_Level' received command 88
2019-04-16 21:02:05.813 [ome.event.ItemCommandEvent] - Item 'Milight_ID0x4_G1_Level' received command 88
2019-04-16 21:02:05.835 [GroupItemStateChangedEvent] - gBeganeGrondLightsLevel changed from 88 to UNDEF through gHalLightsLevel
2019-04-16 21:02:05.841 [nt.ItemStatePredictedEvent] - Milight_ID0x2_G4_Level predicted to become 88
2019-04-16 21:02:05.849 [nt.ItemStatePredictedEvent] - Milight_ID0x2_G3_Level predicted to become 88
2019-04-16 21:02:05.859 [nt.ItemStatePredictedEvent] - Milight_ID0x2_G1_Level predicted to become 88
2019-04-16 21:02:05.863 [nt.ItemStatePredictedEvent] - Milight_ID0x4_G1_Level predicted to become 88
2019-04-16 21:02:05.869 [GroupItemStateChangedEvent] - gBeganeGrondLightsLevel changed from UNDEF to 88 through gWoonkamerLightsLevel
2019-04-16 21:02:05.872 [vent.ItemStateChangedEvent] - Milight_ID0x2_G4_Level changed from 80 to 88
2019-04-16 21:02:05.875 [vent.ItemStateChangedEvent] - Milight_ID0x2_G3_Level changed from 22 to 88
2019-04-16 21:02:05.878 [vent.ItemStateChangedEvent] - Milight_ID0x2_G1_Level changed from 80 to 88
2019-04-16 21:02:05.880 [vent.ItemStateChangedEvent] - Milight_ID0x4_G1_Level changed from 24 to 88
2019-04-16 21:02:06.615 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x24_bulbmode' received command white
2019-04-16 21:02:06.641 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x24_bulbmode' received command white
2019-04-16 21:02:06.645 [vent.ItemStateChangedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_level changed from 80 to 88
2019-04-16 21:02:06.653 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_bulbmode predicted to become white
2019-04-16 21:02:06.658 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_bulbmode predicted to become white
2019-04-16 21:02:07.599 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x24_bulbmode' received command white
2019-04-16 21:02:07.644 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x24_bulbmode' received command white
2019-04-16 21:02:07.670 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_bulbmode predicted to become white
2019-04-16 21:02:07.682 [vent.ItemStateChangedEvent] - Milight_ID0x2_G4_CTemp changed from 37 to 72
2019-04-16 21:02:07.689 [GroupItemStateChangedEvent] - gBeganeGrondLightsTemp changed from 37 to UNDEF through Milight_ID0x2_G4_CTemp
2019-04-16 21:02:07.694 [vent.ItemStateChangedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_colourtemperature changed from 37 to 72
2019-04-16 21:02:07.701 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x24_bulbmode predicted to become white
2019-04-16 21:02:08.566 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x21_bulbmode' received command white
2019-04-16 21:02:08.590 [vent.ItemStateChangedEvent] - Milight_ID0x2_G1_Level changed from 88 to 80
2019-04-16 21:02:08.594 [GroupItemStateChangedEvent] - gKeukenLightsLevel changed from 88 to 80 through Milight_ID0x2_G1_Level
2019-04-16 21:02:08.597 [GroupItemStateChangedEvent] - gBeganeGrondLightsLevel changed from 88 to UNDEF through gKeukenLightsLevel
2019-04-16 21:02:08.600 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x21_bulbmode predicted to become white
2019-04-16 21:02:08.611 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x21_bulbmode' received command white
2019-04-16 21:02:08.622 [vent.ItemStateChangedEvent] - espmilighthub_rgb_cct_46a03e89_0x21_colourtemperature changed from 37 to 72
2019-04-16 21:02:08.627 [vent.ItemStateChangedEvent] - Milight_ID0x2_G1_CTemp changed from 37 to 72
2019-04-16 21:02:08.631 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x21_bulbmode predicted to become white
2019-04-16 21:02:09.070 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x23_bulbmode' received command white
2019-04-16 21:02:09.100 [vent.ItemStateChangedEvent] - Milight_ID0x2_G3_Level changed from 88 to 22
2019-04-16 21:02:09.104 [GroupItemStateChangedEvent] - gHalLightsLevel changed from 88 to 22 through Milight_ID0x2_G3_Level
2019-04-16 21:02:09.108 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x23_bulbmode' received command white
2019-04-16 21:02:09.118 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x23_bulbmode predicted to become white
2019-04-16 21:02:09.137 [vent.ItemStateChangedEvent] - Milight_ID0x2_G3_CTemp changed from 37 to 72
2019-04-16 21:02:09.140 [vent.ItemStateChangedEvent] - espmilighthub_rgb_cct_46a03e89_0x23_colourtemperature changed from 37 to 72
2019-04-16 21:02:09.142 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x23_bulbmode predicted to become white
2019-04-16 21:02:09.589 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x41_bulbmode' received command white
2019-04-16 21:02:09.602 [vent.ItemStateChangedEvent] - Milight_ID0x4_G1_Level changed from 88 to 24
2019-04-16 21:02:09.630 [GroupItemStateChangedEvent] - gWoonkamerLightsLevel changed from 88 to 24 through Milight_ID0x4_G1_Level
2019-04-16 21:02:09.647 [ome.event.ItemCommandEvent] - Item 'espmilighthub_rgb_cct_46a03e89_0x41_bulbmode' received command white
2019-04-16 21:02:09.661 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x41_bulbmode predicted to become white
2019-04-16 21:02:09.670 [vent.ItemStateChangedEvent] - Milight_ID0x4_G1_CTemp changed from 37 to 72
2019-04-16 21:02:09.674 [GroupItemStateChangedEvent] - gBeganeGrondLightsTemp changed from UNDEF to 72 through Milight_ID0x4_G1_CTemp
2019-04-16 21:02:09.678 [vent.ItemStateChangedEvent] - espmilighthub_rgb_cct_46a03e89_0x41_colourtemperature changed from 37 to 72
2019-04-16 21:02:09.682 [nt.ItemStatePredictedEvent] - espmilighthub_rgb_cct_46a03e89_0x41_bulbmode predicted to become white

Mosquitto:

Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/commands/0x2/rgb_cct/4', ... (25 bytes))
milight/commands/0x2/rgb_cct/4 {"state":"ON","level":88}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/commands/0x2/rgb_cct/4', ... (31 bytes))
milight/commands/0x2/rgb_cct/4 {"state":"ON","color_temp":214}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/4', ... (62 bytes))
milight/states/0x2/rgb_cct/4 {"state":"ON","level":88,"color_temp":290,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/4', ... (62 bytes))
milight/states/0x2/rgb_cct/4 {"state":"ON","level":88,"color_temp":290,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/commands/0x2/rgb_cct/1', ... (31 bytes))
milight/commands/0x2/rgb_cct/1 {"state":"ON","color_temp":214}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/commands/0x2/rgb_cct/3', ... (31 bytes))
milight/commands/0x2/rgb_cct/3 {"state":"ON","color_temp":214}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/commands/0x4/rgb_cct/1', ... (31 bytes))
milight/commands/0x4/rgb_cct/1 {"state":"ON","color_temp":214}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/4', ... (62 bytes))
milight/states/0x2/rgb_cct/4 {"state":"ON","level":88,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/4', ... (62 bytes))
milight/states/0x2/rgb_cct/4 {"state":"ON","level":88,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/1', ... (62 bytes))
milight/states/0x2/rgb_cct/1 {"state":"ON","level":80,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/1', ... (62 bytes))
milight/states/0x2/rgb_cct/1 {"state":"ON","level":80,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/3', ... (62 bytes))
milight/states/0x2/rgb_cct/3 {"state":"ON","level":22,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x2/rgb_cct/3', ... (62 bytes))
milight/states/0x2/rgb_cct/3 {"state":"ON","level":22,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x4/rgb_cct/1', ... (62 bytes))
milight/states/0x4/rgb_cct/1 {"state":"ON","level":24,"color_temp":214,"bulb_mode":"white"}
Client mosqsub/32675-openhab received PUBLISH (d0, q0, r0, m0, 'milight/states/0x4/rgb_cct/1', ... (62 bytes))
milight/states/0x4/rgb_cct/1 {"state":"ON","level":24,"color_temp":214,"bulb_mode":"white"}

Items:

//Keukenlamp
Switch Milight_ID0x2_G1_State     "Light On/Off"           <switch>     (gKeuken, gKeukenLights)    {channel="espmilighthub:rgb_cct:46a03e89:0x21:level"}
Dimmer Milight_ID0x2_G1_Level     "Keukenlamp"                          (gKeukenLightsLevel)        {channel="espmilighthub:rgb_cct:46a03e89:0x21:level"}
Dimmer Milight_ID0x2_G1_CTemp     "White Color Temp"                    (gBeganeGrondLightsTemp)    {channel="espmilighthub:rgb_cct:46a03e89:0x21:colourtemperature"}
Color  Milight_ID0x2_G1_Hue       "Color"                               (gBeganeGrondLightsColor)   {channel="espmilighthub:rgb_cct:46a03e89:0x21:colour"}
Number Milight_ID0x2_G1_Mode      "Discomode"                                                       {channel="espmilighthub:rgb_cct:46a03e89:0x21:discomode"}
String Milight_ID0x2_G1_Cmd 	  "Command to Send"      <settings>     (gBeganeGrondLightsCommand) {channel="espmilighthub:rgb_cct:46a03e89:0x21:bulbcommand"}
Switch Milight_ID0x2_G1_SndCmd    "Send Command" 		                (gBeganeGrondLightsWhite)   {channel="espmilighthub:rgb_cct:46a03e89:0x21:sendbulbcommand"}

//Ledstrip monitor
Switch Milight_ID0x4_G1_State     "Light On/Off"           <switch>         (gWoonkamer, gLights)           {channel="espmilighthub:rgb_cct:46a03e89:0x41:level"}
Dimmer Milight_ID0x4_G1_Level     "Ledstrip monitor"                        (gWoonkamerLightsLevel)         {channel="espmilighthub:rgb_cct:46a03e89:0x41:level"}
Dimmer Milight_ID0x4_G1_CTemp     "White Color Temp"                        (gBeganeGrondLightsTemp)        {channel="espmilighthub:rgb_cct:46a03e89:0x41:colourtemperature"}
Color  Milight_ID0x4_G1_Hue       "Color"                                   (gBeganeGrondLightsColor)       {channel="espmilighthub:rgb_cct:46a03e89:0x41:colour"}
Number Milight_ID0x4_G1_Mode      "Discomode"                                                               {channel="espmilighthub:rgb_cct:46a03e89:0x41:discomode"}
String Milight_ID0x4_G1_Cmd 	  "Command to Send"      <settings>         (gBeganeGrondLightsCommand)     {channel="espmilighthub:rgb_cct:46a03e89:0x41:bulbcommand"}
Switch Milight_ID0x4_G1_SndCmd    "Send Command" 		                    (gBeganeGrondLightsWhite)       {channel="espmilighthub:rgb_cct:46a03e89:0x41:sendbulbcommand"}

//Ganglamp
Switch Milight_ID0x2_G3_State     "Light On/Off"           <switch>      (gHal, gHalLights)             {channel="espmilighthub:rgb_cct:46a03e89:0x23:level"}
Dimmer Milight_ID0x2_G3_Level     "Ganglamp"                             (gHalLightsLevel)              {channel="espmilighthub:rgb_cct:46a03e89:0x23:level"}
Dimmer Milight_ID0x2_G3_CTemp     "White Color Temp"                     (gBeganeGrondLightsTemp)       {channel="espmilighthub:rgb_cct:46a03e89:0x23:colourtemperature"}
Color  Milight_ID0x2_G3_Hue       "Color"                                (gBeganeGrondLightsColor)      {channel="espmilighthub:rgb_cct:46a03e89:0x23:colour"}
Number Milight_ID0x2_G3_Mode      "Discomode"                                                           {channel="espmilighthub:rgb_cct:46a03e89:0x23:discomode"}
String Milight_ID0x2_G3_Cmd 	  "Command to Send"      <settings>      (gBeganeGrondLightsCommand)    {channel="espmilighthub:rgb_cct:46a03e89:0x23:bulbcommand"}
Switch Milight_ID0x2_G3_SndCmd    "Send Command" 		                 (gBeganeGrondLightsWhite)      {channel="espmilighthub:rgb_cct:46a03e89:0x23:sendbulbcommand"}

//Toiletlamp
Switch Milight_ID0x2_G4_State     "Light On/Off"           <switch>      (gToiletLights)                {channel="espmilighthub:rgb_cct:46a03e89:0x24:level"}
Dimmer Milight_ID0x2_G4_Level     "Toiletlamp"                           (gToiletLightsLevel)           {channel="espmilighthub:rgb_cct:46a03e89:0x24:level"}
Dimmer Milight_ID0x2_G4_CTemp     "White Color Temp"                     (gBeganeGrondLightsTemp)       {channel="espmilighthub:rgb_cct:46a03e89:0x24:colourtemperature"}
Color  Milight_ID0x2_G4_Hue       "Color"                                (gBeganeGrondLightsColor)      {channel="espmilighthub:rgb_cct:46a03e89:0x24:colour"}
Number Milight_ID0x2_G4_Mode      "Discomode"                                                           {channel="espmilighthub:rgb_cct:46a03e89:0x24:discomode"}
String Milight_ID0x2_G4_Cmd 	  "Command to Send"      <settings>      (gBeganeGrondLightsCommand)    {channel="espmilighthub:rgb_cct:46a03e89:0x24:bulbcommand"}
Switch Milight_ID0x2_G4_SndCmd    "Send Command" 		                 (gBeganeGrondLightsWhite)      {channel="espmilighthub:rgb_cct:46a03e89:0x24:sendbulbcommand"}

Group:Switch:OR(ON, OFF) gLights                   "Alle verlichting" <light> (gSensors)
Group:Switch:OR(ON, OFF) gBeganeGrondLights        "Verlichting begane grond" <light> (gLights)
Group:Switch:OR(ON, OFF) gEersteVerdiepingLights   "Verlichting eerste verdieping" <light> (gLights)
Group:Switch:OR(ON, OFF) gZolderLights             "Verlichting zolder" <light> (gLights)

Group:Switch:OR(ON, OFF) gWoonkamerLights           <light> (gWoonkamer, gBeganeGrondLights)
Group:Switch:OR(ON, OFF) gKeukenLights              <light> (gKeuken, gBeganeGrondLights)
Group:Switch:OR(ON, OFF) gMeterkastLights           <light> (gMeterkast, gBeganeGrondLights)
Group:Switch:OR(ON, OFF) gHalLights                 <light> (gHal, gBeganeGrondLights)
Group:Switch:OR(ON, OFF) gToiletLights              <light> (gToilet, gBeganeGrondLights)
Group:Switch:OR(ON, OFF) gTrapgatBenedenLights      <light> (gTrapgatBeneden, gBeganeGrondLights)

Group:Switch:OR(ON, OFF) gBadkamerLights            <light> (gBadkamer, gEersteVerdiepingLights)
Group:Switch:OR(ON, OFF) gSlaapkamerLights          <light> (gSlaapkamer, gEersteVerdiepingLights)
Group:Switch:OR(ON, OFF) gBiebLights                <light> (gBieb, gEersteVerdiepingLights)
Group:Switch:OR(ON, OFF) gWerkkamerLights           <light> (gWerkkamer, gEersteVerdiepingLights)
Group:Switch:OR(ON, OFF) gOverloopLights            <light> (gOverloop, gEersteVerdiepingLights)
Group:Switch:OR(ON, OFF) gTrapgatBovenLights        <light> (gTrapgatBoven, gEersteVerdiepingLights)

Group:Switch:OR(ON, OFF) gServerRuimteLights        <light> (gServerRuimte, gZolderLights)
Group:Switch:OR(ON, OFF) gFitnessKamerLights        <light> (gFitnessKamer, gZolderLights)
Group:Switch:OR(ON, OFF) gMagazijnLights            <light> (gMagazijn, gZolderLights)
Group:Switch:OR(ON, OFF) gKamerOnbenoemdLights      <light> (gKamerOnbenoemd, gZolderLights)
Group:Switch:OR(ON, OFF) gWaskamerLights            <light> (gWaskamer, gZolderLights)
Group:Switch:OR(ON, OFF) gVlieringLights            <light> (gVliering, gZolderLights)

Group:Color gLightsColor                     "Kleur gehele huis" <rgb>
Group:Color gBeganeGrondLightsColor          "Kleur begane grond" <rgb> (gLightsColor)
Group:Color gEersteVerdiepingLightsColor     "Kleur eerste verdieping" <rgb> (gLightsColor)
Group:Color gZolderLightsColor               "Kleur zolder" <rgb> (gLightsColor)

Group:Dimmer gLightsTemp                     "Kleurtemperatuur gehele huis" <light>
Group:Dimmer gBeganeGrondLightsTemp          "Kleurtemperatuur begane grond" <light> (gLightsTemp)
Group:Dimmer gEersteVerdiepingLightsTemp     "Kleurtemperatuur eerste verdieping" <light> (gLightsTemp)
Group:Dimmer gZolderLightsTemp               "Kleurtemperatuur zolder" <light> (gLightsTemp)

Group:Switch gLightsWhite                     "Wit gehele huis" <light>
Group:Switch gBeganeGrondLightsWhite          "Wit begane grond" <light> (gLightsWhite)
Group:Switch gEersteVerdiepingLightsWhite     "Wit eerste verdieping" <light> (gLightsWhite)
Group:Switch gZolderLightsWhite               "Wit zolder" <light> (gLightsWhite)

Group:String gLightsCommand                     "Commando gehele huis" <light>
Group:String gBeganeGrondLightsCommand          "Commando begane grond" <light> (gLightsCommand)
Group:String gEersteVerdiepingLightsCommand     "Commando eerste verdieping" <light> (gLightsCommand)
Group:String gZolderLightsCommand               "Commando zolder" <light> (gLightsCommand)

Group:Dimmer gLightsLevel                     "Dimmer gehele huis" <light>
Group:Dimmer gBeganeGrondLightsLevel          "Dimmer begane grond" <light> (gLightsLevel)
Group:Dimmer gEersteVerdiepingLightsLevel     "Dimmer eerste verdieping" <light> (gLightsLevel)
Group:Dimmer gZolderLightsLevel               "Dimmer zolder" <light> (gLightsLevel)
Group:Dimmer gHalLightsLevel                  "Dimmer hal" <light> (gBeganeGrondLightsLevel)
Group:Dimmer gToiletLightsLevel               "Dimmer hal" <light> (gBeganeGrondLightsLevel)
Group:Dimmer gKeukenLightsLevel               "Dimmer keuken" <light> (gBeganeGrondLightsLevel)
Group:Dimmer gWoonkamerLightsLevel            "Dimmer woonkamer" <light> (gBeganeGrondLightsLevel)
Group:Dimmer gOverloopLightsLevel             "Dimmer overloop" <light> (gEersteVerdiepingLightsLevel)
Group:Dimmer gTrapgatBovenLightsLevel         "Dimmer trapgat boven" <light> (gEersteVerdiepingLightsLevel, gZolderLightsLevel)

Sitemap:

Frame label="Beneden verlichting" icon="light" 
	{
            Switch item=gBeganeGrondLights
            Colorpicker item=gBeganeGrondLightsColor
            Slider item=gBeganeGrondLightsTemp
            Selection	item=gBeganeGrondLightsCommand mappings=[next_mode='next_mode', previous_mode='previous_mode', mode_speed_up='mode_speed_up', mode_speed_down='mode_speed_down', set_white='set_white', pair='pair',unpair='unpair',level_down='level_down',level_up='level_up',temperature_down='temperature_down',temperature_up='temperature_up',night_mode='night_mode',favourite_white='favourite_white']
            Switch item=gBeganeGrondLightsWhite mappings=[ON="Send"]
            Slider item=gBeganeGrondLightsLevel
        }

My hardware setup:
2x hub, 1 at the groundfloor, 1 at the attic. 1 hub isn’t enough to reach all lights reliable. The both run the 1.9.0-rc3 firmware. They both use the same topic pattern (milight/commands/:device_id/:device_type/:group_id) and state topic pattern (milight/states/:device_id/:device_type/:group_id).

So what is happening? Why is my colourtemperature changed when I change the lights level?

Not sure I can help unless you post what you set the group slider to and what exactly happens to the controls in openhab compared to the mqtt messages.

If they are only 1 value different that can happen due to rounding errors when converting from 256 values to 100 steps.

Hi Matt, I recently updated my nodeMCU to 1.9.0-rc2, I like the static ip stuff but my control now seems haphazard, it only works occasionally and even then it seems sluggish. Used to work like lightning (no pun). The addon version is 2019-04-11 btw. Any idea why either of these would cause the slow-down or the best way to resolve it ? Many thanks in advance.

OK, at this point all lights have different light levels. I set the groundfloor group light level (gBeganeGrondLightsLevel) to 88%. This then sets the different rooms at the ground level also to 88%, which in turn sets the individual lights to 88%.

This allready partly fails, 1 room level (gHalLightsLevel) changes to UNDEF.

Item 'gHalLightsLevel' received command 88
gBeganeGrondLightsLevel changed from 88 to UNDEF through gHalLightsLevel

Where another group (gWoonkamerLightsLevel) changes it back to 88.

gBeganeGrondLightsLevel changed from UNDEF to 88 through gWoonkamerLightsLevel

Then out of nowhere 1 light (espmilighthub_rgb_cct_46a03e89_0x24_bulbmode) receives a bulbmode command to become white, which then sets the color temp for that light to 72. This works its way up to the groundfloor group temperature level (gBeganeGrondLightsTemp) and sets it to UNDEF.

Milight_ID0x2_G4_CTemp changed from 37 to 72
gBeganeGrondLightsTemp changed from 37 to UNDEF through Milight_ID0x2_G4_CTemp.

And then this goes on and on.

Could this be because all lights have a different level and all group items default to:

EQUALITY - Sets the state of the members if all have equal state. Otherwise UNDEF is set. In the Item DSL EQUALITY is the default and may be omitted.

If I understand this correctly, it is impossible to control a group if its members have different states?

This explains why setting the color temperature works correctly, since all light temperatures are in group gBeganeGrondLightsTemp. Where all light levels are in subgroups of gBeganeGrondLightsLevel (gKeukenLightsLevel, gWoonkamerLightsLevel, gHalLightsLevel, gToiletLightsLevel). As I don’t want different colortemperatures in my house, but I do want different light levels.

Is it possible to control the light levels per subgroup, but still have a group which can overrule the subgroups as needed?

same here

Roll back and see if it is the firmware or the binding at fault. I am using 1.9.0 dev 7 here so am not using the latest firmware. Was anything else changed like an update to your mqtt broker?

Thanks Matt. Things I’ve tried so far, rolled back the binding to 2019-02-27, set power level to max, and both send/receive channels to high. Will try FW rollback later and let you know if that makes a difference.

Ok, rolled FW back to 1.9.0-dev7, seems a little more responsive. Then I relocated the antenna and that proved more useful. So tomorrow I’ll upgrade again and retry it in the new position.

It was the “The white colour temperature that you prefer when the light is dimmed all the way down. RGB_CCT and CCT globes only.”-option which was driving me crazy. With this disabled everything works as intended.

Well, I’m a damn idiot, upgraded to the latest versions of FW and binding again, put the antenna back in the orientation that works well and things are going fine. The antenna is basically in the same place when it was playing up, just a different orientation. Both the nodeMCU and NRF24L01 are wrapped in anti-stat packets until I get my 3d printer moving again and print a proper case to house them.

Sorry for the false report Matt, I was sure I used the same placement, though apparently not, and thought maybe a bug had crept in.

Since two people reported the same thing I am less likely to believe it was an antenna issue. Out of interest did you setup the hub and lights with PaperUI or with textual config? I have noticed that when I change the channels or the config parameters in a binding (like the latest binding version has done with HUB_IP) you can see wierd issues until the thing is deleted and re-added. When using textual config it works fine and never has an issue, it is only with PaperUI that this happens. Possibly this was the reason or it may have been a setting in the new firmware has issues.

BTW two comments:

This will only work for NRF boards that have the LNA and AMP added and also the fake NRF chips are known to have issues controlling the power amp level. Not sure what happens but I suspect you will change this setting and nothing will happen.

This was a feature I requested and have been hanging out for. I have not checked it out yet, but what I understand if you have two hubs, set one of them to HIGH and another to LOW (?) so they broadcast on different frequencies as the globes are channel hopping and will listen to the first hub they find.
Keen to hear how multiple hubs are working as I want to lower response times with them.

@stfn82
Great to hear you worked it out, if you find something confusing please give feedback and I can change the labelling and names of things to make it clearer what the options do. That setting is to make the lights emmulate old halogen globes that get warmer the more the dim the lights.

This is how I’ve set them up. Sometimes a light doesn’t get a signal, but that’s very minimal. I have to test this further.

Also the new option to set static IP addresses enhances the reachability. I don’t know why, but with all my esp8266 boards (Mostly ESPeasy, and a few Tasmota and espmilighthub) I had a lot of trouble to maintain the wifi connection. Setting a static IP address really helps. Also the new option in ESPeasy to force wifi to the G-band improves the connection a lot. I’m thinking of buying a seperate AP which runs in G mode, so all my other devices can connect to N en AC without being slowdown by the G-devices

Always use text config, don’t put much weight in gui tools in general.

Not sure if mine has that or not, it does use an SMA antenna, so I suppose it might need an amplifier to power that.

Forgot to add, why the antenna orientation issue makes a difference in my case.

I have it located on my tv base, when the antenna is parallel to the tv (essentially directly under it) I get poor performance. When it is 90deg to the tv it performs very well.