emontnemery / domoticz_mqtt_discovery

MQTT discovery plugin for Domoticz
MIT License
40 stars 28 forks source link

Wrong subtype in Domoticz #19

Closed Xenomes closed 4 years ago

Xenomes commented 4 years ago

Hi, I have got some bulbs and a led-strip with Tasmota 6.6.0.7 witch gets the wrong SubType in Domoticz 4.11532. The led-strip RGBW gets subtype RGB and the bulbs are WW get white. Don't know if Tasmota or the detection of the script gives the wrong SubType. Greetings Xenomes

Click for log 2019-10-07 12:07:40.473 (MQTT Discovery) Received 2 bytes of data 2019-10-07 12:07:40.473 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-07 12:07:40.524 (MQTT Discovery) Received 385 bytes of data 2019-10-07 12:07:40.524 (MQTT Discovery) 30 fe 02 00 18 73 6f 6e 6f 66 66 5f 44 33 43 34 31 32 2f 74 0�...sonoff_D3C412/t 2019-10-07 12:07:40.524 (MQTT Discovery) 65 6c 65 2f 53 54 41 54 45 7b 22 54 69 6d 65 22 3a 22 32 30 ele/STATE{"Time":"20 2019-10-07 12:07:40.524 (MQTT Discovery) 31 39 2d 31 30 2d 30 37 54 31 31 3a 30 37 3a 34 30 22 2c 22 19-10-07T11:07:40"," 2019-10-07 12:07:40.524 (MQTT Discovery) 55 70 74 69 6d 65 22 3a 22 30 54 32 33 3a 31 35 3a 33 30 22 Uptime":"0T23:15:30" 2019-10-07 12:07:40.524 (MQTT Discovery) 2c 22 48 65 61 70 22 3a 31 35 2c 22 53 6c 65 65 70 4d 6f 64 ,"Heap":15,"SleepMod 2019-10-07 12:07:40.525 (MQTT Discovery) 65 22 3a 22 44 79 6e 61 6d 69 63 22 2c 22 53 6c 65 65 70 22 e":"Dynamic","Sleep" 2019-10-07 12:07:40.525 (MQTT Discovery) 3a 35 30 2c 22 4c 6f 61 64 41 76 67 22 3a 31 39 2c 22 50 4f :50,"LoadAvg":19,"PO 2019-10-07 12:07:40.525 (MQTT Discovery) 57 45 52 22 3a 22 4f 46 46 22 2c 22 44 69 6d 6d 65 72 22 3a WER":"OFF","Dimmer": 2019-10-07 12:07:40.525 (MQTT Discovery) 38 36 2c 22 43 6f 6c 6f 72 22 3a 22 31 32 38 2c 39 31 22 2c 86,"Color":"128,91", 2019-10-07 12:07:40.525 (MQTT Discovery) 22 48 53 42 43 6f 6c 6f 72 22 3a 22 30 2c 30 2c 30 22 2c 22 "HSBColor":"0,0,0"," 2019-10-07 12:07:40.525 (MQTT Discovery) 43 68 61 6e 6e 65 6c 22 3a 5b 35 30 2c 33 36 5d 2c 22 43 54 Channel":[50,36],"CT 2019-10-07 12:07:40.525 (MQTT Discovery) 22 3a 32 39 37 2c 22 46 61 64 65 22 3a 22 4f 46 46 22 2c 22 ":297,"Fade":"OFF"," 2019-10-07 12:07:40.525 (MQTT Discovery) 53 70 65 65 64 22 3a 31 2c 22 4c 65 64 54 61 62 6c 65 22 3a Speed":1,"LedTable": 2019-10-07 12:07:40.526 (MQTT Discovery) 22 4f 4e 22 2c 22 57 69 66 69 22 3a 7b 22 41 50 22 3a 31 2c "ON","Wifi":{"AP":1, 2019-10-07 12:07:40.526 (MQTT Discovery) 22 53 53 49 64 22 3a 22 42 6f 6c 75 79 74 22 2c 22 42 53 53 "SSId":"******","BSS 2019-10-07 12:07:40.526 (MQTT Discovery) 49 64 22 3a 22 33 30 3a 35 41 3a 33 41 3a 37 30 3a 33 46 3a Id":"30:5A:3A:70:3F: 2019-10-07 12:07:40.526 (MQTT Discovery) 36 38 22 2c 22 43 68 61 6e 6e 65 6c 22 3a 37 2c 22 52 53 53 68","Channel":7,"RSS 2019-10-07 12:07:40.526 (MQTT Discovery) 49 22 3a 39 34 2c 22 4c 69 6e 6b 43 6f 75 6e 74 22 3a 31 2c I":94,"LinkCount":1, 2019-10-07 12:07:40.526 (MQTT Discovery) 22 44 6f 77 6e 74 69 6d 65 22 3a 22 30 54 30 30 3a 30 30 3a "Downtime":"0T00:00: 2019-10-07 12:07:40.526 (MQTT Discovery) 30 34 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 04"}} 2019-10-07 12:07:40.527 (MQTT Discovery) onMQTTPublish: sonoff_D3C412/tele/STATE:b'{"Time":"2019-10-07T11:07:40","Uptime":"0T23:15:30","Heap":15,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Dimmer":86,"Color":"128,91","HSBColor":"0,0,0","Channel":[50,36],"CT":297,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"******","BSSId":"30:5A:3A:70:3F:68","Channel":7,"RSSI":94,"LinkCount":1,"Downtime":"0T00:00:04"}}' 2019-10-07 12:07:40.527 (MQTT Discovery) getDevices key: '' configkey: '' hasconfigkey: '' value: '' config: '' topic: 'sonoff_D3C412/tele/STATE' 2019-10-07 12:07:40.528 (MQTT Discovery) getDevices found 1 devices 2019-10-07 12:07:40.529 (MQTT Discovery) Got state_topic 2019-10-07 12:07:40.529 (MQTT Discovery) value_template: 'POWER' 2019-10-07 12:07:40.529 (MQTT Discovery) message[value_template]: 'OFF' 2019-10-07 12:07:40.530 (MQTT Discovery) Got brightness_state_topic 2019-10-07 12:07:40.530 (MQTT Discovery) brightness_value_template: 'Dimmer' 2019-10-07 12:07:40.530 (MQTT Discovery) message[brightness_value_template]: '86' 2019-10-07 12:07:40.530 (MQTT Discovery) Got color_temp_state_topic 2019-10-07 12:07:40.530 (MQTT Discovery) color_temp_value_template: 'CT' 2019-10-07 12:07:40.530 (MQTT Discovery) message[color_temp_value_template]: '297' 2019-10-07 12:07:40.531 (MQTT Discovery) 002/Lamp Dressoir Rechts: Topic: 'sonoff_D3C412/tele/STATE 'Setting nValue: 0->0, sValue: '86.0'->'86.0', color: ''->'{}' 2019-10-07 12:07:40.532 (Lamp Dressoir Rechts) Updating device from 0:'86.0' to have values 0:'86.0'.
emontnemery commented 4 years ago

Subtype is decided when the device is discovered.

To find out if your problem is caused by Tasmota or by the plugin, please enter this command in tasmota console for the devices you have trouble with: setoption19 1

Then paste log both from tasmota console and from domoticz.

Xenomes commented 4 years ago

Here are the logs: {"NAME":"LSC-Filam-Big","GPIO":[0,0,0,0,0,0,0,0,38,0,37,0,0],"FLAG":0,"BASE":18}

