arteck / ioBroker.zigbee2mqtt

Adapter for Zigbee2MQTT integration
MIT License
25 stars 15 forks source link

min/max values for colortemp of groups produce unnecceary warnings #377

Open FernetMenta opened 3 weeks ago

FernetMenta commented 3 weeks ago

What happend?

I notice this type of warnings in the log:

zigbee2mqtt.0 | 2024-09-28 17:51:53.687 | warn | State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000"

Happens because of min / max values for groups created in zigbee2mqtt

{
  "type": "state",
  "common": {
    "id": "colortemp",
    "name": "Color temperature",
    "role": "level.color.temperature",
    "write": true,
    "read": true,
    "type": "number",
    "min": 2000,
    "max": 6667,
    "def": 6667,
    "unit": "K"
  },
  "native": {},
  "from": "system.adapter.zigbee2mqtt.0",
  "user": "system.user.admin",
  "ts": 1727538879682,
  "_id": "zigbee2mqtt.0.group_555.colortemp",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}

The device I added to this group has a min value of 1808 (553 mired). Every time I push the scene button on my remote, I see this warning in the log.

What did you expect to happen?

no warnings

How to reproduce it (minimal and precise)

Create a group in zigbee2mqtt and add a device that supports values less than 2000 for color temp, e.g. mueller_licht devices. Set color temp to warmest value.

Adapter version

2.13.6

Adapter Config Log

2024-09-28 17:44:27.493 - info: zigbee2mqtt.0 (451) ================================= Adapter Config ================================= 2024-09-28 17:44:27.493 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Frontend Scheme: http 2024-09-28 17:44:27.494 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Frontend Server: pi-home 2024-09-28 17:44:27.494 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Frontend Port: 8090 2024-09-28 17:44:27.494 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Connection Type: ws 2024-09-28 17:44:27.494 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Websocket Scheme: ws 2024-09-28 17:44:27.494 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Websocket Server: zigbee2mqtt 2024-09-28 17:44:27.495 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Websocket Port: 8080 2024-09-28 17:44:27.495 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Websocket Auth-Token: unused 2024-09-28 17:44:27.495 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Websocket Dummy MQTT-Server: activated 2024-09-28 17:44:27.495 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Dummy MQTT IP-Bind: 0.0.0.0 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Dummy MQTT Port: 1885 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Debug Log: deactivated 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Proxy Zigbee2MQTT Logs to ioBroker Logs: activated 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use Kelvin: yes 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use ColorTemperature ColorSync: yes 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use BrightnessMove OnOff: no 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use BrightnessStep OnOff: no 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use Event In Desc: yes 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use Device Icons: no 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use Simple Hold/Release State: yes 2024-09-28 17:44:27.496 - info: zigbee2mqtt.0 (451) || Use Simple Move/Stop State: no 2024-09-28 17:44:27.497 - info: zigbee2mqtt.0 (451) || Use Simple Press/Release State: no 2024-09-28 17:44:27.497 - info: zigbee2mqtt.0 (451) || Use Automatic Coordinator Check: no 2024-09-28 17:44:27.497 - info: zigbee2mqtt.0 (451) || Coordinator Check Loglevel: info 2024-09-28 17:44:27.497 - info: zigbee2mqtt.0 (451) || Coordinator Check Cron : 0 3 * 2024-09-28 17:44:27.497 - info: zigbee2mqtt.0 (451) ================================================================================== 2024-09-28 17:44:27.554 - info: zigbee2mqtt.0 (451) Statring DummyMQTT-Server on IP 0.0.0.0 and Port 1885 2024-09-28 17:44:29.071 - info: zigbee2mqtt.0 (451) Connect to Zigbee2MQTT over websocket connection. 2024-09-28 17:44:29.081 - info: zigbee2mqtt.0 (451) ============================ Zigbee2MQTT Information ============================= 2024-09-28 17:44:29.081 - info: zigbee2mqtt.0 (451) || Zigbee2MQTT Version: 1.40.1 2024-09-28 17:44:29.081 - info: zigbee2mqtt.0 (451) || Coordinator type: zStack3x0 Version: 20240710 Serial: /dev/ttyUSB0 2024-09-28 17:44:29.081 - info: zigbee2mqtt.0 (451) || Network panid 10189 channel: 25 ext_pan_id: 0xfffd9298defe6092 2024-09-28 17:44:29.081 - info: zigbee2mqtt.0 (451) ==================================================================================

Log

-- 2024-09-28 17:47:11.266 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:47:55.527 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:48:08.699 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:49:24.119 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:49:38.133 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:50:24.255 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000" 2024-09-28 17:51:53.687 - warn: zigbee2mqtt.0 (451) State value to set for "zigbee2mqtt.0.group_9.colortemp" has value "1818" less than min "2000"

arteck commented 4 days ago

can you show me the settings from zigbee2mqtt for this device like grafik

FernetMenta commented 4 days ago

image

The settings of the device have no impact on the group. All of my groups show a min color temp of 2000, regadless whether there are device added or not.