Combine a LED controller with separate switch that controls the power for the LED controller into one entity

I have a H801 LED controller (Tasmota/MQTT) connected behind a Tasmota switch so that i can turn on/off the LED controller with the switch and having the LED controller always on (remembers it previous ON-state when powering on with the switch).

I would now like to combine these two in a way to have a new light entity which would combine the Tasmota switch as ON/OFF component and LED color controls to handle dimming, colors etc.

I’ve tried to figure out doing this on MQTT-level, but thought that it probably could be doable in Hassio with scripting? Would appreciate any pointers with this combination of two entities into one.

For the turn on & off services use the switch, for the rest the light.

If you want a MQTT solution, maybe this also helps:

Hi,
tried the Light Templating, but it seems that you can not use two different cmnd topics for the switch and for the RBG-controller? I have managed to get the switch working but not been able to add the second topic for the different LED-controller.
Will next try with MQTT-method by disabling the Tasmota switches actual switch funtion (always on) and just passing the tasmota swtiches switch-topic to the led controller. And then just using the led controller as is, always powered on with mains.

I have the same situation and I am extremely annoying by it. Did you find a solution? Please help me resolve it. I dont use MQTT, I use ZHA and both physical switch and controller are connected using Zigbee SkyConnect. Thanks

Here is the solution i got working.
The QSW is the QuadSwitch that is controlling the main power toward the Led-controller LED4.

This way i can turn on/off the LED-controlled and still have control over dimming and colors with single MovieRoomLED_ -entity.

mqtt:
light:
- name: “MovieRoomLED_”
state_topic: “LSW/stat/QSW2/POWER4”
command_topic: “LSW/cmnd/QSW2/POWER4”
state_value_template: “{{ value_json.POWER }}”
payload_on: “ON”
payload_off: “OFF”
availability_topic: ‘LSW/tele/QSW2/LWT’
payload_available: ‘Online’
payload_not_available: ‘Offline’
brightness_state_topic: “LSW/tele/LED4/STATE”
brightness_command_topic: “LSW/cmnd/LED4/Dimmer”
brightness_scale: 100
brightness_value_template: ‘{{ value_json.Dimmer}}’
rgb_state_topic: “LSW/tele/LED4/STATE”
rgb_command_topic: “LSW/cmnd/LED4/Color”
rgb_value_template: “{{ value_json.Color.split(’,’)[0:3] | join(’,’) }}”

I think you could also use this solution
This way, you could still control the LED controller from the wall switch and do more than just turn on and off.

Yes, similar functionality as with my solution, but with directly grouping the Tasmota devices in device-level. Straightforward solution also, thanks !