home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.67k stars 29.52k forks source link

ZHA lights not working correctly (don't turn on or off consistently) #63992

Closed benblb closed 2 years ago

benblb commented 2 years ago

The problem

My ZHA lights are not turning on or off consistently, but they previously were. Commands both from Node Red and the frontend often don't appropriately control the lights. Brightness also not working consistently.

2x Ikea lights, 1x Philips Hue (on ZHA coordinator).

What version of Home Assistant Core has the issue?

2021.12.9

What was the last working version of Home Assistant Core?

2021.12.7

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataRequestExt.Rsp(Status=<Status.SUCCESS: 0>)
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.MAC_NO_ACK: 233>, Endpoint=1, TSN=21)
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.zigbee.application] Request failed (Unsuccessful request status code: <Status.MAC_NO_ACK: 233>), retry attempt 1 of 5
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=6, SrcAddr=0x6B78, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=31, SecurityUse=<Bool.false: 0>, TimeStamp=164216, TSN=0, Data=b'\x18\x16\x01\x00\x00\x00\x10\x00', MacSrcAddr=0x6B78, MsgResultRadius=29)
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy.zcl] [0x6b78:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=22 command_id=Command.Read_Attributes_rsp>
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.SUCCESS: 0>, Endpoint=1, TSN=22)
2022-01-12 09:29:36 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=rgb_color=[100, 81, 47], brightness_pct=100, transition=0.5, entity_id=light.stairs>
2022-01-12 09:29:36 DEBUG (MainThread) [zigpy_znp.zigbee.application] Previously delayed request is now running, delayed by 0.15 seconds
2022-01-12 09:29:36 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.stairs

---

2022-01-12 09:29:44 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.living_room_lights, old_state=<state light.living_room_lights=unavailable; supported_color_modes=['brightness'], friendly_name=Living room lights_zha_group_0x0002, supported_features=41 @ 2022-01-12T09:28:51.336740-08:00>, new_state=<state light.living_room_lights=off; supported_color_modes=['brightness'], off_brightness=None, friendly_name=Living room lights_zha_group_0x0002, supported_features=41 @ 2022-01-12T09:29:44.600925-08:00>>

---

2022-01-12 09:29:54 DEBUG (MainThread) [homeassistant.components.zha.entity] light.living_room_lights: turned on: {'move_to_level_with_on_off': [4, <Status.SUCCESS: 0>]}
2022-01-12 09:29:54 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.living_room_lights, old_state=<state light.living_room_lights=off; supported_color_modes=['brightness'], off_brightness=None, friendly_name=Living room lights_zha_group_0x0002, supported_features=41 @ 2022-01-12T09:29:44.600925-08:00>, new_state=<state light.living_room_lights=on; supported_color_modes=['brightness'], color_mode=brightness, brightness=254, off_brightness=None, friendly_name=Living room lights_zha_group_0x0002, supported_features=41 @ 2022-01-12T09:29:54.751768-08:00>>
2022-01-12 09:29:54 DEBUG (MainThread) [homeassistant.components.zha.entity] light.living_room_1: polling current state
2022-01-12 09:29:54 DEBUG (MainThread) [homeassistant.components.zha.entity] light.living_room_2: polling current state
2022-01-12 09:29:54 DEBUG (MainThread) [zigpy_znp.zigbee.application] Max concurrency reached, delaying requests (1 enqueued)

---

2022-01-12 10:06:01 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.NWK_NO_ROUTE: 205>, Endpoint=1, TSN=190)
2022-01-12 10:06:01 DEBUG (MainThread) [zigpy_znp.zigbee.application] Request failed (Unsuccessful request status code: <Status.NWK_NO_ROUTE: 205>), retry attempt 2 of 5
2022-01-12 10:06:02 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestSrcRtg.Req(DstAddr=0x6B78, DstEndpoint=1, SrcEndpoint=1, ClusterId=8, TSN=190, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=30, SourceRoute=[], Data=b'\x00\xBE\x00\x00\x00')
2022-01-12 10:06:02 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataRequestSrcRtg.Rsp(Status=<Status.SUCCESS: 0>)

Additional information

Aqara sensors connected and all working fine. WiFi lighting integrations working perfectly with Aqara sensors + Node Red.

No response

Adminiuga commented 2 years ago

<Status.MAC_NO_ACK <Status.NWK_NO_ROUTE

Controller is having RF difficulties talking or hearing that light. Could be many things, likely RF interference or noise.

benblb commented 2 years ago

Thanks @Adminiuga for your reply. I am now trying to change the channel using a bellows command but the command is not found using the ssh addon. Is there any advice you can offer? It would be much appreciated.

Adminiuga commented 2 years ago

Should not be using bellows. You are running TI chipset coordinator, so check zigpy-znp repo or discord ZigBee channel

Adminiuga commented 2 years ago

If don't have too many devices, then you could try backing up the network, modify the channel in the backup, restore it. Either do on a different machine, or stop ha core while doing this.

benblb commented 2 years ago

Thanks for the tips, that makes more sense now. Zigbee is so confusing!

I switched back to my Conbee II and moved to a totally open channel which seems to have helped. I'll try this out for now. Thanks for your speedy replies for for interpreting my logs.