mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
fix basic alarm (#17360)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
parent
06b361c139
commit
ffa59f8d8f
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user