michbeck100 / pimatic-alarm

Alarm system plugin for pimatic
GNU General Public License v3.0
0 stars 2 forks source link

no trigger #5

Open atomikx opened 7 years ago

atomikx commented 7 years ago

hello,

if i configure the plugin with 3 contact sensors and restart pimatic only the first Event (from all 3 devices) is showing in the "trigger" variable and in the frontend of the device. Every other following Event is not triggering.

My Configuration:

{ "id": "alarm_system", "name": "Alarm system", "class": "AlarmSystem", "includes": [ "contact-window1", "contact-window2", "contact-door" ] }, { "id": "alarm_trigger", "name": "Alarm", "class": "AlarmSwitch" }

michbeck100 commented 7 years ago

This is by design. Once an alarm is triggered, it won't be triggered again. And the triggering device won't change either. But i think this isn't unusual for an alarm system. What would you expect? I would say, there can be only ONE device triggering an alarm.

atomikx commented 7 years ago

you are right! But if a alarm was triggered, how can i reset the alarm-system to detect the next event (e.g. from another device)?

michbeck100 commented 7 years ago

You can use the AlarmSwitch class to switch an alarm off. This won't turn off the complete system, just the alarm. After turning the alarm off, it should be armed again.

atomikx commented 7 years ago

The AlarmSwitch does not (automatically) turn on when an alarm is triggered. So I do it by a rule. This solution works with the first alarm detection (after pimatic restart) - the AlarmSwitch is switched on. If I then switch the AlarmSwitch off again, no other event is detected. And the Trigger variable is not reseted.

michbeck100 commented 7 years ago

This could be a bug. I have to test myself