zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
737 stars 675 forks source link

Warning on HA restart #2657

Closed hageson closed 3 months ago

hageson commented 11 months ago

Bug description

Logger: homeassistant.components.zha.core.cluster_handlers Source: components/zha/core/cluster_handlers/init.py:537 Integration: Zigbee Home Automation (documentation, issues) First occurred: 2:18:19 PM (2 occurrences) Last logged: 2:18:19 PM

[0x71DE:1:0x0300]: [Min mireds is 0, setting to 153] Please open an issue on the quirks repo to have this device corrected

Steps to reproduce

restart HA

Expected behavior

No warning

Screenshots/Video

Screenshots/Video [Paste/upload your media here]

Device signature

Device signature ```json [Paste the device signature here] ```

Diagnostic information

Diagnostic information ```json [Paste the diagnostic information here] ```

Logs

Logs ```python [Paste the logs here] ```

Additional information

No response

MattWestb commented 11 months ago

Post the diagnostic fro the device 0x71DE from its device card (likely one SonOff repeater).

def1149 commented 9 months ago

I see this too for SonOff Dongle Es used as routers (with router firmware). I have two, one at each end of the house powered by USB wall PS w/ Li-Po rechargeable batteries as power fail backups

2023-12-29 07:39:08.165 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xF9C9:2:0x0300]: [Min mireds is 0, setting to 153] Please open an issue on the quirks repo to have this device corrected 2023-12-29 07:39:08.166 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x57D6:2:0x0300]: [Min mireds is 0, setting to 153] Please open an issue on the quirks repo to have this device corrected

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.1.0b2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "aarch64", "timezone": "America/Chicago", "os_name": "Linux", "os_version": "6.1.63-haos-raspi", "supervisor": "2023.12.1", "host_os": "Home Assistant OS 11.3.rc1", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "keymaster": { "version": "v0.0.87", "requirements": [] }, "alexa_media": { "version": "4.8.1", "requirements": [ "alexapy==1.27.10", "packaging>=20.3", "wrapt>=1.14.0" ] }, "chime_tts": { "version": "v0.10.2", "requirements": [ "pydub" ] }, "frigate": { "version": "5.0.0-beta.3", "requirements": [ "pytz==2022.7" ] }, "nws_alerts": { "version": "4.1", "requirements": [] }, "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "awnet_local": { "version": "1.2.0", "requirements": [] }, "mail_and_packages": { "version": "0.3.19", "requirements": [ "beautifulsoup4", "Pillow>=9.0" ] }, "smartthinq_sensors": { "version": "0.35.6", "requirements": [ "pycountry>=20.7.3", "xmltodict>=0.12.0", "charset_normalizer>=2.0.0" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly", "@TheJulianJES" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp", "universal_silabs_flasher" ], "requirements": [ "bellows==0.37.4", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.109", "zigpy-deconz==0.22.3", "zigpy==0.60.2", "zigpy-xbee==0.20.1", "zigpy-zigate==0.12.0", "zigpy-znp==0.12.1", "universal-silabs-flasher==0.0.15", "pyserial-asyncio-fast==0.11" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "2652", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "zigstar", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "conbee", "known_devices": [ "Conbee II" ] }, { "vid": "0403", "pid": "6015", "description": "conbee", "known_devices": [ "Conbee III" ] }, { "vid": "10C4", "pid": "8A2A", "description": "zigbee", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "zigate", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "zigate", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "bv 2010/10", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "zigate" }, { "type": "_zigstar_gw._tcp.local.", "name": "zigstar" }, { "type": "_uzg-01._tcp.local.", "name": "uzg-01" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06" } ], "is_built_in": true }, "data": { "ieee": "REDACTED", "nwk": 63945, "manufacturer": "SONOFF", "model": "DONGLE-E_R", "name": "SONOFF DONGLE-E_R", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "quirk_id": null, "manufacturer_code": 4742, "power_source": "Mains", "lqi": 196, "rssi": -51, "last_seen": "2023-12-29T12:00:00", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 142>, manufacturer_code=4742, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, allocate_address=True, is_alternate_pan_coordinator=False, is_coordinator=False, is_end_device=False, is_full_function_device=True, is_mains_powered=True, is_receiver_on_when_idle=True, is_router=True, is_security_capable=False)", "endpoints": { "1": { "profile_id": "0x0104", "device_type": "0x0101", "input_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0008" ], "output_clusters": [] }, "2": { "profile_id": "0x0104", "device_type": "0x010d", "input_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0008", "0x0300", "0x1000" ], "output_clusters": [] }, "242": { "profile_id": "0xa1e0", "device_type": "0x0061", "input_clusters": [], "output_clusters": [ "0x0021" ] } }, "manufacturer": "SONOFF", "model": "DONGLE-E_R" }, "active_coordinator": false, "entities": [ { "entity_id": "button.router_north_identify", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "light.router_north_light", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "light.router_north_light_2", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "number.router_north_start_up_current_level", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "number.router_north_start_up_current_level_2", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "number.router_north_start_up_color_temperature", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "select.router_north_start_up_behavior", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "select.router_north_start_up_behavior_2", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "sensor.router_north_rssi", "name": "SONOFF DONGLE-E_R" }, { "entity_id": "sensor.router_north_lqi", "name": "SONOFF DONGLE-E_R" } ], "neighbors": [ { "device_type": "Coordinator", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x0000", "permit_joining": "Unknown", "depth": "0", "lqi": "171" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Parent", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x1BBB", "permit_joining": "Unknown", "depth": "15", "lqi": "198" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x2A07", "permit_joining": "Unknown", "depth": "15", "lqi": "167" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x6EA7", "permit_joining": "Unknown", "depth": "15", "lqi": "168" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x8793", "permit_joining": "Unknown", "depth": "15", "lqi": "109" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xB69B", "permit_joining": "Unknown", "depth": "15", "lqi": "137" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xC4E5", "permit_joining": "Unknown", "depth": "15", "lqi": "135" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xC628", "permit_joining": "Unknown", "depth": "15", "lqi": "137" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xD89A", "permit_joining": "Unknown", "depth": "15", "lqi": "146" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xD995", "permit_joining": "Unknown", "depth": "15", "lqi": "169" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xEC9D", "permit_joining": "Unknown", "depth": "15", "lqi": "165" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xECDA", "permit_joining": "Unknown", "depth": "15", "lqi": "144" }, { "device_type": "EndDevice", "rx_on_when_idle": "Off", "relationship": "Child", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x277B", "permit_joining": "NotAccepting", "depth": "2", "lqi": "168" } ], "routes": [ { "dest_nwk": "0x0000", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x0000" }, { "dest_nwk": "0xB69B", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xB69B" }, { "dest_nwk": "0xC628", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xC628" }, { "dest_nwk": "0xD995", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xD995" }, { "dest_nwk": "0xD89A", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x57D6" }, { "dest_nwk": "0xC4E5", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xC4E5" }, { "dest_nwk": "0x9FE2", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x2A07" }, { "dest_nwk": "0xECDA", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xECDA" }, { "dest_nwk": "0x2A07", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x2A07" }, { "dest_nwk": "0xEC9D", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xEC9D" }, { "dest_nwk": "0x96ED", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x2A07" }, { "dest_nwk": "0x1BBB", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x1BBB" }, { "dest_nwk": "0x2998", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0xD89A" }, { "dest_nwk": "0x8793", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x6EA7" }, { "dest_nwk": "0x57D6", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": false, "next_hop": "0x57D6" } ], "endpoint_names": [ { "name": "DIMMABLE_LIGHT" }, { "name": "EXTENDED_COLOR_LIGHT" }, { "name": "PROXY_BASIC" } ], "user_given_name": "Router North", "device_reg_id": "a983e0f8ffebc8e9a88e80abdb36c374", "area_id": "second_floor", "cluster_details": { "1": { "device_type": { "name": "DIMMABLE_LIGHT", "id": 257 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0004": { "attribute_name": "manufacturer", "value": "SONOFF" }, "0x0005": { "attribute_name": "model", "value": "DONGLE-E_R" } }, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0004": { "endpoint_attribute": "groups", "attributes": {}, "unsupported_attributes": {} }, "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0x0006": { "endpoint_attribute": "on_off", "attributes": { "0x0000": { "attribute_name": "on_off", "value": 0 }, "0x4003": { "attribute_name": "start_up_on_off", "value": 255 } }, "unsupported_attributes": {} }, "0x0008": { "endpoint_attribute": "level", "attributes": { "0x0000": { "attribute_name": "current_level", "value": 228 }, "0x4000": { "attribute_name": "start_up_current_level", "value": 228 } }, "unsupported_attributes": { "0x0012": { "attribute_name": "on_transition_time" }, "0x0011": { "attribute_name": "on_level" }, "0x0010": { "attribute_name": "on_off_transition_time" }, "0x0013": { "attribute_name": "off_transition_time" }, "0x0014": { "attribute_name": "default_move_rate" } } } }, "out_clusters": {} }, "2": { "device_type": { "name": "EXTENDED_COLOR_LIGHT", "id": 269 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": {}, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0004": { "endpoint_attribute": "groups", "attributes": {}, "unsupported_attributes": {} }, "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0x0006": { "endpoint_attribute": "on_off", "attributes": { "0x0000": { "attribute_name": "on_off", "value": 0 }, "0x4003": { "attribute_name": "start_up_on_off", "value": 255 } }, "unsupported_attributes": {} }, "0x0008": { "endpoint_attribute": "level", "attributes": { "0x0000": { "attribute_name": "current_level", "value": 228 }, "0x4000": { "attribute_name": "start_up_current_level", "value": 228 } }, "unsupported_attributes": { "0x0012": { "attribute_name": "on_transition_time" }, "0x0011": { "attribute_name": "on_level" }, "0x0010": { "attribute_name": "on_off_transition_time" }, "0x0013": { "attribute_name": "off_transition_time" }, "0x0014": { "attribute_name": "default_move_rate" } } }, "0x0300": { "endpoint_attribute": "light_color", "attributes": { "0x400a": { "attribute_name": "color_capabilities", "value": 0 }, "0x4002": { "attribute_name": "color_loop_active", "value": 0 }, "0x0008": { "attribute_name": "color_mode", "value": 2 }, "0x400c": { "attribute_name": "color_temp_physical_max", "value": 65279 }, "0x400b": { "attribute_name": "color_temp_physical_min", "value": 0 }, "0x0007": { "attribute_name": "color_temperature", "value": 17476 }, "0x0000": { "attribute_name": "current_hue", "value": 0 }, "0x0001": { "attribute_name": "current_saturation", "value": 0 }, "0x0003": { "attribute_name": "current_x", "value": 24939 }, "0x0004": { "attribute_name": "current_y", "value": 24701 }, "0x4000": { "attribute_name": "enhanced_current_hue", "value": 0 }, "0x000f": { "attribute_name": "options", "value": 0 }, "0x4010": { "attribute_name": "start_up_color_temperature", "value": 17476 } }, "unsupported_attributes": {} }, "0x1000": { "endpoint_attribute": "lightlink", "attributes": {}, "unsupported_attributes": {} } }, "out_clusters": {} }, "242": { "device_type": { "name": "PROXY_BASIC", "id": 97 }, "profile_id": 41440, "in_clusters": {}, "out_clusters": { "0x0021": { "endpoint_attribute": "green_power", "attributes": {}, "unsupported_attributes": {} } } } } } }

MattWestb commented 9 months ago

@def1149 Your routers is having bad configured firmware:

2023-12-29 07:39:08.165 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xF9C9:2:0x0300]: [Min mireds is 0, setting to 153] Please open an issue on the quirks repo to have this device corrected
2023-12-29 07:39:08.166 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x57D6:2:0x0300]: [Min mireds is 0, setting to 153] Please open an issue on the quirks repo to have this device corrected

The system is reading the color temperature and the device is replaying 0 = not valid in Zigbee standard. Live with it or complain to the maker of the router firmware.

github-actions[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.