Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KitHubek opened this issue Sep 18, 2024 · 7 comments

Comments

@KitHubek
Copy link

Govee Device SKU

H6067 H605C

Govee2MQTT Version

2024.07.13-82ddc6e9

Describe the issue

Moved from: home-assistant/core#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
Copy link

tebra-jl commented Oct 1, 2024

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

@Glow91
Copy link

Glow91 commented Oct 1, 2024

Same Issue here.
HA Version 2024.9.3

@Rigear
Copy link

Rigear commented Oct 4, 2024

home-assistant/core#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

@Glow91
Copy link

Glow91 commented Nov 20, 2024

Same Issue here.
HA Version 2024.11.2

@Dzoker2
Copy link

Dzoker2 commented Nov 29, 2024

Same here HA 2024.11.3

@wasabip20
Copy link

Same here HA 2024.12.0

@DarwinData
Copy link

Same on HA Core 2024.12.1

@wez wez closed this as completed in 8029cb5 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants