Tasmota: Independent PWM channels (more than one light) via HA automatic discovery

Created on 21 Mar 2020  路  4Comments  路  Source: arendst/Tasmota

Have you looked for this feature in other issues and in the docs?
Yes, didn't find one

Is your feature request related to a problem? Please describe.

This request addresses a limitation of the current Home Assistant MQTT discovery support.

The scenario: A device with more than one independent LED strips, configured via SetOption68 1 as described in https://tasmota.github.io/docs/#/Lights?id=independent-pwm-channels

The result:

grafik

UI and control works as expected, however,

"homeassistant/light/B6DB61_LI_1/config":
{"name":"K眉che Bar-LEDs","stat_t":"B6DB61/tele/STATE","avty_t":"B6DB61/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"B6DB61/cmnd/POWER1","val_tpl":"{{value_json.POWER1}}","pl_off":"OFF","pl_on":"ON","uniq_id":"B6DB61_LI_1","dev":{"ids":["B6DB61"]}}

"homeassistant/light/B6DB61_LI_2/config":
{"name":"K眉che Unterschrank-LEDs","stat_t":"B6DB61/tele/STATE","avty_t":"B6DB61/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"B6DB61/cmnd/POWER2","val_tpl":"{{value_json.POWER2}}","pl_off":"OFF","pl_on":"ON","uniq_id":"B6DB61_LI_2","dev":{"ids":["B6DB61"]},"bri_cmd_t":"B6DB61/cmnd/Dimmer","bri_stat_t":"B6DB61/tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer}}","clr_temp_cmd_t":"B6DB61/cmnd/CT","clr_temp_stat_t":"B6DB61/tele/STATE","clr_temp_val_tpl":"{{value_json.CT}}"}

discovery messages are still sent as if the device was configured with SetOption68 0

Describe the solution you'd like

"homeassistant/light/B6DB61_LI_1/config":
{"name":"K眉che Bar-LEDs","stat_t":"B6DB61/tele/STATE","avty_t":"B6DB61/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"B6DB61/cmnd/POWER1","val_tpl":"{{value_json.POWER1}}","pl_off":"OFF","pl_on":"ON","uniq_id":"B6DB61_LI_1","dev":{"ids":["B6DB61"]},"bri_cmd_t":"B6DB61/cmnd/Dimmer1","bri_stat_t":"B6DB61/tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer1}}"}

"homeassistant/light/B6DB61_LI_2/config":
{"name":"K眉che Unterschrank-LEDs","stat_t":"B6DB61/tele/STATE","avty_t":"B6DB61/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"B6DB61/cmnd/POWER2","val_tpl":"{{value_json.POWER2}}","pl_off":"OFF","pl_on":"ON","uniq_id":"B6DB61_LI_2","dev":{"ids":["B6DB61"]},"bri_cmd_t":"B6DB61/cmnd/Dimmer2","bri_stat_t":"B6DB61/tele/STATE","bri_scl":100,"on_cmd_type":"brightness","bri_val_tpl":"{{value_json.Dimmer2}}"}

"homeassistant/light/B6DB61_LI_3/config": ...

Describe alternatives you've considered

Documentation could capture this limitation

Additional context
Happy to provide more details.

(Please, remember to close the issue when the problem has been addressed)

enhancement

Most helpful comment

On my todo list.

All 4 comments

It's a know issue related to more than one light devices. A solution will take some time.

"Good" to know. Thanks for the answer. You wanna reference and close this issue or keep it for tracking?

Let's keep it for tracking

On my todo list.

Was this page helpful?
0 / 5 - 0 ratings