Tasmota ``` 05:56:48 CMD: setoption19 1 05:56:48 MQT: sonoff_D3C412/stat/RESULT = {"SetOption19":"ON"} 05:56:48 MQT: homeassistant/switch/D3C412_RL_1/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_1/config = {"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"D3C412_LI_1","device":{"identifiers":["D3C412"]},"~":"sonoff_D3C412/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","clr_temp_cmd_t":"~cmnd/CT","clr_temp_stat_t":"~tele/ST ... (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_2/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_2/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_3/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_3/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_4/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_4/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_5/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_5/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_6/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_6/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_7/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_7/config = (retained) 05:56:48 MQT: homeassistant/light/D3C412_LI_8/config = (retained) 05:56:48 MQT: homeassistant/switch/D3C412_RL_8/config = (retained) 05:56:48 MQT: homeassistant/sensor/D3C412_status/config = {"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json['RSSI']}}","uniq_id":"D3C412_status","device":{"identifiers":["D3C412"],"name":"Sonoff","model":"LSC-Filam-Big","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_D3C412/tele/"} (retained) ```
Domoticz ``` 2019-10-10 06:56:40.953 (MQTT Discovery) Heartbeating... 2019-10-10 06:56:40.953 (MQTT Discovery) MqttClient::Ping 2019-10-10 06:56:40.953 (MQTT Discovery) Sending 2 bytes of data 2019-10-10 06:56:40.954 (MQTT Discovery) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-10 06:56:41.004 (MQTT Discovery) Received 2 bytes of data 2019-10-10 06:56:41.004 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-10 06:56:48.538 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 33 2f 63 6f 6e 66 ght/D3C412_LI_3/conf 2019-10-10 06:56:48.538 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.538 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.538 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.538 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 33 2f 63 6f 6e itch/D3C412_RL_3/con 2019-10-10 06:56:48.538 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.538 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_1/config:b'' 2019-10-10 06:56:48.538 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_1/config:b'{"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"D3C412_LI_1","device":{"identifiers":["D3C412"]},"~":"sonoff_D3C412/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","clr_temp_cmd_t":"~cmnd/CT","clr_temp_stat_t":"~tele/STATE","clr_temp_val_tpl":"{{value_json.CT}}"}' 2019-10-10 06:56:48.539 (MQTT Discovery) updateDeviceSettings devicename: 'D3C412_LI_1' devicetype: 'light' config: '{'payload_on': 'ON', 'brightness_scale': 100, 'payload_not_available': 'Offline', 'value_template': '{{value_json.POWER}}', 'brightness_state_topic': 'sonoff_D3C412/tele/STATE', 'availability_topic': 'sonoff_D3C412/tele/LWT', 'brightness_value_template': '{{value_json.Dimmer}}', 'payload_off': 'OFF', 'payload_available': 'Online', 'color_temp_value_template': '{{value_json.CT}}', 'color_temp_command_topic': 'sonoff_D3C412/cmnd/CT', 'name': 'Sonoff', 'state_topic': 'sonoff_D3C412/tele/STATE', 'device': {'identifiers': ['D3C412']}, 'brightness_command_topic': 'sonoff_D3C412/cmnd/Dimmer', 'command_topic': 'sonoff_D3C412/cmnd/POWER', 'unique_id': 'D3C412_LI_1', 'color_temp_state_topic': 'sonoff_D3C412/tele/STATE', 'on_command_type': 'brightness'}' 2019-10-10 06:56:48.539 (MQTT Discovery) devicetype == 'light' 2019-10-10 06:56:48.539 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'D3C412_LI_1' config: '' topic: '' 2019-10-10 06:56:48.539 (MQTT Discovery) getDevices found 1 devices 2019-10-10 06:56:48.539 (MQTT Discovery) isTasmota: False 2019-10-10 06:56:48.540 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_2/config:b'' 2019-10-10 06:56:48.540 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_2/config:b'' 2019-10-10 06:56:48.540 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_3/config:b'' 2019-10-10 06:56:48.540 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_3/config:b'' 2019-10-10 06:56:48.590 (MQTT Discovery) Received 42 bytes of data 2019-10-10 06:56:48.591 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 06:56:48.591 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 34 2f 63 6f 6e 66 ght/D3C412_LI_4/conf 2019-10-10 06:56:48.591 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.591 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.591 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.591 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 34 2f 63 6f 6e itch/D3C412_RL_4/con 2019-10-10 06:56:48.591 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.591 (MQTT Discovery) Received 42 bytes of data 2019-10-10 06:56:48.591 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 06:56:48.591 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 35 2f 63 6f 6e 66 ght/D3C412_LI_5/conf 2019-10-10 06:56:48.591 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.591 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.591 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.591 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 35 2f 63 6f 6e itch/D3C412_RL_5/con 2019-10-10 06:56:48.591 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.592 (MQTT Discovery) Received 42 bytes of data 2019-10-10 06:56:48.592 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 06:56:48.592 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 36 2f 63 6f 6e 66 ght/D3C412_LI_6/conf 2019-10-10 06:56:48.592 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.592 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.592 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.592 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 36 2f 63 6f 6e itch/D3C412_RL_6/con 2019-10-10 06:56:48.592 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.592 (MQTT Discovery) Received 42 bytes of data 2019-10-10 06:56:48.592 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 06:56:48.592 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 37 2f 63 6f 6e 66 ght/D3C412_LI_7/conf 2019-10-10 06:56:48.592 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.592 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.592 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.592 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 37 2f 63 6f 6e itch/D3C412_RL_7/con 2019-10-10 06:56:48.592 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.592 (MQTT Discovery) Received 42 bytes of data 2019-10-10 06:56:48.593 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 06:56:48.593 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 38 2f 63 6f 6e 66 ght/D3C412_LI_8/conf 2019-10-10 06:56:48.593 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 06:56:48.593 (MQTT Discovery) Received 43 bytes of data 2019-10-10 06:56:48.593 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 06:56:48.593 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 38 2f 63 6f 6e itch/D3C412_RL_8/con 2019-10-10 06:56:48.593 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 06:56:48.593 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_4/config:b'' 2019-10-10 06:56:48.594 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_4/config:b'' 2019-10-10 06:56:48.595 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_5/config:b'' 2019-10-10 06:56:48.595 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_5/config:b'' 2019-10-10 06:56:48.596 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_6/config:b'' 2019-10-10 06:56:48.596 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_6/config:b'' 2019-10-10 06:56:48.596 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_7/config:b'' 2019-10-10 06:56:48.597 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_7/config:b'' 2019-10-10 06:56:48.597 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_8/config:b'' 2019-10-10 06:56:48.597 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_8/config:b'' 2019-10-10 06:56:48.648 (MQTT Discovery) Received 436 bytes of data 2019-10-10 06:56:48.648 (MQTT Discovery) 30 b1 03 00 29 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 0�..)homeassistant/s 2019-10-10 06:56:48.648 (MQTT Discovery) 65 6e 73 6f 72 2f 44 33 43 34 31 32 5f 73 74 61 74 75 73 2f ensor/D3C412_status/ 2019-10-10 06:56:48.648 (MQTT Discovery) 63 6f 6e 66 69 67 7b 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 config{"name":"Sonof 2019-10-10 06:56:48.648 (MQTT Discovery) 66 20 73 74 61 74 75 73 22 2c 22 73 74 61 74 5f 74 22 3a 22 f.status","stat_t":" 2019-10-10 06:56:48.648 (MQTT Discovery) 7e 48 41 53 53 5f 53 54 41 54 45 22 2c 22 61 76 74 79 5f 74 ~HASS_STATE","avty_t 2019-10-10 06:56:48.648 (MQTT Discovery) 22 3a 22 7e 4c 57 54 22 2c 22 70 6c 5f 61 76 61 69 6c 22 3a ":"~LWT","pl_avail": 2019-10-10 06:56:48.648 (MQTT Discovery) 22 4f 6e 6c 69 6e 65 22 2c 22 70 6c 5f 6e 6f 74 5f 61 76 61 "Online","pl_not_ava 2019-10-10 06:56:48.648 (MQTT Discovery) 69 6c 22 3a 22 4f 66 66 6c 69 6e 65 22 2c 22 6a 73 6f 6e 5f il":"Offline","json_ 2019-10-10 06:56:48.648 (MQTT Discovery) 61 74 74 72 69 62 75 74 65 73 5f 74 6f 70 69 63 22 3a 22 7e attributes_topic":"~ 2019-10-10 06:56:48.648 (MQTT Discovery) 48 41 53 53 5f 53 54 41 54 45 22 2c 22 75 6e 69 74 5f 6f 66 HASS_STATE","unit_of 2019-10-10 06:56:48.648 (MQTT Discovery) 5f 6d 65 61 73 22 3a 22 20 22 2c 22 76 61 6c 5f 74 70 6c 22 _meas":".","val_tpl" 2019-10-10 06:56:48.648 (MQTT Discovery) 3a 22 7b 7b 76 61 6c 75 65 5f 6a 73 6f 6e 5b 27 52 53 53 49 :"{{value_json['RSSI 2019-10-10 06:56:48.648 (MQTT Discovery) 27 5d 7d 7d 22 2c 22 75 6e 69 71 5f 69 64 22 3a 22 44 33 43 ']}}","uniq_id":"D3C 2019-10-10 06:56:48.648 (MQTT Discovery) 34 31 32 5f 73 74 61 74 75 73 22 2c 22 64 65 76 69 63 65 22 412_status","device" 2019-10-10 06:56:48.648 (MQTT Discovery) 3a 7b 22 69 64 65 6e 74 69 66 69 65 72 73 22 3a 5b 22 44 33 :{"identifiers":["D3 2019-10-10 06:56:48.649 (MQTT Discovery) 43 34 31 32 22 5d 2c 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 C412"],"name":"Sonof 2019-10-10 06:56:48.649 (MQTT Discovery) 66 22 2c 22 6d 6f 64 65 6c 22 3a 22 4c 53 43 2d 46 69 6c 61 f","model":"LSC-Fila 2019-10-10 06:56:48.649 (MQTT Discovery) 6d 2d 42 69 67 22 2c 22 73 77 5f 76 65 72 73 69 6f 6e 22 3a m-Big","sw_version": 2019-10-10 06:56:48.649 (MQTT Discovery) 22 36 2e 36 2e 30 28 72 65 6c 65 61 73 65 2d 73 6f 6e 6f 66 "6.6.0(release-sonof 2019-10-10 06:56:48.649 (MQTT Discovery) 66 29 22 2c 22 6d 61 6e 75 66 61 63 74 75 72 65 72 22 3a 22 f)","manufacturer":" 2019-10-10 06:56:48.649 (MQTT Discovery) 54 61 73 6d 6f 74 61 22 7d 2c 22 7e 22 3a 22 73 6f 6e 6f 66 Tasmota"},"~":"sonof 2019-10-10 06:56:48.649 (MQTT Discovery) 66 5f 44 33 43 34 31 32 2f 74 65 6c 65 2f 22 7d .. .. .. .. f_D3C412/tele/"} 2019-10-10 06:56:48.649 (MQTT Discovery) onMQTTPublish: homeassistant/sensor/D3C412_status/config:b'{"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json[\'RSSI\']}}","uniq_id":"D3C412_status","device":{"identifiers":["D3C412"],"name":"Sonoff","model":"LSC-Filam-Big","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_D3C412/tele/"}' 2019-10-10 06:56:48.650 (MQTT Discovery) updateDeviceSettings devicename: 'D3C412_status' devicetype: 'sensor' config: '{'value_template': "{{value_json['RSSI']}}", 'device': {'identifiers': ['D3C412'], 'model': 'LSC-Filam-Big', 'manufacturer': 'Tasmota', 'sw_version': '6.6.0(release-sonoff)', 'name': 'Sonoff'}, 'state_topic': 'sonoff_D3C412/tele/HASS_STATE', 'unique_id': 'D3C412_status', 'availability_topic': 'sonoff_D3C412/tele/LWT', 'payload_not_available': 'Offline', 'payload_available': 'Online', 'unit_of_measurement': ' ', 'json_attributes_topic': 'sonoff_D3C412/tele/HASS_STATE', 'name': 'Sonoff status'}' 2019-10-10 06:56:48.650 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'D3C412_status' config: '' topic: '' 2019-10-10 06:56:48.650 (MQTT Discovery) getDevices found 0 devices 2019-10-10 06:56:48.650 (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'D3C412_status' 2019-10-10 06:56:48.650 (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 ```

