i got this error while i try to config configuration.yaml to add my “BL602 RGB CONTOLLER”.
light:
- platform: mqtt
name: obl942F8227
rgb_command_template: "{{ '#%02x%02x%02x0000' | format(red, green, blue)}}"
rgb_state_topic: "cmnd/obl942F8227/led_basecolor_rgb"
rgb_command_topic: "cmnd/obl942F8227/led_basecolor_rgb"
command_topic: "cmnd/obl942F8227/led_enableAll"
availability_topic: "obl942F8227/connected"
payload_on: 1
payload_off: 0
brightness_command_topic: "cmnd/obl942F8227/led_dimmer"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
brightness_state_topic: "cmnd/obl942F8227/led_dimmer_get"
- platform: mqtt
name: "obl942F8227 0"
state_topic: "obl942F8227/0/get"
command_topic: "obl942F8227/0/set"
brightness_command_topic: "obl942F8227/0/set"
on_command_type: "brightness"
brightness_scale: 99
qos: 1
payload_on: 99
payload_off: 0
retain: true
optimistic: true
availability_topic: "obl942F8227/connected"
- platform: mqtt
name: "obl942F8227 1"
state_topic: "obl942F8227/1/get"
command_topic: "obl942F8227/1/set"
brightness_command_topic: "obl942F8227/1/set"
on_command_type: "brightness"
brightness_scale: 99
qos: 1
payload_on: 99
payload_off: 0
retain: true
optimistic: true
availability_topic: "obl942F8227/connected"
- platform: mqtt
name: "obl942F8227 2"
state_topic: "obl942F8227/2/get"
command_topic: "obl942F8227/2/set"
brightness_command_topic: "obl942F8227/2/set"
on_command_type: "brightness"
brightness_scale: 99
qos: 1
payload_on: 99
payload_off: 0
retain: true
optimistic: true
availability_topic: "obl942F8227/connected"