I get this error from Visual Studio code for this row:String does not match the pattern of "DEPRECATED^"

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"

What error?

1 Like

String does not match the pattern of “DEPRECATED^”

Next to which line?

Is the VSCode addon up to date?

1 Like

yes its up to date.

I got the same error after upgrading the addon to version 5.1.2. The error is referring to the new MQTT format in configuration.yaml. Converting most of my MQTT entries eliminated the error, with the exception of the MQTT Button configuration, which the new Studio Code server doesn’t seem to account for.

The errors are only the YAML parser in Studio Code, Configuration validation passes fine as-is. They are safe to ignore, but the are annoying. :slight_smile:

1 Like

i will ignore it , but they are rely annoying , thank you.