fix basic alarm (#17360)

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
Mark Herwege 2024-09-03 17:56:15 +02:00 committed by GitHub
parent 06b361c139
commit ffa59f8d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,7 +382,8 @@ public class NikoHomeControlCommunication2 extends NikoHomeControlCommunication
addVideoDevice(device);
} else if ("accesscontrol".equals(device.model) || "bellbutton".equals(device.model)) {
addAccessDevice(device, location);
} else if ("alarms".equals(device.model)) {
} else if ("alarms".equals(device.model) && (device.properties != null)
&& (device.properties.stream().anyMatch(p -> (p.alarmActive != null)))) {
addAlarmDevice(device, location);
} else if ("action".equals(device.type) || "virtual".equals(device.type)) {
addActionDevice(device, location);
@ -403,6 +404,7 @@ public class NikoHomeControlCommunication2 extends NikoHomeControlCommunication
case "pir":
case "simulation":
case "comfort":
case "alarms":
case "alloff":
case "overallcomfort":
case "garagedoor":