{"NAME":"LSC-RGBW-Strip","GPIO":[51,0,0,0,37,0,0,0,38,40,39,0,0],"FLAG":15,"BASE":18}

Tasmota ``` 06:09:07 CMD: setoption19 1 06:09:07 MQT: sonoff_06C777/stat/RESULT = {"SetOption19":"ON"} 06:09:08 MQT: homeassistant/switch/06C777_RL_1/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_1/config = {"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"06C777_LI_1","device":{"identifiers":["06C777"]},"~":"sonoff_06C777/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","rgb_cmd_t":"~cmnd/Color2","rgb_stat_t":"~tele/STATE"," ... (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_2/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_2/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_3/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_3/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_4/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_4/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_5/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_5/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_6/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_6/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_7/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_7/config = (retained) 06:09:08 MQT: homeassistant/light/06C777_LI_8/config = (retained) 06:09:08 MQT: homeassistant/switch/06C777_RL_8/config = (retained) 06:09:08 MQT: homeassistant/sensor/06C777_status/config = {"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json['RSSI']}}","uniq_id":"06C777_status","device":{"identifiers":["06C777"],"name":"Sonoff","model":"LSC-RGBW-Strip","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_06C777/tele/"} (retained) ```
Domoticz ``` 2019-10-10 07:08:56.587 (MQTT Discovery) Heartbeating... 2019-10-10 07:08:56.587 (MQTT Discovery) MqttClient::Ping 2019-10-10 07:08:56.587 (MQTT Discovery) Sending 2 bytes of data 2019-10-10 07:08:56.588 (MQTT Discovery) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-10 07:08:56.638 (MQTT Discovery) Received 2 bytes of data 2019-10-10 07:08:56.638 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-10 07:09:08.748 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.748 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 32 2f 63 6f 6e 66 ght/06C777_LI_2/conf 2019-10-10 07:09:08.748 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.748 (MQTT Discovery) Received 43 bytes of data 2019-10-10 07:09:08.749 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.749 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 32 2f 63 6f 6e itch/06C777_RL_2/con 2019-10-10 07:09:08.749 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 07:09:08.749 (MQTT Discovery) Received 42 bytes of data 2019-10-10 07:09:08.750 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.750 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 33 2f 63 6f 6e 66 ght/06C777_LI_3/conf 2019-10-10 07:09:08.750 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.750 (MQTT Discovery) Received 43 bytes of data 2019-10-10 07:09:08.750 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.750 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 33 2f 63 6f 6e itch/06C777_RL_3/con 2019-10-10 07:09:08.750 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 07:09:08.751 (MQTT Discovery) Received 42 bytes of data 2019-10-10 07:09:08.751 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.751 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 34 2f 63 6f 6e 66 ght/06C777_LI_4/conf 2019-10-10 07:09:08.751 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.751 (MQTT Discovery) Received 43 bytes of data 2019-10-10 07:09:08.751 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.751 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 34 2f 63 6f 6e itch/06C777_RL_4/con 2019-10-10 07:09:08.752 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 07:09:08.752 (MQTT Discovery) Received 42 bytes of data 2019-10-10 07:09:08.752 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.752 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 35 2f 63 6f 6e 66 ght/06C777_LI_5/conf 2019-10-10 07:09:08.752 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.752 (MQTT Discovery) Received 43 bytes of data 2019-10-10 07:09:08.752 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.752 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 35 2f 63 6f 6e itch/06C777_RL_5/con 2019-10-10 07:09:08.752 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 07:09:08.752 (MQTT Discovery) Received 42 bytes of data 2019-10-10 07:09:08.753 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.753 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 36 2f 63 6f 6e 66 ght/06C777_LI_6/conf 2019-10-10 07:09:08.753 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.753 (MQTT Discovery) Received 43 bytes of data 2019-10-10 07:09:08.753 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.753 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 36 2f 63 6f 6e itch/06C777_RL_6/con 2019-10-10 07:09:08.753 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-10 07:09:08.754 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_1/config:b'{"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"06C777_LI_1","device":{"identifiers":["06C777"]},"~":"sonoff_06C777/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","rgb_cmd_t":"~cmnd/Color2","rgb_stat_t":"~tele/STATE","rgb_val_tpl":"{{value_json.Color.split(\',\')[0:3]|join(\',\')}}","fx_cmd_t":"~cmnd/Scheme","fx_stat_t":"~tele/STATE","fx_val_tpl":"{{value_json.Scheme}}","fx_list":["0","1","2","3","4"],"whit_val_cmd_t":"~cmnd/White","whit_val_stat_t":"~tele/STATE","white_value_scale":100,"whit_val_tpl":"{{value_json.Channel[3]}}"}' 2019-10-10 07:09:08.756 (MQTT Discovery) updateDeviceSettings devicename: '06C777_LI_1' devicetype: 'light' config: '{'payload_available': 'Online', 'brightness_value_template': '{{value_json.Dimmer}}', 'name': 'Sonoff', 'rgb_command_topic': 'sonoff_06C777/cmnd/Color2', 'brightness_command_topic': 'sonoff_06C777/cmnd/Dimmer', 'effect_command_topic': 'sonoff_06C777/cmnd/Scheme', 'unique_id': '06C777_LI_1', 'white_value_command_topic': 'sonoff_06C777/cmnd/White', 'rgb_state_topic': 'sonoff_06C777/tele/STATE', 'on_command_type': 'brightness', 'value_template': '{{value_json.POWER}}', 'effect_state_topic': 'sonoff_06C777/tele/STATE', 'brightness_scale': 100, 'rgb_value_template': "{{value_json.Color.split(',')[0:3]|join(',')}}", 'availability_topic': 'sonoff_06C777/tele/LWT', 'white_value_scale': 100, 'payload_off': 'OFF', 'state_topic': 'sonoff_06C777/tele/STATE', 'effect_value_template': '{{value_json.Scheme}}', 'brightness_state_topic': 'sonoff_06C777/tele/STATE', 'payload_on': 'ON', 'white_value_template': '{{value_json.Channel[3]}}', 'device': {'identifiers': ['06C777']}, 'command_topic': 'sonoff_06C777/cmnd/POWER', 'effect_list': ['0', '1', '2', '3', '4'], 'payload_not_available': 'Offline', 'white_value_state_topic': 'sonoff_06C777/tele/STATE'}' 2019-10-10 07:09:08.756 (MQTT Discovery) devicetype == 'light' 2019-10-10 07:09:08.756 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '06C777_LI_1' config: '' topic: '' 2019-10-10 07:09:08.756 (MQTT Discovery) getDevices found 1 devices 2019-10-10 07:09:08.756 (MQTT Discovery) isTasmota: False 2019-10-10 07:09:08.758 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_2/config:b'' 2019-10-10 07:09:08.758 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_2/config:b'' 2019-10-10 07:09:08.759 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_3/config:b'' 2019-10-10 07:09:08.759 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_3/config:b'' 2019-10-10 07:09:08.759 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_4/config:b'' 2019-10-10 07:09:08.760 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_4/config:b'' 2019-10-10 07:09:08.761 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_5/config:b'' 2019-10-10 07:09:08.761 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_5/config:b'' 2019-10-10 07:09:08.762 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_6/config:b'' 2019-10-10 07:09:08.762 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_6/config:b'' 2019-10-10 07:09:08.812 (MQTT Discovery) Received 42 bytes of data 2019-10-10 07:09:08.813 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-10 07:09:08.813 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 37 2f 63 6f 6e 66 ght/06C777_LI_7/conf 2019-10-10 07:09:08.813 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-10 07:09:08.813 (MQTT Discovery) Received 128 bytes of data 2019-10-10 07:09:08.813 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-10 07:09:08.813 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 37 2f 63 6f 6e itch/06C777_RL_7/con 2019-10-10 07:09:08.813 (MQTT Discovery) 66 69 67 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 fig0(.&homeassistant 2019-10-10 07:09:08.813 (MQTT Discovery) 2f 6c 69 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 38 2f 63 /light/06C777_LI_8/c 2019-10-10 07:09:08.813 (MQTT Discovery) 6f 6e 66 69 67 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 onfig0).'homeassista 2019-10-10 07:09:08.814 (MQTT Discovery) 6e 74 2f 73 77 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f nt/switch/06C777_RL_ 2019-10-10 07:09:08.814 (MQTT Discovery) 38 2f 63 6f 6e 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. 8/config 2019-10-10 07:09:08.814 (MQTT Discovery) Received 437 bytes of data 2019-10-10 07:09:08.814 (MQTT Discovery) 30 b2 03 00 29 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 0�..)homeassistant/s 2019-10-10 07:09:08.814 (MQTT Discovery) 65 6e 73 6f 72 2f 30 36 43 37 37 37 5f 73 74 61 74 75 73 2f ensor/06C777_status/ 2019-10-10 07:09:08.814 (MQTT Discovery) 63 6f 6e 66 69 67 7b 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 config{"name":"Sonof 2019-10-10 07:09:08.814 (MQTT Discovery) 66 20 73 74 61 74 75 73 22 2c 22 73 74 61 74 5f 74 22 3a 22 f.status","stat_t":" 2019-10-10 07:09:08.814 (MQTT Discovery) 7e 48 41 53 53 5f 53 54 41 54 45 22 2c 22 61 76 74 79 5f 74 ~HASS_STATE","avty_t 2019-10-10 07:09:08.814 (MQTT Discovery) 22 3a 22 7e 4c 57 54 22 2c 22 70 6c 5f 61 76 61 69 6c 22 3a ":"~LWT","pl_avail": 2019-10-10 07:09:08.815 (MQTT Discovery) 22 4f 6e 6c 69 6e 65 22 2c 22 70 6c 5f 6e 6f 74 5f 61 76 61 "Online","pl_not_ava 2019-10-10 07:09:08.815 (MQTT Discovery) 69 6c 22 3a 22 4f 66 66 6c 69 6e 65 22 2c 22 6a 73 6f 6e 5f il":"Offline","json_ 2019-10-10 07:09:08.815 (MQTT Discovery) 61 74 74 72 69 62 75 74 65 73 5f 74 6f 70 69 63 22 3a 22 7e attributes_topic":"~ 2019-10-10 07:09:08.815 (MQTT Discovery) 48 41 53 53 5f 53 54 41 54 45 22 2c 22 75 6e 69 74 5f 6f 66 HASS_STATE","unit_of 2019-10-10 07:09:08.815 (MQTT Discovery) 5f 6d 65 61 73 22 3a 22 20 22 2c 22 76 61 6c 5f 74 70 6c 22 _meas":".","val_tpl" 2019-10-10 07:09:08.815 (MQTT Discovery) 3a 22 7b 7b 76 61 6c 75 65 5f 6a 73 6f 6e 5b 27 52 53 53 49 :"{{value_json['RSSI 2019-10-10 07:09:08.815 (MQTT Discovery) 27 5d 7d 7d 22 2c 22 75 6e 69 71 5f 69 64 22 3a 22 30 36 43 ']}}","uniq_id":"06C 2019-10-10 07:09:08.815 (MQTT Discovery) 37 37 37 5f 73 74 61 74 75 73 22 2c 22 64 65 76 69 63 65 22 777_status","device" 2019-10-10 07:09:08.815 (MQTT Discovery) 3a 7b 22 69 64 65 6e 74 69 66 69 65 72 73 22 3a 5b 22 30 36 :{"identifiers":["06 2019-10-10 07:09:08.815 (MQTT Discovery) 43 37 37 37 22 5d 2c 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 C777"],"name":"Sonof 2019-10-10 07:09:08.816 (MQTT Discovery) 66 22 2c 22 6d 6f 64 65 6c 22 3a 22 4c 53 43 2d 52 47 42 57 f","model":"LSC-RGBW 2019-10-10 07:09:08.816 (MQTT Discovery) 2d 53 74 72 69 70 22 2c 22 73 77 5f 76 65 72 73 69 6f 6e 22 -Strip","sw_version" 2019-10-10 07:09:08.816 (MQTT Discovery) 3a 22 36 2e 36 2e 30 28 72 65 6c 65 61 73 65 2d 73 6f 6e 6f :"6.6.0(release-sono 2019-10-10 07:09:08.816 (MQTT Discovery) 66 66 29 22 2c 22 6d 61 6e 75 66 61 63 74 75 72 65 72 22 3a ff)","manufacturer": 2019-10-10 07:09:08.816 (MQTT Discovery) 22 54 61 73 6d 6f 74 61 22 7d 2c 22 7e 22 3a 22 73 6f 6e 6f "Tasmota"},"~":"sono 2019-10-10 07:09:08.816 (MQTT Discovery) 66 66 5f 30 36 43 37 37 37 2f 74 65 6c 65 2f 22 7d .. .. .. ff_06C777/tele/"} 2019-10-10 07:09:08.817 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_7/config:b'' 2019-10-10 07:09:08.817 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_7/config:b'' 2019-10-10 07:09:08.818 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_8/config:b'' 2019-10-10 07:09:08.818 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_8/config:b'' 2019-10-10 07:09:08.818 (MQTT Discovery) onMQTTPublish: homeassistant/sensor/06C777_status/config:b'{"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json[\'RSSI\']}}","uniq_id":"06C777_status","device":{"identifiers":["06C777"],"name":"Sonoff","model":"LSC-RGBW-Strip","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_06C777/tele/"}' 2019-10-10 07:09:08.819 (MQTT Discovery) updateDeviceSettings devicename: '06C777_status' devicetype: 'sensor' config: '{'value_template': "{{value_json['RSSI']}}", 'device': {'identifiers': ['06C777'], 'model': 'LSC-RGBW-Strip', 'manufacturer': 'Tasmota', 'sw_version': '6.6.0(release-sonoff)', 'name': 'Sonoff'}, 'state_topic': 'sonoff_06C777/tele/HASS_STATE', 'unique_id': '06C777_status', 'availability_topic': 'sonoff_06C777/tele/LWT', 'payload_not_available': 'Offline', 'payload_available': 'Online', 'unit_of_measurement': ' ', 'json_attributes_topic': 'sonoff_06C777/tele/HASS_STATE', 'name': 'Sonoff status'}' 2019-10-10 07:09:08.819 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '06C777_status' config: '' topic: '' 2019-10-10 07:09:08.820 (MQTT Discovery) getDevices found 0 devices 2019-10-10 07:09:08.820 (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '06C777_status' 2019-10-10 07:09:08.820 (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 ```
emontnemery commented 4 years ago

