I am working on the feature you requested, but right now I can't get it working perfectly.
Here is the update that will send current LED color/state/dimmer/temp when MQTT connects:
I have a RGBCW bulb with a setting of RED color in startup command, but it seems that my Home Assistant overwrites the change (bulb is red after restart but after connecting to HA it's white again).
Quote:
Info:MAIN:Module reboot in 1...
Debug:CMD:Adding command SetPinRole
Debug:CMD:Adding command SetPinChannel
Debug:CMD:Adding command GetChannel
Debug:CMD:Adding command GetReadings
Debug:CMD:Adding command ShortName
Debug:CMD:Adding command AddEventHandler
Debug:CMD:Adding command AddChangeHandler
Debug:CMD:Adding command listEvents
Debug:CMD:Adding command restart
Debug:CMD:Adding command clearConfig
Debug:CMD:cmd [backlog led_basecolor_rgb FF0000; led_enableAll 1;]
Debug:CMD:backlog [led_basecolor_rgb FF0000; led_enableAll 1;]
Debug:CMD:cmd [led_basecolor_rgb FF0000]
Debug:CMD: BASECOLOR got FF0000
Info:GEN:CHANNEL_Set channel 1 has changed to 100 (flags 2)
Info:GEN:No change in channel 2 (still set to 0) - ignoring
Info:GEN:No change in channel 3 (still set to 0) - ignoring
Info:GEN:No change in channel 4 (still set to 0) - ignoring
Info:GEN:No change in channel 5 (still set to 0) - ignoring
Debug:CMD:cmd [led_enableAll 1]
Info:CMD: enableAll (led_enableAll) received with args 1
Info:GEN:No change in channel 1 (still set to 100) - ignoring
Info:GEN:No change in channel 2 (still set to 0) - ignoring
Info:GEN:No change in channel 3 (still set to 0) - ignoring
Info:GEN:No change in channel 4 (still set to 0) - ignoring
Info:GEN:No change in channel 5 (still set to 0) - ignoring
Debug:CMD:backlog executed 2
Debug:CMD:cmd [exec autoexec.bat]
Debug:CMD:exec autoexec.bat
Error:CMD:lfs is absent
Info:GEN:PIN_SetupPins pins have been set up.
Debug:MAIN:started timer
Info:MAIN:Time 1, free 94728, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 2, free 94728, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 3, free 94728, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 4, free 94728, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 5, free 94728, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Debug:MAIN:Registered for wifi changes
Info:MAIN:Time 6, free 90744, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 7, free 90744, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 8, free 90744, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:wl_status 3
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING
Info:MAIN:Time 9, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 10, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=38:1f:8d:38:57:0e
Info:MQTT:mqtt_userName homeassistant
mqtt_pass Ripee5iaRaiph4Zoo8phee4Ahf5Gooquaeg3ohdaj9ahcah1eiKoosh8AhT9ooja
mqtt_clientID obk8D38570E
mqtt_host 192.168.0.121:1883
Info:MQTT:Connect error in mqtt_client_connect - code: -4
Info:MAIN:Time 11, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 12, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 13, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 14, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 15, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 16, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 17, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 18, free 90568, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:wl_status 9
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_AUTH_FAILED
Info:MAIN:Time 19, free 89288, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 20, free 89288, MQTT 0, bWifi 0, secondsWithNoPing 0, socks 2/38
Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=38:1f:8d:38:57:0e
Info:MAIN:wl_status 3
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING
Info:MAIN:wl_status 10
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED
Info:MAIN:wl_status 11
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED
Info:MAIN:Time 21, free 89920, MQTT 0, bWifi 1, secondsWithNoPing 0, socks 2/38
Info:MQTT:mqtt_userName homeassistant
mqtt_pass Ripee5iaRaiph4Zoo8phee4Ahf5Gooquaeg3ohdaj9ahcah1eiKoosh8AhT9ooja
mqtt_clientID obk8D38570E
mqtt_host 192.168.0.121:1883
Info:MAIN:Time 22, free 89960, MQTT 0, bWifi 1, secondsWithNoPing 0, socks 2/38
Info:MQTT:mqtt_connection_cb: Successfully connected
Info:MQTT:mqtt_subscribed to obk8D38570E/+/set
Info:MQTT:mqtt_subscribed to cmnd/obk8D38570E/+
Info:MQTT:mqtt_publish requies 31, has 1024
Info:MQTT:MQTT client "obk8D38570E" request cb: err 0
Info:MQTT:MQTT client "obk8D38570E" request cb: err 0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic cmnd/obk8D38570E/led_enableAll
Info:MQTT:MQTT in topic cmnd/obk8D38570E/led_enableAll
Info:CMD: enableAll (led_enableAll) received with args 1
Info:GEN:No change in channel 1 (still set to 100) - ignoring
Info:GEN:No change in channel 2 (still set to 0) - ignoring
Info:GEN:No change in channel 3 (still set to 0) - ignoring
Info:GEN:No change in channel 4 (still set to 0) - ignoring
Info:GEN:No change in channel 5 (still set to 0) - ignoring
Info:MQTT:Publishing led_enableAll = 1
Info:MQTT:mqtt_publish requies 34, has 1024
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic cmnd/obk8D38570E/led_dimmer
Info:MQTT:MQTT in topic cmnd/obk8D38570E/led_dimmer
Info:CMD: dimmer (led_dimmer) received with args 78
Info:GEN:CHANNEL_Set channel 1 has changed to 78 (flags 2)
Info:GEN:No change in channel 2 (still set to 0) - ignoring
Info:GEN:No change in channel 3 (still set to 0) - ignoring
Info:GEN:No change in channel 4 (still set to 0) - ignoring
Info:GEN:No change in channel 5 (still set to 0) - ignoring
Info:MQTT:Publishing led_dimmer = 78
Info:MQTT:mqtt_publish requies 32, has 1024
Info:MQTT:Publishing led_basecolor_rgb = FF0000
Info:MQTT:mqtt_publish requies 43, has 1024
Info:MQTT:Publishing led_finalcolor_rgb = C60000
Info:MQTT:mqtt_publish requies 44, has 1024
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic cmnd/obk8D38570E/led_basecolor_rgb
Info:MQTT:MQTT in topic cmnd/obk8D38570E/led_basecolor_rgb
Debug:CMD: BASECOLOR got ffffff
Info:GEN:No change in channel 1 (still set to 78) - ignoring
Info:GEN:CHANNEL_Set channel 2 has changed to 78 (flags 2)
Info:GEN:CHANNEL_Set channel 3 has changed to 78 (flags 2)
Info:GEN:No change in channel 4 (still set to 0) - ignoring
Info:GEN:No change in channel 5 (still set to 0) - ignoring
Info:MQTT:Publishing led_basecolor_rgb = FFFFFF
Info:MQTT:mqtt_publish requies 43, has 1024
Info:MQTT:Publishing led_dimmer = 78
Info:MQTT:mqtt_publish requies 32, has 1024
Info:MQTT:Publishing led_finalcolor_rgb = C6C6C6
Info:MQTT:mqtt_publish requies 44, has 1024
Info:MAIN:Time 23, free 89960, MQTT 1, bWifi 1, secondsWithNoPing 0, socks 2/38
Info:MAIN:Time 24, free 89960, MQTT 1, bWifi 1, secondsWithNoPing 0, socks 2/38
Info:MQTT:Publishing host = obk8D38570E
Info:MQTT:mqtt_publish requies 31, has 1024
Info:MQTT:[g_bPublishAllStatesNow] item -12 result 0
Info:MAIN:Time 25, free 89960, MQTT 1, bWifi 1, secondsWithNoPing 0, socks 2/38
I think the "VoltageSet" etc commands are missing because you have not initialized the driver.
Why do you have 2 drivers running and the interface twice? Have you started both BL0942 and BL0937 together? You should use only one.
I will change the current WWW panel code to display the list of drivers that are running...