Strange error in HA with MQTT Lights

Hi All,

For long time all my lights working perfect. But at a certain moment i see those errors pop up in the error log.
I dont know how to solve this. Tried many things. Maybe HA has changes some things i dont know.

(it is 1 line but its always more then 1. But show one)

2021-08-10 06:23:54 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'Milight_Hub/states/0xAAAB/rgb_cct/1': '{"status":"ON","brightness":"255"}'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 34, in wrapper
    msg_callback(msg)
  File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 299, in state_received
    if values["state"] == "ON":
KeyError: 'state'

- name: "Bedroom 5"
  command_topic: "Milight_Hub/0xAAAB/rgb_cct/1"
  state_topic: "Milight_Hub/states/0xAAAB/rgb_cct/1"
    platform: mqtt
    schema: json
    color_temp: true
    rgb: true
    brightness: true
    effect: true
    qos: 1
    optimistic: true
    retain: false
    availability_topic: "Milight_Hub/client_status"
    payload_available: "connected"
    payload_not_available: "disconnected"
    effect_list:
      - "night_mode"
      - "white_mode"
      - "0"
      - "1"
      - "2"
      - "3"
      - "4"
      - "5"
      - "6"
      - "7"
      - "8"

The state topic, “Milight_Hub/states/0xAAAB/rgb_cct/1”, should contain “on” or “off”, or you have to deduce those values via a state_value_template.

In this case

state_value_template: '{{ value_json.status }}'

This is the output from the hub. Status is a capital ON or OFF
can that be the issue?