Thanks for the log!

Can you please try this version of the plugin: https://raw.githubusercontent.com/emontnemery/domoticz_mqtt_discovery/259b5cbdcd6d3679f57beacb6eddcdfa36265184/plugin.py

Xenomes commented 4 years ago

Tested the version there the outcome: The Bulbs are now WW, but the brightness control is react strange 0% is not total dim and about 30% is full brightness, CWWW is not react at all.

Log Domoticz ``` 2019-10-11 06:14:13.450 (MQTT Discovery) Heartbeating... 2019-10-11 06:14:13.450 (MQTT Discovery) MqttClient::Ping 2019-10-11 06:14:13.450 (MQTT Discovery) Sending 2 bytes of data 2019-10-11 06:14:13.450 (MQTT Discovery) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-11 06:14:13.501 (MQTT Discovery) Received 2 bytes of data 2019-10-11 06:14:13.501 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-11 06:14:21.524 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:14:21.524 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:14:21.524 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 34 2f 63 6f 6e 66 ght/D3C412_LI_4/conf 2019-10-11 06:14:21.524 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:14:21.524 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:14:21.525 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:14:21.525 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 34 2f 63 6f 6e itch/D3C412_RL_4/con 2019-10-11 06:14:21.525 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:14:21.525 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:14:21.525 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:14:21.525 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 35 2f 63 6f 6e 66 ght/D3C412_LI_5/conf 2019-10-11 06:14:21.525 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:14:21.526 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_1/config:b'' 2019-10-11 06:14:21.527 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_1/config:b'{"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"D3C412_LI_1","device":{"identifiers":["D3C412"]},"~":"sonoff_D3C412/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","clr_temp_cmd_t":"~cmnd/CT","clr_temp_stat_t":"~tele/STATE","clr_temp_val_tpl":"{{value_json.CT}}"}' 2019-10-11 06:14:21.528 (MQTT Discovery) updateDeviceSettings devicename: 'D3C412_LI_1' devicetype: 'light' config: '{'availability_topic': 'sonoff_D3C412/tele/LWT', 'unique_id': 'D3C412_LI_1', 'color_temp_state_topic': 'sonoff_D3C412/tele/STATE', 'value_template': '{{value_json.POWER}}', 'color_temp_value_template': '{{value_json.CT}}', 'payload_available': 'Online', 'payload_off': 'OFF', 'brightness_scale': 100, 'brightness_state_topic': 'sonoff_D3C412/tele/STATE', 'color_temp_command_topic': 'sonoff_D3C412/cmnd/CT', 'brightness_value_template': '{{value_json.Dimmer}}', 'state_topic': 'sonoff_D3C412/tele/STATE', 'on_command_type': 'brightness', 'name': 'Sonoff', 'payload_not_available': 'Offline', 'command_topic': 'sonoff_D3C412/cmnd/POWER', 'device': {'identifiers': ['D3C412']}, 'brightness_command_topic': 'sonoff_D3C412/cmnd/Dimmer', 'payload_on': 'ON'}' 2019-10-11 06:14:21.528 (MQTT Discovery) devicetype == 'light' 2019-10-11 06:14:21.528 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'D3C412_LI_1' config: '' topic: '' 2019-10-11 06:14:21.528 (MQTT Discovery) getDevices found 1 devices 2019-10-11 06:14:21.528 (MQTT Discovery) isTasmota: False 2019-10-11 06:14:21.529 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_2/config:b'' 2019-10-11 06:14:21.530 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_2/config:b'' 2019-10-11 06:14:21.530 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_3/config:b'' 2019-10-11 06:14:21.531 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_3/config:b'' 2019-10-11 06:14:21.532 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_4/config:b'' 2019-10-11 06:14:21.532 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_4/config:b'' 2019-10-11 06:14:21.532 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_5/config:b'' 2019-10-11 06:14:21.583 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:14:21.583 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:14:21.583 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 35 2f 63 6f 6e itch/D3C412_RL_5/con 2019-10-11 06:14:21.583 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:14:21.584 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:14:21.584 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:14:21.584 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 36 2f 63 6f 6e 66 ght/D3C412_LI_6/conf 2019-10-11 06:14:21.584 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:14:21.584 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:14:21.584 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:14:21.584 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 36 2f 63 6f 6e itch/D3C412_RL_6/con 2019-10-11 06:14:21.584 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:14:21.585 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:14:21.585 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:14:21.585 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 37 2f 63 6f 6e 66 ght/D3C412_LI_7/conf 2019-10-11 06:14:21.585 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:14:21.585 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:14:21.585 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:14:21.585 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 37 2f 63 6f 6e itch/D3C412_RL_7/con 2019-10-11 06:14:21.585 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:14:21.586 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:14:21.586 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:14:21.586 (MQTT Discovery) 67 68 74 2f 44 33 43 34 31 32 5f 4c 49 5f 38 2f 63 6f 6e 66 ght/D3C412_LI_8/conf 2019-10-11 06:14:21.586 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:14:21.586 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:14:21.586 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:14:21.586 (MQTT Discovery) 69 74 63 68 2f 44 33 43 34 31 32 5f 52 4c 5f 38 2f 63 6f 6e itch/D3C412_RL_8/con 2019-10-11 06:14:21.586 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:14:21.586 (MQTT Discovery) Received 436 bytes of data 2019-10-11 06:14:21.587 (MQTT Discovery) 30 b1 03 00 29 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 0�..)homeassistant/s 2019-10-11 06:14:21.587 (MQTT Discovery) 65 6e 73 6f 72 2f 44 33 43 34 31 32 5f 73 74 61 74 75 73 2f ensor/D3C412_status/ 2019-10-11 06:14:21.587 (MQTT Discovery) 63 6f 6e 66 69 67 7b 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 config{"name":"Sonof 2019-10-11 06:14:21.587 (MQTT Discovery) 66 20 73 74 61 74 75 73 22 2c 22 73 74 61 74 5f 74 22 3a 22 f.status","stat_t":" 2019-10-11 06:14:21.587 (MQTT Discovery) 7e 48 41 53 53 5f 53 54 41 54 45 22 2c 22 61 76 74 79 5f 74 ~HASS_STATE","avty_t 2019-10-11 06:14:21.587 (MQTT Discovery) 22 3a 22 7e 4c 57 54 22 2c 22 70 6c 5f 61 76 61 69 6c 22 3a ":"~LWT","pl_avail": 2019-10-11 06:14:21.587 (MQTT Discovery) 22 4f 6e 6c 69 6e 65 22 2c 22 70 6c 5f 6e 6f 74 5f 61 76 61 "Online","pl_not_ava 2019-10-11 06:14:21.587 (MQTT Discovery) 69 6c 22 3a 22 4f 66 66 6c 69 6e 65 22 2c 22 6a 73 6f 6e 5f il":"Offline","json_ 2019-10-11 06:14:21.587 (MQTT Discovery) 61 74 74 72 69 62 75 74 65 73 5f 74 6f 70 69 63 22 3a 22 7e attributes_topic":"~ 2019-10-11 06:14:21.588 (MQTT Discovery) 48 41 53 53 5f 53 54 41 54 45 22 2c 22 75 6e 69 74 5f 6f 66 HASS_STATE","unit_of 2019-10-11 06:14:21.588 (MQTT Discovery) 5f 6d 65 61 73 22 3a 22 20 22 2c 22 76 61 6c 5f 74 70 6c 22 _meas":".","val_tpl" 2019-10-11 06:14:21.588 (MQTT Discovery) 3a 22 7b 7b 76 61 6c 75 65 5f 6a 73 6f 6e 5b 27 52 53 53 49 :"{{value_json['RSSI 2019-10-11 06:14:21.588 (MQTT Discovery) 27 5d 7d 7d 22 2c 22 75 6e 69 71 5f 69 64 22 3a 22 44 33 43 ']}}","uniq_id":"D3C 2019-10-11 06:14:21.588 (MQTT Discovery) 34 31 32 5f 73 74 61 74 75 73 22 2c 22 64 65 76 69 63 65 22 412_status","device" 2019-10-11 06:14:21.588 (MQTT Discovery) 3a 7b 22 69 64 65 6e 74 69 66 69 65 72 73 22 3a 5b 22 44 33 :{"identifiers":["D3 2019-10-11 06:14:21.588 (MQTT Discovery) 43 34 31 32 22 5d 2c 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 C412"],"name":"Sonof 2019-10-11 06:14:21.588 (MQTT Discovery) 66 22 2c 22 6d 6f 64 65 6c 22 3a 22 4c 53 43 2d 46 69 6c 61 f","model":"LSC-Fila 2019-10-11 06:14:21.589 (MQTT Discovery) 6d 2d 42 69 67 22 2c 22 73 77 5f 76 65 72 73 69 6f 6e 22 3a m-Big","sw_version": 2019-10-11 06:14:21.589 (MQTT Discovery) 22 36 2e 36 2e 30 28 72 65 6c 65 61 73 65 2d 73 6f 6e 6f 66 "6.6.0(release-sonof 2019-10-11 06:14:21.589 (MQTT Discovery) 66 29 22 2c 22 6d 61 6e 75 66 61 63 74 75 72 65 72 22 3a 22 f)","manufacturer":" 2019-10-11 06:14:21.589 (MQTT Discovery) 54 61 73 6d 6f 74 61 22 7d 2c 22 7e 22 3a 22 73 6f 6e 6f 66 Tasmota"},"~":"sonof 2019-10-11 06:14:21.589 (MQTT Discovery) 66 5f 44 33 43 34 31 32 2f 74 65 6c 65 2f 22 7d .. .. .. .. f_D3C412/tele/"} 2019-10-11 06:14:21.590 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_5/config:b'' 2019-10-11 06:14:21.590 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_6/config:b'' 2019-10-11 06:14:21.591 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_6/config:b'' 2019-10-11 06:14:21.591 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_7/config:b'' 2019-10-11 06:14:21.592 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_7/config:b'' 2019-10-11 06:14:21.592 (MQTT Discovery) onMQTTPublish: homeassistant/light/D3C412_LI_8/config:b'' 2019-10-11 06:14:21.593 (MQTT Discovery) onMQTTPublish: homeassistant/switch/D3C412_RL_8/config:b'' 2019-10-11 06:14:21.593 (MQTT Discovery) onMQTTPublish: homeassistant/sensor/D3C412_status/config:b'{"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json[\'RSSI\']}}","uniq_id":"D3C412_status","device":{"identifiers":["D3C412"],"name":"Sonoff","model":"LSC-Filam-Big","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_D3C412/tele/"}' 2019-10-11 06:14:21.594 (MQTT Discovery) updateDeviceSettings devicename: 'D3C412_status' devicetype: 'sensor' config: '{'availability_topic': 'sonoff_D3C412/tele/LWT', 'unique_id': 'D3C412_status', 'value_template': "{{value_json['RSSI']}}", 'payload_not_available': 'Offline', 'unit_of_measurement': ' ', 'device': {'model': 'LSC-Filam-Big', 'manufacturer': 'Tasmota', 'sw_version': '6.6.0(release-sonoff)', 'name': 'Sonoff', 'identifiers': ['D3C412']}, 'json_attributes_topic': 'sonoff_D3C412/tele/HASS_STATE', 'payload_available': 'Online', 'state_topic': 'sonoff_D3C412/tele/HASS_STATE', 'name': 'Sonoff status'}' 2019-10-11 06:14:21.594 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'D3C412_status' config: '' topic: '' 2019-10-11 06:14:21.594 (MQTT Discovery) getDevices found 0 devices 2019-10-11 06:14:21.595 (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'D3C412_status' 2019-10-11 06:14:21.595 (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 2019-10-11 06:14:23.412 (MQTT Discovery) Heartbeating... 2019-10-11 06:14:23.413 (MQTT Discovery) MqttClient::Ping 2019-10-11 06:14:23.413 (MQTT Discovery) Sending 2 bytes of data 2019-10-11 06:14:23.413 (MQTT Discovery) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-11 06:14:23.463 (MQTT Discovery) Received 2 bytes of data 2019-10-11 06:14:23.464 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. ```

