Two gang TuYa TS0002_switch_module as light in home assistant

I have successfully set up 1 gang TuYa TS0001_switch_module as lights like this:

"0xa4c138b5d21d492d":
  friendly_name: switch_module.uf_hallway_light
  homeassistant:
    switch:
      type: light
      object_id: light
    light:
      name: UF Hallway Light Switch
      value_template: null
      state_value_template: "{{ value_json.state }}"

I try to set up my TuYa TS0002_switch_module as light in Zigbee2MQTT, but obviously I get a detail wrong.

This was my take in the zigbee2mqtt/devices.yaml config file:


"0xa4c13877abfb27f2":
  friendly_name: switch_module.uf_living-room_lights
  # two gang light switch
  homeassistant:
    switch_left:
      type: light
      object_id: light_left
    light_left:
      name: UF Living Room Light Switch - Left
      value_template: null
      state_value_template: '{{ value_json.state_l1 }}'
    switch_right:
      type: light
      object_id: light_right
    light_right:
      name: UF Living Room Light Switch - Right
      value_template: null
      state_value_template: '{{ value_json.state_l2 }}'

I also tried:

"0xa4c13877abfb27f2":
  friendly_name: switch_module.uf_living-room_lights
  # two gang light switch
  homeassistant:
    switch_left:
      type: light
      object_id: l1
    l1:
      name: UF Living Room Light Switch - Left
      value_template: null
      state_value_template: '{{ value_json.state_l1 }}'
    switch_right:
      type: light
      object_id: l2
    l2:
      name: UF Living Room Light Switch - Right
      value_template: null
      state_value_template: '{{ value_json.state_l2 }}'

But they do not show up in the Overview Dashboard in the light sections.

I am thankful for every pointer where I am wrong here.
Thanks! :slight_smile:

Kindly pushing to top again :slight_smile:
Thanks for taking a look!