home-assistant.io/source/_components/alarm_control_panel.spc.markdown
Jorim Tielemans 7eace6c371 Various small fixes - a (#6977)
* Various small fixes

Add configuration and other titles
Remove empty lines
Fix indentation for configuration block
Reorder key list to be in line with the rest
Delete empty default value and fixed value type

* None is a valid value
2018-10-20 12:53:18 +02:00

1.1 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Vanderbilt SPC Alarm Instructions on how to setup the Vanderbilt SPC Alarm control panel within Home Assistant. 2017-05-18 22:01 true false true true vanderbilt_spc.png Alarm 0.47 Local Push

The spc alarm control panel platform allows you to control your Vanderbilt SPC alarms.

The requirement is that you have setup your SPC hub.

The changed_by attribute enables one to be able to take different actions depending on who armed/disarmed the alarm in automation.

automation:
  - alias: Alarm status changed
    trigger:
      - platform: state
        entity_id: alarm_control_panel.alarm_1
    action:
      - service: notify.notify
        data_template:
          message: >
            {% raw %}Alarm changed from {{ trigger.from_state.state }}
            to {{ trigger.to_state.state }}
            by {{ trigger.to_state.attributes.changed_by }}{% endraw %}