esphome / esphome/issues

Deprecated flag "color_mode"

Open
#6,130 7 comments 2 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
313
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### The problem

Warning messages in the log file.

### Which version of ESPHome has the issue?

all

### What type of installation are you using?

Docker

### Which version of Home Assistant has the issue?

all

### What platform are you using?

ESP8266

### Board

sonoff

### Component causing the issue

_No response_

### Example YAML snippet

_No response_

### Anything in the logs that might be useful for us?

```txt
Logger: homeassistant.components.mqtt.light.schema_json
Source: components/mqtt/light/schema_json.py:156
integration: MQTT ([documentation](https://www.home-assistant.io/integrations/mqtt), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+mqtt%22))
First occurred: 09:12:29 (6 occurrences)
Last logged: 09:12:29

Deprecated flag `color_mode` used in MQTT JSON light config , the `color_mode` flag is not used anymore and should be removed. Got: {'schema': 'json', 'supported_color_modes': ['color_temp'], 'brightness': True, 'effect': True, 'icon': 'mdi:led-strip', 'name': 'Output', 'effect_list': ['Random', 'My Slow Random Effect', 'My Fast Random Effect', 'None'], 'color_mode': True, 'command_topic': 'b612/dining-room-stripled-inner/cmd/out', 'availability_topic': 'b612/dining-room-stripled-inner/status', 'state_topic': 'b612/dining-room-stripled-inner/out', 'unique_id': '4c11ae0e3acc-light-ef48dc26', 'device': {'name': 'Dining room Stripled inner', 'sw_version': 'esphome v2024.5.5 Jun 16 2024, 21:08:11', 'identifiers': '4c11ae0e3acc', 'suggested_area': 'Dining room', 'model': 'esp01_1m', 'manufacturer': 'espressif'}, '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: {'schema': 'json', 'supported_color_modes': ['color_temp'], 'brightness': True, 'effect': True, 'icon': 'mdi:led-strip', 'name': 'Output', 'effect_list': ['Random', 'My Slow Random Effect', 'My Fast Random Effect', 'None'], 'color_mode': True, 'command_topic': 'b612/dining-room-stripled-outer/cmd/out', 'availability_topic': 'b612/dining-room-stripled-outer/status', 'state_topic': 'b612/dining-room-stripled-outer/out', 'unique_id': '3c71bf2ab1c8-light-ef48dc26', 'device': {'name': 'Dining room Stripled outer', 'sw_version': 'esphome v2024.5.5 Jun 16 2024, 21:14:43', 'identifiers': '3c71bf2ab1c8', 'suggested_area': 'Dining room', 'model': 'esp01_1m', 'manufacturer': 'espressif'}, '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: {'schema': 'json', 'supported_color_modes': ['color_temp'], 'brightness': True, 'effect': True, 'icon': 'mdi:led-strip', 'name': 'Output CWWW', 'effect_list': ['Strobe', 'Pulse', 'Flicker', 'None'], 'color_mode': True, 'command_topic': 'b612/home-theater-stripled/cmd/out_cwww', 'availability_topic': 'b612/home-theater-stripled/status', 'state_topic': 'b612/home-theater-stripled/out_cwww', 'unique_id': 'cc7b5c361590-light-b3c4d33a', 'device': {'name': 'Home theater stripLED', 'sw_version': 'esphome v2024.7.2 Jul 30 2024, 16:49:49', 'identifiers': 'cc7b5c361590', 'suggested_area': 'Home theater', 'model': 'nodemcu-32s', 'manufacturer': 'espressif'}, '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: {'schema': 'json', 'supported_color_modes': ['rgb'], 'brightness': True, 'effect': True, 'icon': 'mdi:led-strip', 'name': 'Output RGB', 'effect_list': ['Strobe', 'Pulse', 'Flicker', 'Rainbow', 'Color Wipe', 'Scan', 'Twinkle', 'Random Twinkle', 'Fireworks', 'Addressable Flicker', 'WLED', 'DDP', 'None'], 'color_mode': True, 'command_topic': 'b612/home-theater-stripled/cmd/out_rgb', 'availability_topic': 'b612/home-theater-stripled/status', 'state_topic': 'b612/home-theater-stripled/out_rgb', 'unique_id': 'cc7b5c361590-light-77978f33', 'device': {'name': 'Home theater stripLED', 'sw_version': 'esphome v2024.7.2 Jul 30 2024, 16:49:49', 'identifiers': 'cc7b5c361590', 'suggested_area': 'Home theater', 'model': 'nodemcu-32s', 'manufacturer': 'espressif'}, '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: {'schema': 'json', 'supported_color_modes': ['color_temp'], 'brightness': True, 'effect': True, 'icon': 'mdi:led-strip', 'name': 'Output', 'effect_list': ['Random', 'My Slow Random Effect', 'My Fast Random Effect', 'None'], 'color_mode': True, 'command_topic': 'b612/living-room-stripled/cmd/out', 'availability_topic': 'b612/living-room-stripled/status', 'state_topic': 'b612/living-room-stripled/out', 'unique_id': 'cc50e35d6cd2-light-ef48dc26', 'device': {'name': 'Living room Stripled', 'sw_version': 'esphome v2024.5.5 Jun 17 2024, 15:15:10', 'identifiers': 'cc50e35d6cd2', 'suggested_area': 'Living room', 'model': 'esp01_1m', 'manufacturer': 'espressif'}, 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3`
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading components/mqtt/light/schema_json.py at line 156, where the warning identifies the deprecated flag. Reproduce the warning with an MQTT JSON light configuration like the logged examples and confirm that completed work no longer emits the color_mode deprecation warning before Home Assistant Core 2025.3.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.