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
72.67k stars 30.42k forks source link

MLI ZBT-Remote-ALL-RGBW not working with SkyConnect #88810

Closed j-a-n closed 1 year ago

j-a-n commented 1 year ago

The problem

I am trying to migrate my ZHA network from a CC2652P to SkyConnect. My previous Zigbee network with the CC2652P was quite reliable. The migration using "Migrate Radio" went without problems. After the migration, the problems started. Some devices lost connection to the network and repair did not work either. Some commands were lost when sending light-off commands to HA light groups. Some remotes were no longer generating zha_events. After I migrated my network back to CC2652P, the problems disappeared again.

My production system is running as VM on Proxmox: Home Assistant 2023.2.5 Supervisor 2023.01.1 Operating System 9.5 Zigbee Channel 15

I now have a test setup on an different Zigbee channel (25). I am using the latest SkyConnect firmware 7.1.4.0 build 389 and the HA-core devcontainer (2023.4.0.dev0). I paired one of the problematic devices: Müller-Licht - MLI - ZBT-Remote-ALL-RGBW

The pairing process seem to complete successful, but the device is not functional.. Device info shows:

LQI: Unknown RSSI: Unknown Last Seen: 2023-02-26T21:14:59

The Developer Tools do not show any events when I press buttons on the remote.

The same device works with the CC2652P without any problems.

I will attach a whole log file from the pairing process. What else can I provide? Since this is a test system running in the HA devcontainer, I can change whatever is necessary to find the problem.

I use the following configuration in the test setup:

logger:
  default: info
  logs:
    homeassistant.components.cloud: debug
    homeassistant.core: debug
    homeassistant.components.zha: debug
    bellows.zigbee.application: debug
    bellows.ezsp: debug
    zigpy: debug
    zigpy_deconz.zigbee.application: debug
    zigpy_deconz.api: debug
    zigpy_xbee.zigbee.application: debug
    zigpy_xbee.api: debug
    zigpy_zigate: debug
    zigpy_znp: debug
    zhaquirks: debug

zha:
  zigpy_config:
    network:
      channel: 25             # What channel the radio should try to use.
      channels: [15, 20, 25]  # Channel mask

What version of Home Assistant Core has the issue?

core-2023.4.0.dev0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

zha

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha

Diagnostics information

home-assistant.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

In the log I can see that the pairing process seem to work:

2023-02-26 21:15:02.794 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA2FB](ZBT-Remote-ALL-RGBW): completed initialization

With every key press on the remote I get no zha_event, but these Unexpected message send notification tag: 255 log entries:

2023-02-26 21:15:40.937 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_MULTICAST: 3>, 65533, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=255, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=16388, sequence=97), 255, <EmberStatus.SUCCESS: 0>, b'']
2023-02-26 21:15:40.938 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_MULTICAST: 3>, 65533, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=255, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=16388, sequence=97), 255, <EmberStatus.SUCCESS: 0>, b'']
2023-02-26 21:15:40.938 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255

Also found an DB error in the log:

2023-02-26 21:14:59.879 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (00:15:8d:00:03:1d:6b:48, 1, 0, 4, 'MLI') params: FOREIGN KEY constraint failed
2023-02-26 21:14:59.884 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (00:15:8d:00:03:1d:6b:48, 1, 0, 5, 'ZBT-Remote-ALL-RGBW') params: FOREIGN KEY constraint failed
home-assistant[bot] commented 1 year ago

Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

ulrikjo commented 1 year ago

Looks like it's the same problem as: https://community.home-assistant.io/t/migrated-to-skyconnect-from-sonoff-dongle-unable-to-pair-some-devices/500703 https://github.com/home-assistant/core/issues/86947 And maybe https://github.com/home-assistant/core/issues/86976

issue-triage-workflows[bot] commented 1 year 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 Home Assistant 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.