Hi there,
I have a problem with my :device_id not populating. Iāve tried using hex and decimal numbers, same result.
Logfile (set to trace on espmilighthub):
2019-02-19 01:22:08.777 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Processing new incoming MQTT message to update Openhab's controls.
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Message ={"state":"ON","level":100}
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - globeType =rgbw
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - remoteCode =0x0
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - remoteGroupID =1
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Chan Prefix =espmilighthub:rgbw:4666:0x01:
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - bulbState =ON
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - bulbLevel =100
2019-02-19 01:22:08.778 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - iBulbLevel =100
2019-02-19 01:22:09.520 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - started timer because it was null.
2019-02-19 01:22:09.525 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - MQTT message just sent, there are now 0 more messages in the queue
2019-02-19 01:22:09.666 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - MQTT sending queue is getting cancelled
2019-02-19 01:22:09.669 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - * Recieved the following new Milight state:milight/states/0x0/rgbw/1 : {"state":"OFF","level":100}
mosquitto_sub output:
milight/commands//rgbw/1 {"state":"OFF"}
milight/states/0x0/rgbw/1 {"state":"OFF","level":100}
milight/commands//rgbw/1 {"state":"ON","level":100}
milight/states/0x0/rgbw/1 {"state":"ON","level":100}
milight/commands//rgbw/1 {"state":"OFF"}
milight/states/0x0/rgbw/1 {"state":"OFF","level":100}
things file:
Bridge espmilighthub:esp8266Bridge:4666 [ADDR="tcp://192.168.0.10:1883"]
{
Thing rgbw 0 "All Lights" @ "RaSTuS' Home"
Thing rgbw 1 "Lamp" @ "Bedroom"
Thing rgbw 2 "Bedroom Light" @ "Bedroom"
Thing rgbw 3 "Lounge Light" @ "Lounge"
Thing rgbw 4 "Bathroom Light" @ "Bathroom"
}
items file:
Switch Bedroom_LightSw "Bedroom Light - On/Off" (Bedroom, Lights) ["Lighting"] channel="espmilighthub:rgbw:4666:1:level"}
But if I reorder the item so that itās āepsmilighthub:4666:rgbw:1:levelā then the :device_id populates but nothing works.
items file:
Switch Bedroom_LightSw "Bedroom Light - On/Off" (Bedroom, Lights) ["Lighting"] {channel="espmilighthub:4666:rgbw:1:level"}
Logfile (set to trace on espmilighthub):
2019-02-19 16:50:19.238 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Processing new incoming MQTT message to update Openhab's controls.
2019-02-19 16:50:19.238 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Message ={"state":"OFF","level":100,"bulb_mode":"white"}
2019-02-19 16:50:19.238 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - globeType =rgbw
2019-02-19 16:50:19.238 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - remoteCode =0x123A
2019-02-19 16:50:19.239 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - remoteGroupID =1
2019-02-19 16:50:19.239 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - Chan Prefix =espmilighthub:rgbw:4666:0x123A1:
2019-02-19 16:50:19.239 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - bulbState =OFF
2019-02-19 16:50:19.239 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - bulbLevel =100
2019-02-19 18:22:00.413 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - started timer because it was null.
2019-02-19 18:22:00.416 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - MQTT message just sent, there are now 0 more messages in the queue
2019-02-19 18:22:00.557 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - MQTT sending queue is getting cancelled
2019-02-19 18:22:00.790 [DEBUG] [b.handler.EspMilightHubBridgeHandler] - * Recieved the following new Milight state:milight/states/0x0/rgbw/3 : {"state":"ON","level":100}
mosquitto_sub output:
milight/states/0x123A/rgbw/1 {"state":"ON","level":100,"bulb_mode":"white"}
milight/states/0x123A/rgbw/1 {"state":"OFF","level":100,"bulb_mode":"white"}
Which is the best items file order for these to work correctly please?