Relax skipped device checks to allow mains-powered dimmers

Technically we should only have skipped the Coordinator because that has
a zero address. Mains dimmers are usually also Routers, not EndDevices.
This commit is contained in:
Darell Tan
2026-01-12 22:34:01 +08:00
parent 7f2c23d426
commit c2da4ca2eb

2
z2m.go
View File

@@ -79,7 +79,7 @@ func createAccessory(dev *Device) (*accessory.A, []*ExposeMapping, error) {
if dev.Disabled ||
!dev.Supported ||
!dev.InterviewCompleted ||
dev.Type != "EndDevice" {
dev.Type == "Coordinator" {
return nil, nil, ErrDeviceSkipped
}