Cant get espmilighthub to work

Tags: #<Tag:0x00007faeda6bd3a8> #<Tag:0x00007faeda6bd268>
  • Platform information:
    • Hardware: _CPUArchitecture/RAM/storage Rasberry pi
    • OS: _what OS is used and which version openhabian
    • openHAB version: 2.5.0.M1
  • Issue of the topic: please be detailed explaining your issue

I cant control the light in openhab. EspMilightHub I used this guide

The webinterface for the ESPmilight is working fine. I can control the lights with the webinttreface

This is my item file

Switch   GF_LivingRoom_Light_s      "Licht schakelaar"               <light>              (GF_LivingRoom, gLight)      ["Lighting", "Switchable"]   {channel="espmilighthub:rgb_cct:AB296F32:level"}

This is the log file

2019-07-11 10:04:27.627 [INFO ] [b.handler.EspMilightHubBridgeHandler] - Sucessfully subscribed to milight/states/#

2019-07-11 10:04:27.647 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - * Recieved the following new Milight state:milight/states/0x0/rgb_cct/2 : {"state":"ON","level":100,"hue":354,"saturation":100,"bulb_mode":"color"}

2019-07-11 10:04:27.654 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - * Recieved the following new Milight state:milight/states/0x59B6/rgb_cct/1 : {"state":"OFF","mode":0,"bulb_mode":"scene"}

2019-07-11 10:04:27.668 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Processing new incoming MQTT message to update Openhab's controls.

2019-07-11 10:04:27.673 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Message	={"state":"ON","level":100,"hue":354,"saturation":100,"bulb_mode":"color"}

2019-07-11 10:04:27.677 [TRACE] [b.handler.EspMilightHubBridgeHandler] - globeType	=rgb_cct

2019-07-11 10:04:27.681 [TRACE] [b.handler.EspMilightHubBridgeHandler] - remoteCode	=0x0

2019-07-11 10:04:27.684 [TRACE] [b.handler.EspMilightHubBridgeHandler] - remoteGroupID	=2

2019-07-11 10:04:27.688 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Chan Prefix	=espmilighthub:rgb_cct:2c48b9aa:0x02:

2019-07-11 10:04:27.691 [TRACE] [b.handler.EspMilightHubBridgeHandler] - bulbState	=ON

2019-07-11 10:04:27.694 [TRACE] [b.handler.EspMilightHubBridgeHandler] - bulbLevel	=100

2019-07-11 10:04:27.737 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Processing new incoming MQTT message to update Openhab's controls.

2019-07-11 10:04:27.740 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Message	={"state":"OFF","mode":0,"bulb_mode":"scene"}

2019-07-11 10:04:27.744 [TRACE] [b.handler.EspMilightHubBridgeHandler] - globeType	=rgb_cct

2019-07-11 10:04:27.747 [TRACE] [b.handler.EspMilightHubBridgeHandler] - remoteCode	=0x59B6

2019-07-11 10:04:27.750 [TRACE] [b.handler.EspMilightHubBridgeHandler] - remoteGroupID	=1

2019-07-11 10:04:27.754 [TRACE] [b.handler.EspMilightHubBridgeHandler] - Chan Prefix	=espmilighthub:rgb_cct:2c48b9aa:0x59B61:

2019-07-11 10:04:27.757 [TRACE] [b.handler.EspMilightHubBridgeHandler] - bulbState	=OFF

2019-07-11 10:04:27.760 [TRACE] [b.handler.EspMilightHubBridgeHandler] - bulbLevel	=

Errors in log file

> 2019-07-11 10:04:17.028 [ERROR] [] - bundle (227)[] : The activate method has thrown an exception

The milight globe ab296f32 is using lowercase for the remote code when the hub needs UPPERCASE

How do i change this?

please learn how to use code fences:

The issue you are having is covered in this section of the readme

The easiest way to get it setup is to use PaperUI to auto find and add the globes. Just control them first in the webinterface for the ESPmilight which you stated works, this adds the globes to the MQTT retained messages. Then when paperUI searches it will find the globes from MQTT.

I found them in the paperUI. But it doesn’t work.

I gave you the reason why, the thingUI is the wrong format the links I gave you explain why.

ab296f32 will not work.
ab296f32 is wrong.
ab296f32 is the cause.

The link with the info you need is here…