The RGBW led strip is detected as a RGBWZ Colour mode works, White mode dim don't work.

Log Domoticz ``` 2019-10-11 06:01:22.778 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.778 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 32 2f 63 6f 6e itch/06C777_RL_2/con 2019-10-11 06:01:22.778 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.778 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.778 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.778 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 33 2f 63 6f 6e 66 ght/06C777_LI_3/conf 2019-10-11 06:01:22.778 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.778 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.779 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.779 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 33 2f 63 6f 6e itch/06C777_RL_3/con 2019-10-11 06:01:22.779 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.779 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.779 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.779 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 34 2f 63 6f 6e 66 ght/06C777_LI_4/conf 2019-10-11 06:01:22.779 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.779 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.779 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.779 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 34 2f 63 6f 6e itch/06C777_RL_4/con 2019-10-11 06:01:22.779 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.779 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.779 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.779 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 35 2f 63 6f 6e 66 ght/06C777_LI_5/conf 2019-10-11 06:01:22.779 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.779 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.779 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.779 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 35 2f 63 6f 6e itch/06C777_RL_5/con 2019-10-11 06:01:22.779 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.780 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_1/config:b'{"name":"Sonoff","cmd_t":"~cmnd/POWER","stat_t":"~tele/STATE","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","avty_t":"~tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"06C777_LI_1","device":{"identifiers":["06C777"]},"~":"sonoff_06C777/","bri_cmd_t":"~cmnd/Dimmer","bri_stat_t":"~tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","rgb_cmd_t":"~cmnd/Color2","rgb_stat_t":"~tele/STATE","rgb_val_tpl":"{{value_json.Color.split(\',\')[0:3]|join(\',\')}}","fx_cmd_t":"~cmnd/Scheme","fx_stat_t":"~tele/STATE","fx_val_tpl":"{{value_json.Scheme}}","fx_list":["0","1","2","3","4"],"whit_val_cmd_t":"~cmnd/White","whit_val_stat_t":"~tele/STATE","white_value_scale":100,"whit_val_tpl":"{{value_json.Channel[3]}}"}' 2019-10-11 06:01:22.781 (MQTT Discovery) updateDeviceSettings devicename: '06C777_LI_1' devicetype: 'light' config: '{'white_value_template': '{{value_json.Channel[3]}}', 'payload_off': 'OFF', 'brightness_scale': 100, 'brightness_value_template': '{{value_json.Dimmer}}', 'rgb_state_topic': 'sonoff_06C777/tele/STATE', 'white_value_state_topic': 'sonoff_06C777/tele/STATE', 'on_command_type': 'brightness', 'effect_state_topic': 'sonoff_06C777/tele/STATE', 'command_topic': 'sonoff_06C777/cmnd/POWER', 'brightness_command_topic': 'sonoff_06C777/cmnd/Dimmer', 'state_topic': 'sonoff_06C777/tele/STATE', 'rgb_value_template': "{{value_json.Color.split(',')[0:3]|join(',')}}", 'rgb_command_topic': 'sonoff_06C777/cmnd/Color2', 'effect_command_topic': 'sonoff_06C777/cmnd/Scheme', 'payload_on': 'ON', 'availability_topic': 'sonoff_06C777/tele/LWT', 'unique_id': '06C777_LI_1', 'value_template': '{{value_json.POWER}}', 'white_value_scale': 100, 'payload_available': 'Online', 'brightness_state_topic': 'sonoff_06C777/tele/STATE', 'white_value_command_topic': 'sonoff_06C777/cmnd/White', 'name': 'Sonoff', 'payload_not_available': 'Offline', 'device': {'identifiers': ['06C777']}, 'effect_list': ['0', '1', '2', '3', '4'], 'effect_value_template': '{{value_json.Scheme}}'}' 2019-10-11 06:01:22.781 (MQTT Discovery) devicetype == 'light' 2019-10-11 06:01:22.781 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '06C777_LI_1' config: '' topic: '' 2019-10-11 06:01:22.781 (MQTT Discovery) getDevices found 1 devices 2019-10-11 06:01:22.781 (MQTT Discovery) isTasmota: False 2019-10-11 06:01:22.781 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_2/config:b'' 2019-10-11 06:01:22.782 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_2/config:b'' 2019-10-11 06:01:22.782 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_3/config:b'' 2019-10-11 06:01:22.782 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_3/config:b'' 2019-10-11 06:01:22.782 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_4/config:b'' 2019-10-11 06:01:22.783 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_4/config:b'' 2019-10-11 06:01:22.783 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_5/config:b'' 2019-10-11 06:01:22.783 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_5/config:b'' 2019-10-11 06:01:22.833 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.834 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.834 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 36 2f 63 6f 6e 66 ght/06C777_LI_6/conf 2019-10-11 06:01:22.834 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.834 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.834 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.834 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 36 2f 63 6f 6e itch/06C777_RL_6/con 2019-10-11 06:01:22.834 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.834 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.834 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.834 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 37 2f 63 6f 6e 66 ght/06C777_LI_7/conf 2019-10-11 06:01:22.834 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.834 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.834 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.834 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 37 2f 63 6f 6e itch/06C777_RL_7/con 2019-10-11 06:01:22.834 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.834 (MQTT Discovery) Received 42 bytes of data 2019-10-11 06:01:22.835 (MQTT Discovery) 30 28 00 26 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 6c 69 0(.&homeassistant/li 2019-10-11 06:01:22.835 (MQTT Discovery) 67 68 74 2f 30 36 43 37 37 37 5f 4c 49 5f 38 2f 63 6f 6e 66 ght/06C777_LI_8/conf 2019-10-11 06:01:22.835 (MQTT Discovery) 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ig 2019-10-11 06:01:22.835 (MQTT Discovery) Received 43 bytes of data 2019-10-11 06:01:22.835 (MQTT Discovery) 30 29 00 27 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 77 0).'homeassistant/sw 2019-10-11 06:01:22.835 (MQTT Discovery) 69 74 63 68 2f 30 36 43 37 37 37 5f 52 4c 5f 38 2f 63 6f 6e itch/06C777_RL_8/con 2019-10-11 06:01:22.835 (MQTT Discovery) 66 69 67 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. fig 2019-10-11 06:01:22.836 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_6/config:b'' 2019-10-11 06:01:22.836 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_6/config:b'' 2019-10-11 06:01:22.836 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_7/config:b'' 2019-10-11 06:01:22.836 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_7/config:b'' 2019-10-11 06:01:22.837 (MQTT Discovery) onMQTTPublish: homeassistant/light/06C777_LI_8/config:b'' 2019-10-11 06:01:22.837 (MQTT Discovery) onMQTTPublish: homeassistant/switch/06C777_RL_8/config:b'' 2019-10-11 06:01:22.887 (MQTT Discovery) Received 437 bytes of data 2019-10-11 06:01:22.887 (MQTT Discovery) 30 b2 03 00 29 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f 73 0�..)homeassistant/s 2019-10-11 06:01:22.887 (MQTT Discovery) 65 6e 73 6f 72 2f 30 36 43 37 37 37 5f 73 74 61 74 75 73 2f ensor/06C777_status/ 2019-10-11 06:01:22.887 (MQTT Discovery) 63 6f 6e 66 69 67 7b 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 config{"name":"Sonof 2019-10-11 06:01:22.887 (MQTT Discovery) 66 20 73 74 61 74 75 73 22 2c 22 73 74 61 74 5f 74 22 3a 22 f.status","stat_t":" 2019-10-11 06:01:22.887 (MQTT Discovery) 7e 48 41 53 53 5f 53 54 41 54 45 22 2c 22 61 76 74 79 5f 74 ~HASS_STATE","avty_t 2019-10-11 06:01:22.887 (MQTT Discovery) 22 3a 22 7e 4c 57 54 22 2c 22 70 6c 5f 61 76 61 69 6c 22 3a ":"~LWT","pl_avail": 2019-10-11 06:01:22.887 (MQTT Discovery) 22 4f 6e 6c 69 6e 65 22 2c 22 70 6c 5f 6e 6f 74 5f 61 76 61 "Online","pl_not_ava 2019-10-11 06:01:22.887 (MQTT Discovery) 69 6c 22 3a 22 4f 66 66 6c 69 6e 65 22 2c 22 6a 73 6f 6e 5f il":"Offline","json_ 2019-10-11 06:01:22.888 (MQTT Discovery) 61 74 74 72 69 62 75 74 65 73 5f 74 6f 70 69 63 22 3a 22 7e attributes_topic":"~ 2019-10-11 06:01:22.888 (MQTT Discovery) 48 41 53 53 5f 53 54 41 54 45 22 2c 22 75 6e 69 74 5f 6f 66 HASS_STATE","unit_of 2019-10-11 06:01:22.888 (MQTT Discovery) 5f 6d 65 61 73 22 3a 22 20 22 2c 22 76 61 6c 5f 74 70 6c 22 _meas":".","val_tpl" 2019-10-11 06:01:22.888 (MQTT Discovery) 3a 22 7b 7b 76 61 6c 75 65 5f 6a 73 6f 6e 5b 27 52 53 53 49 :"{{value_json['RSSI 2019-10-11 06:01:22.888 (MQTT Discovery) 27 5d 7d 7d 22 2c 22 75 6e 69 71 5f 69 64 22 3a 22 30 36 43 ']}}","uniq_id":"06C 2019-10-11 06:01:22.888 (MQTT Discovery) 37 37 37 5f 73 74 61 74 75 73 22 2c 22 64 65 76 69 63 65 22 777_status","device" 2019-10-11 06:01:22.888 (MQTT Discovery) 3a 7b 22 69 64 65 6e 74 69 66 69 65 72 73 22 3a 5b 22 30 36 :{"identifiers":["06 2019-10-11 06:01:22.888 (MQTT Discovery) 43 37 37 37 22 5d 2c 22 6e 61 6d 65 22 3a 22 53 6f 6e 6f 66 C777"],"name":"Sonof 2019-10-11 06:01:22.888 (MQTT Discovery) 66 22 2c 22 6d 6f 64 65 6c 22 3a 22 4c 53 43 2d 52 47 42 57 f","model":"LSC-RGBW 2019-10-11 06:01:22.888 (MQTT Discovery) 2d 53 74 72 69 70 22 2c 22 73 77 5f 76 65 72 73 69 6f 6e 22 -Strip","sw_version" 2019-10-11 06:01:22.888 (MQTT Discovery) 3a 22 36 2e 36 2e 30 28 72 65 6c 65 61 73 65 2d 73 6f 6e 6f :"6.6.0(release-sono 2019-10-11 06:01:22.888 (MQTT Discovery) 66 66 29 22 2c 22 6d 61 6e 75 66 61 63 74 75 72 65 72 22 3a ff)","manufacturer": 2019-10-11 06:01:22.888 (MQTT Discovery) 22 54 61 73 6d 6f 74 61 22 7d 2c 22 7e 22 3a 22 73 6f 6e 6f "Tasmota"},"~":"sono 2019-10-11 06:01:22.888 (MQTT Discovery) 66 66 5f 30 36 43 37 37 37 2f 74 65 6c 65 2f 22 7d .. .. .. ff_06C777/tele/"} 2019-10-11 06:01:22.889 (MQTT Discovery) onMQTTPublish: homeassistant/sensor/06C777_status/config:b'{"name":"Sonoff status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json[\'RSSI\']}}","uniq_id":"06C777_status","device":{"identifiers":["06C777"],"name":"Sonoff","model":"LSC-RGBW-Strip","sw_version":"6.6.0(release-sonoff)","manufacturer":"Tasmota"},"~":"sonoff_06C777/tele/"}' 2019-10-11 06:01:22.889 (MQTT Discovery) updateDeviceSettings devicename: '06C777_status' devicetype: 'sensor' config: '{'availability_topic': 'sonoff_06C777/tele/LWT', 'unique_id': '06C777_status', 'value_template': "{{value_json['RSSI']}}", 'payload_not_available': 'Offline', 'unit_of_measurement': ' ', 'device': {'model': 'LSC-RGBW-Strip', 'manufacturer': 'Tasmota', 'sw_version': '6.6.0(release-sonoff)', 'name': 'Sonoff', 'identifiers': ['06C777']}, 'json_attributes_topic': 'sonoff_06C777/tele/HASS_STATE', 'payload_available': 'Online', 'state_topic': 'sonoff_06C777/tele/HASS_STATE', 'name': 'Sonoff status'}' 2019-10-11 06:01:22.889 (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '06C777_status' config: '' topic: '' 2019-10-11 06:01:22.889 (MQTT Discovery) getDevices found 0 devices 2019-10-11 06:01:22.889 (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '06C777_status' 2019-10-11 06:01:22.889 (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 2019-10-11 06:01:31.879 (MQTT Discovery) Heartbeating... 2019-10-11 06:01:31.879 (MQTT Discovery) MqttClient::Ping 2019-10-11 06:01:31.880 (MQTT Discovery) Sending 2 bytes of data 2019-10-11 06:01:31.880 (MQTT Discovery) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2019-10-11 06:01:31.930 (MQTT Discovery) Received 2 bytes of data 2019-10-11 06:01:31.930 (MQTT Discovery) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. ```
emontnemery commented 4 years ago

Ok, so a little bit of improvement. Can you attach logs where you:

emontnemery commented 4 years ago

Please try this version instead: https://raw.githubusercontent.com/emontnemery/domoticz_mqtt_discovery/5c8e29f3528f08f6f75eec4bb817b9f17650b407/plugin.py

Xenomes commented 4 years ago

Tested the script, WW Bulbs are reacting perfect. What kind of log wants for the RGBW strip?

emontnemery commented 4 years ago

Is there still a problem with RGBW lights?

Xenomes commented 4 years ago

The LED strip is react on white dimming so that is fixed. But is detected as a RGBWZ I don´t know if controller can handle power if both are full on.

emontnemery commented 4 years ago

RGBWZ means controller can handle independent setting of each channel, which is the case for Tasmota. Can you check controller spec if it has a total power rating, normally spec is power for each channel.

Xenomes commented 4 years ago

For color setting is that perfect, Thanks for fixing the control of these devices!