wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
502 stars 32 forks source link

MQTT Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed #280

Open KitHubek opened 2 months ago

KitHubek commented 2 months ago

Govee Device SKU

H6067 H605C

Govee2MQTT Version

2024.07.13-82ddc6e9

Describe the issue

Moved from: https://github.com/home-assistant/core/issues/126196 Just see this warning at log:

Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed
This will stop working in Home Assistant Core 2025.3

Startup Diagnostics

s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started GOVEE_API_KEY=REDACTED GOVEE_MQTT_HOST=core-mosquitto GOVEE_TEMPERATURE_SCALE=C GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_MQTT_USER=addons GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-09-18T16:36:08 INFO govee::commands::serve] Starting service. version 2024.07.13-82ddc6e9 [2024-09-18T16:36:08 INFO govee::commands::serve] Querying platform API for device list [2024-09-18T16:36:09 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-09-18T16:36:12 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-09-18T16:36:12 INFO govee::commands::serve] Starting LAN discovery [2024-09-18T16:36:12 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-09-18T16:36:12 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-09-18T16:36:22 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-09-18T16:36:22 INFO govee::commands::serve] Ambilight T2 (REDACTED H605C) [2024-09-18T16:36:22 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-09-18T16:36:22 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..15) [2024-09-18T16:36:22 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-09-18T16:36:22 INFO govee::commands::serve] [2024-09-18T16:36:22 INFO govee::commands::serve] Glide Tri (REDACTED H6067) [2024-09-18T16:36:22 INFO govee::commands::serve] LAN API: ip=REDACTED [2024-09-18T16:36:22 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-09-18T16:36:22 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..20) [2024-09-18T16:36:22 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-09-18T16:36:22 INFO govee::commands::serve] Quirk { sku: "H6067", icon: "mdi:triangle", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None } [2024-09-18T16:36:22 INFO govee::commands::serve] [2024-09-18T16:36:22 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-09-18T16:36:42 INFO govee::service::state] requesting update via Platform API Ambilight T2 (REDACTED H605C) None [2024-09-18T16:36:48 INFO govee::service::hass] Wait 490ms for hass to settle on 49 entity configs [2024-09-18T16:36:49 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

No response

Home Assistant Logs

Rejestrator: homeassistant.components.mqtt.light.schema_json Źródło: components/mqtt/light/schema_json.py:156 integracja: MQTT (dokumentacja, Problemy) Pierwsze zdarzenie: 17 września 2024 18:20:40 (37 zdarzenia) Ostatnio zalogowany: 17 września 2024 18:20:44

Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'name': 'gv2mqtt', 'support_url': 'https://github.com/wez/govee2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H6067', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-XXXXX'], 'name': 'Glide Tri'}, 'unique_id': 'gv2mqtt-XXXXX-15', 'schema': 'json', 'command_topic': 'gv2mqtt/light/XXXXX/command/15', 'state_topic': 'gv2mqtt/light/XXXXX/state/15', 'optimistic': True, 'supported_color_modes': ['rgb'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'effect': True, 'payload_available': 'online', 'name': 'Segment 016', 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3 Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'name': 'gv2mqtt', 'support_url': 'https://github.com/wez/govee2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H6067', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-XXXXX'], 'name': 'Glide Tri'}, 'unique_id': 'gv2mqtt-XXXXX-16', 'schema': 'json', 'command_topic': 'gv2mqtt/light/XXXXX/command/16', 'state_topic': 'gv2mqtt/light/XXXXX/state/16', 'optimistic': True, 'supported_color_modes': ['rgb'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'effect': True, 'payload_available': 'online', 'name': 'Segment 017', 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3 Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'name': 'gv2mqtt', 'support_url': 'https://github.com/wez/govee2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H6067', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-XXXXX'], 'name': 'Glide Tri'}, 'unique_id': 'gv2mqtt-XXXXX-17', 'schema': 'json', 'command_topic': 'gv2mqtt/light/XXXXX/command/17', 'state_topic': 'gv2mqtt/light/XXXXX/state/17', 'optimistic': True, 'supported_color_modes': ['rgb'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'effect': True, 'payload_available': 'online', 'name': 'Segment 018', 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3 Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'name': 'gv2mqtt', 'support_url': 'https://github.com/wez/govee2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H6067', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-XXXXX'], 'name': 'Glide Tri'}, 'unique_id': 'gv2mqtt-XXXXX-18', 'schema': 'json', 'command_topic': 'gv2mqtt/light/XXXXX/command/18', 'state_topic': 'gv2mqtt/light/XXXXX/state/18', 'optimistic': True, 'supported_color_modes': ['rgb'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'effect': True, 'payload_available': 'online', 'name': 'Segment 019', 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3 Deprecated flag color_mode used in MQTT JSON light config , the color_mode flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'name': 'gv2mqtt', 'support_url': 'https://github.com/wez/govee2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H6067', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-XXXXX'], 'name': 'Glide Tri'}, 'unique_id': 'gv2mqtt-XXXXX-19', 'schema': 'json', 'command_topic': 'gv2mqtt/light/XXXXX/command/19', 'state_topic': 'gv2mqtt/light/XXXXX/state/19', 'optimistic': True, 'supported_color_modes': ['rgb'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'effect': True, 'payload_available': 'online', 'name': 'Segment 020', 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3

Anything else?

No response

tebra-jl commented 1 month ago

Same error message in home assistant log. Last version of Govee2MQTT HA version 2024.9.3

Glow91 commented 1 month ago

Same Issue here. HA Version 2024.9.3

Rigear commented 1 month ago

https://github.com/home-assistant/core/issues/110682

Looking at the govee2mqtt code, it looks like it just needs to remove the old deprecated flags since it already uses the new supported_color_modes list