pimatic-alarm is a pimatic plugin, that creates an alarm system based on the existing sensors and actuators defined in the pimatic installation.
The alarm system can switches on all devices, that extend from SwitchActuator, e.g. lights or smoke alarms. The alarm can triggered by any of the devices, that extend from PresenceSensor or ContactSensor, e.g. HomeduinoRFPir or HomeduinoRFContactSensor.
To install the plugin just add the plugin to the config.json of pimatic:
{
"plugin": "alarm"
}
The plugin comes with two types of devices. The "AlarmSwitch" can be used to manually trigger an alarm and the "AlarmSystem" is used to activate the alarm system.
Usage:
"devices": [
{
"id": "alarm_system",
"name": "Alarm system",
"class": "AlarmSystem"
},
{
"id": "alarm_trigger",
"name": "Alarm",
"class": "AlarmSwitch"
}
]
Note that you need at least the "AlarmSystem" device, because the default state of the alarm system is "off".
To add devices to the alarm system, the configuration of pimatic-alarm must be extended by adding a list of device ids to the attribute called "includes" of the plugin configuration. Example:
"plugins": [
{
"plugin": "alarm",
"includes": [
"id_of_switch",
"id_of_presenceSensor"
]
}
]
Do you like this plugin? Then consider a donation to support development.
0.1.1
- Use empty string as trigger for no alarm because trigger is shown in gui next to switch
0.1.0
- #2 setting name of triggering device into variable
- added alarm event
0.0.3
- #1 switched from blacklist to whitelist
0.0.2
- fixed version
0.0.1
- Initial release