Closed Bascht74 closed 2 years ago
group documentation group source (message by IssueLinks)
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (group
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
If there is anything I can provide, please let me know!
Looking at the provided screenshots:
The current active color mode is unknown, thus Home Assistant has no idea which attributes to provide.
This is not a bug or issue with the Light group, this is actually working as intended.
Thx for pointing it out. I didn't know that the color_mode is necessary for processing the general brightness in a light group.
I checked the MQTT discovery for the light is OK:
availability:
- topic: zigbee2mqtt/bridge/state
value_template: '{{ value_json.state }}'
- topic: zigbee2mqtt/Lampe_OG_Leona_Bett/availability
value_template: '{{ value_json.state }}'
availability_mode: all
brightness: true
brightness_scale: 254
color_mode: true
command_topic: zigbee2mqtt/Lampe_OG_Leona_Bett/set
device:
identifiers:
- zigbee2mqtt_0x00178801011cad4d
manufacturer: Philips
model: Hue white and color ambiance LightStrip plus (915005106701)
name: Lampe_OG_Leona_Bett
sw_version: 67.88.1
effect: true
effect_list:
- blink
- breathe
- okay
- channel_change
- finish_effect
- stop_effect
max_mireds: 500
min_mireds: 153
name: Lampe_OG_Leona_Bett
schema: json
state_topic: zigbee2mqtt/Lampe_OG_Leona_Bett
supported_color_modes:
- xy
- color_temp
unique_id: 0x00178801011cad4d_light_zigbee2mqtt
platform: mqtt
The state is OK right now:
Received 20:27:26
QoS: 0
Payload: brightness: 254
color_mode: xy
linkquality: null
state: 'OFF'
update:
state: idle
update_available: null
So something must set the "unknown" state for the actual color mode. I am not able to reproduce it. But now I know where to look if the group has those problems again...
Thx!
@frenck I found something in the HA log again:
2022-05-30 23:24:19 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:24:19 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:24:19 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:24:19 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
The MQTT-Messages for lights that were sent in that time frame (23:24:00 - 23:24:59) were:
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_OG_Leona_Bett', payload '{"brightness":254,"color":{"x":0.49107142857142855,"y":0.42857142857142855},"color_mode":"xy","color_temp":409,"color_temp_startup":370,"linkquality":21,"state":"OFF","update":{"state":"idle"},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_OG_Kara_Schreibtisch', payload '{"brightness":128,"color":{"h":32,"hue":32,"s":82,"saturation":82,"x":0.4599,"y":0.4106},"color_mode":"color_temp","color_temp":370,"color_temp_startup":370,"linkquality":69,"state":"OFF","update":{"state":null},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_EG_Flur_Komode', payload '{"brightness":254,"linkquality":94,"state":"ON","update":{"state":"idle"},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_OG_Schlafzimmer_Schreibtisch', payload '{"brightness":254,"color_mode":"xy","linkquality":58,"state":"OFF","update":{"state":"idle"},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_OG_Flur_Komode', payload '{"brightness":124,"linkquality":69,"state":"ON","update":{"state":"idle"},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_EG_Wohnzimmer_Sideboard', payload '{"brightness":149,"color":{"h":68,"hue":68,"s":100,"saturation":100,"x":0.4253,"y":0.5326},"color_mode":"hs","linkquality":131,"state":"OFF","update":{"state":"idle"},"update_available":null}'
info 2022-05-30 23:24:19: MQTT publish: topic 'zigbee2mqtt/Lampe_OG_Leona_Stehlampe', payload '{"brightness":113,"linkquality":61,"state":"OFF","update":{"state":"idle"},"update_available":null}'
I don't find anything invalid in the data... Only lamps Leona_bett, Kara_Schreibtisch, Schlafzimmer_Schreibtisch, Wohnzimmer_Sideboard sent color_mode
. These are four lamps and ... four error messages in HA log...
I enabled MQTT debug log:
logger:
default: warning
logs:
homeassistant.components.mqtt: debug
paho.mqtt.client: debug
Is anything else needed to trace this...?
(I leave that closed, if I find anything I will open a new issue for the mqtt integration)
Got:
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Router_EG_Kueche', ... (313 bytes)
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Router_EG_Kueche: b'{"consumer_connected":true,"consumption":12.7,"current":0.3819,"device_temperature":32,"energy":12.7,"illuminance":0,"illuminance_lux":0,"linkquality":120,"power":97.39,"power_outage_count":1,"power_outage_memory":true,"state":"ON","temperature":33,"update":{"state":"idle"},"update_available":null,"voltage":255}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Router_OG_Abstellraum', ... (311 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Router_OG_Schlafzimmer', ... (298 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_OG_Leona_Bett', ... (217 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_OG_Kara_Schreibtisch', ... (236 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_EG_Flur_Komode', ... (98 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Gruppe_OG_Schlafzimmer_Schreibtisch', ... (50 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_OG_Schlafzimmer_Schreibtisch', ... (117 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_OG_Flur_Komode', ... (98 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Lampe_EG_Wohnzimmer_Sideboard', ... (191 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Flur_Komode', ... (106 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tele/Lampe.OG.Leona.Fenster/STATE', ... (313 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Flur_Eingang', ... (71 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tele/Lampe.OG.Leona.Fenster/SENSOR', ... (280 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Panel_EG_Kueche_Wand', ... (31 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Kueche_Fenster', ... (73 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Wohnzimmer_Frei', ... (99 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Wohnzimmer_Deckenfluter', ... (99 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Wohzimmer_Sideboard', ... (99 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_EG_Kueche_Essen', ... (89 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Schlafzimmer_Schreibtisch', ... (81 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Schlafzimmer_Eingang', ... (105 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Schlafzimmer_Bett', ... (81 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Flur_Komode', ... (105 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Bad_Heizung', ... (82 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Kara_Schreibtisch', ... (106 bytes)
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Router_OG_Abstellraum: b'{"consumer_connected":true,"consumption":0.45,"current":0.0047,"device_temperature":25,"energy":0.45,"illuminance":0,"illuminance_lux":0,"linkquality":69,"power":1.18,"power_outage_count":1,"power_outage_memory":true,"state":"ON","temperature":26,"update":{"state":"idle"},"update_available":null,"voltage":251}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Kara_Eingang', ... (105 bytes)
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Router_OG_Schlafzimmer: b'{"consumer_connected":false,"consumption":0,"current":0,"device_temperature":26,"energy":0,"illuminance":0,"illuminance_lux":0,"linkquality":58,"power":0,"power_outage_count":1,"power_outage_memory":true,"state":"ON","temperature":26,"update":{"state":"idle"},"update_available":null,"voltage":261}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Leona_Eingang', ... (105 bytes)
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_OG_Leona_Bett: b'{"brightness":254,"color":{"x":0.49107142857142855,"y":0.42857142857142855},"color_mode":"xy","color_temp":409,"color_temp_startup":370,"linkquality":21,"state":"OFF","update":{"state":"idle"},"update_available":null}'
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_OG_Kara_Schreibtisch: b'{"brightness":128,"color":{"h":32,"hue":32,"s":82,"saturation":82,"x":0.4599,"y":0.4106},"color_mode":"color_temp","color_temp":370,"color_temp_startup":370,"linkquality":69,"state":"OFF","update":{"state":null},"update_available":null}'
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_EG_Flur_Komode: b'{"brightness":254,"linkquality":94,"state":"ON","update":{"state":"idle"},"update_available":null}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Leona_Bett', ... (97 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Noah_Eingang', ... (106 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Schalter_OG_Noah_Bett', ... (82 bytes)
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Gruppe_OG_Schlafzimmer_Schreibtisch: b'{"brightness":254,"color_mode":"xy","state":"OFF"}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Motion_Aussen_Carport', ... (228 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Rauchmelder_EG_Flur', ... (389 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Rauchmelder_Aussen_Carport', ... (388 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Motion_Aussen_Autos', ... (227 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Motion_Aussen_Schuppen_Aussen', ... (230 bytes)
2022-05-30 23:45:32 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_OG_Schlafzimmer_Schreibtisch: b'{"brightness":254,"color_mode":"xy","linkquality":69,"state":"OFF","update":{"state":"idle"},"update_available":null}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/DW_Aussen_Schuppen', ... (80 bytes)
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Motion_Aussen_Schuppen_Innen', ... (230 bytes)
2022-05-30 23:45:32 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_OG_Flur_Komode: b'{"brightness":124,"linkquality":65,"state":"ON","update":{"state":"idle"},"update_available":null}'
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Lampe_EG_Wohnzimmer_Sideboard: b'{"brightness":149,"color":{"h":68,"hue":68,"s":100,"saturation":100,"x":0.4253,"y":0.5326},"color_mode":"hs","linkquality":134,"state":"OFF","update":{"state":"idle"},"update_available":null}'
2022-05-30 23:45:32 DEBUG (Thread-3) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'zigbee2mqtt/Motion_EG_Treppenhaus', ... (118 bytes)
2022-05-30 23:45:32 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:45:32 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
2022-05-30 23:45:32 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/Schalter_EG_Flur_Komode: b'{"action_duration":null,"battery":50.5,"linkquality":94,"update":{"state":"idle"},"update_available":null}'
The problem
I have created a light group here:
The group is containing the following three lights:
Lampe_OG_Leona_Stehlampe = MQTT-light (z2m)
Lampe_OG_Leona_Bett = MQTT-light (z2m)
Lampe OG Leona Schrank = esphome-light
... but the group has not brightness attribute:
Another group has a brightness attribute:
What version of Home Assistant Core has the issue?
core-2022.6.0b0
What was the last working version of Home Assistant Core?
? (group is new)
What type of installation are you running?
Home Assistant OS
Integration causing the issue
light group
Link to integration documentation on our website
https://www.home-assistant.io/integrations/group
Diagnostics information
interestingly there is no diagnoistics information for gui groups
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Maybe it has something to do with the different color modes the lights are supporting. But all lights do have the brightness attribute so the group should be able to report it. A service call light.turn_on the the brightness parameter is working fine, the light group doesn't report back the brightness afterwards...