Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Alarm Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Alarm Triggered Armed Away | |
| ########################################################## | |
| - alias: Alarm - Triggered Armed Away | |
| id: 'alarm_triggered_armed_away' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'triggered' | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "red" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights_exterior | |
| - light.lutron_lights | |
| - light.lutron_lights_exterior | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.siren | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER1s_office_move, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: 1.0 | |
| what: 'You are not Authorized to be Here. Law Enforcement Has Been Notified!' | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm Away Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| sound: | |
| name: default | |
| critical: 1 | |
| volume: 1.0 | |
| category: "alarm" | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm! (Front Porch Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-front-porch-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.front_porch | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm! (Backyard Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-backyard-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.backyard | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm Away Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm! (Front Porch Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-front-porch-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.front_porch | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm! (Backyard Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-backyard-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.backyard | |
| ########################################################## | |
| ## Alarm Triggered Armed Home | |
| ########################################################## | |
| - alias: Alarm - Triggered Armed Home | |
| id: 'alarm_triggered_armed_home' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'triggered' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "red" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights_exterior | |
| - light.lutron_lights | |
| - light.lutron_lights_exterior | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.siren | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm Home Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| sound: | |
| name: default | |
| critical: 1 | |
| volume: 1.0 | |
| category: "alarm" | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm! (Front Porch Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-front-porch-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.front_porch | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm! (Backyard Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-backyard-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.backyard | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm Home Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm! (Front Porch Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-front-porch-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.front_porch | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm! (Backyard Camera) | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-backyard-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.backyard | |
| ########################################################## | |
| ## Panic Button On | |
| ########################################################## | |
| - alias: Alarm - Panic Button On | |
| id: 'alarm_panic_button_on' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.panic_mode | |
| to: 'on' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Panic Button Has Been Pressed! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| sound: | |
| name: default | |
| critical: 1 | |
| volume: 1.0 | |
| category: "alarm" | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Panic Button Has Been Pressed! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "red" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights_exterior | |
| - light.lutron_lights | |
| - light.lutron_lights_exterior | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.siren | |
| ########################################################## | |
| ## Panic Button Off | |
| ########################################################## | |
| - alias: Alarm - Panic Button Off | |
| id: 'alarm_panic_button_off' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.panic_mode | |
| to: 'off' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.siren | |
| ########################################################## | |
| ## Panic Button Auto Off | |
| ########################################################## | |
| - alias: Alarm - Panic Button Auto Off | |
| id: 'alarm_panic_button_auto_off' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.panic_mode | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 2 | |
| seconds: 0 | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.siren | |
| ########################################################## | |
| ## Siren is On | |
| ########################################################## | |
| - alias: Alarm - Siren is On | |
| id: 'alarm_siren_is_on' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.siren | |
| to: 'on' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Siren has Turned On | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm' | |
| push: | |
| badge: 0 | |
| category: "siren" | |
| ########################################################## | |
| ## Door Alarm Away | |
| ########################################################## | |
| - alias: Alarm - Away Door Alarm | |
| id: 'alarm_away_door_alarm' | |
| trigger: | |
| - platform: state | |
| entity_id: group.doors | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_away' | |
| action: | |
| - service: alarm_control_panel.alarm_trigger | |
| entity_id: | |
| - alarm_control_panel.alarm | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Door Alarm Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm-door' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| ########################################################## | |
| ## Door Alarm Home | |
| ########################################################## | |
| - alias: Alarm - Home Door Alarm | |
| id: 'alarm_home_door_alarm' | |
| trigger: | |
| - platform: state | |
| entity_id: group.doors | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_home' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER1s_office_move, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: 0.5 | |
| what: 'Warning Alarm will Trigger in 15 Seconds' | |
| - service: alarm_control_panel.alarm_trigger | |
| entity_id: | |
| - alarm_control_panel.alarm | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Door Alarm Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm-door' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| ################################################################# | |
| ## Motion Alarm Away | |
| ################################################################# | |
| - alias: Alarm - Motion Alarm Away | |
| id: 'alarm_motion_alarm_away' | |
| trigger: | |
| - platform: state | |
| entity_id: group.motion | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: state | |
| entity_id: vacuum.main_floor_roomba | |
| state: 'docked' | |
| - condition: state | |
| entity_id: vacuum.upstairs_roomba | |
| state: 'docked' | |
| - condition: state | |
| entity_id: vacuum.basement_roomba | |
| state: 'docked' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_away' | |
| action: | |
| - service: alarm_control_panel.alarm_trigger | |
| entity_id: | |
| - alarm_control_panel.alarm | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Motion Alarm Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'security-alarm-motion' | |
| push: | |
| badge: 0 | |
| category: "alarm" | |
| ########################################################## | |
| ## Garage Alarm Home | |
| ########################################################## | |
| - alias: Alarm - Garage Alarm Home | |
| id: 'alarm_garage_alarm_home' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_home' | |
| action: | |
| #- service: alarm_control_panel.alarm_trigger | |
| # entity_id: | |
| # - alarm_control_panel.alarm | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door Alarm Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| ########################################################## | |
| ## Garage Alarm Away | |
| ########################################################## | |
| - alias: Alarm - Garage Alarm Away | |
| id: 'alarm_garage_alarm_away' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'open' | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_away' | |
| action: | |
| #- service: alarm_control_panel.alarm_trigger | |
| # entity_id: | |
| # - alarm_control_panel.alarm | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door Alarm Triggered! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| ########################################################## | |
| ## Disable Alarm when Home | |
| ########################################################## | |
| - alias: Alarm - Disable Alarm when Home | |
| id: 'alarm_disable_alarm_when_home' | |
| trigger: | |
| - platform: state | |
| entity_id: group.household | |
| from: 'not_home' | |
| to: 'home' | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'disarmed' | |
| action: | |
| - service: alarm_control_panel.alarm_disarm | |
| entity_id: alarm_control_panel.alarm | |
| ########################################################## | |
| ## Disable Alarm when USER1 or USER2 Home | |
| ########################################################## | |
| - alias: Alarm - Disable Alarm when USER1 or USER2 Home | |
| id: 'alarm_disable_alarm_when_USER1_or_USER2_home' | |
| trigger: | |
| - platform: state | |
| entity_id: person.USER1 | |
| from: 'not_home' | |
| to: 'home' | |
| - platform: state | |
| entity_id: person.USER2 | |
| from: 'not_home' | |
| to: 'home' | |
| - platform: state | |
| entity_id: group.friends_and_family | |
| from: 'not_home' | |
| to: 'home' | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'disarmed' | |
| action: | |
| - service: alarm_control_panel.alarm_disarm | |
| entity_id: alarm_control_panel.alarm | |
| ########################################################## | |
| ## Enable Alarm when Away | |
| ########################################################## | |
| - alias: Alarm - Enable Alarm when Away | |
| id: 'alarm_enable_alarm_when_away' | |
| trigger: | |
| - platform: state | |
| entity_id: group.household | |
| from: 'home' | |
| to: 'not_home' | |
| for: | |
| hours: 0 | |
| minutes: 5 | |
| seconds: 0 | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'disarmed' | |
| action: | |
| - service: alarm_control_panel.alarm_arm_away | |
| entity_id: alarm_control_panel.alarm | |
| ########################################################## | |
| ## Arm Home at Bedtime | |
| ########################################################## | |
| - alias: Alarm - Arm Home at Bedtime | |
| id: 'alarm_arm_home_at_bedtime' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.bedtime | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 5 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'disarmed' | |
| action: | |
| - service: alarm_control_panel.alarm_arm_home | |
| entity_id: alarm_control_panel.alarm | |
| ########################################################## | |
| ## Disarm Armed Home in the Morning | |
| ########################################################## | |
| - alias: Alarm - Disarm Armed Home in the Morning | |
| id: 'alarm_disarm_armed_home_in_the_morning' | |
| trigger: | |
| - platform: time | |
| at: '05:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'armed_home' | |
| action: | |
| - service: alarm_control_panel.alarm_disarm | |
| entity_id: alarm_control_panel.alarm | |
| ################################################################# | |
| ## Notifications | |
| ################################################################# | |
| ################################################################# | |
| ## Alarm Armed Home iOS Notification | |
| ################################################################# | |
| - alias: Alarm - Armed Home iOS Notification | |
| id: 'alarm_armed_home_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'armed_home' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm is Armed Home | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'alarm-on' | |
| push: | |
| badge: 0 | |
| category: "disablealarm" | |
| ################################################################# | |
| ## Alarm Armed Away iOS Notification | |
| ################################################################# | |
| - alias: Alarm - Armed Away iOS Notification | |
| id: 'alarm_armed_away_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'armed_away' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm is Armed Away | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'alarm-on' | |
| push: | |
| badge: 0 | |
| category: "disablealarm" | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm is Armed Away | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'alarm-on' | |
| push: | |
| badge: 0 | |
| category: "disablealarm" | |
| ################################################################# | |
| ## Alarm Disabled USER1 iOS Notification | |
| ################################################################# | |
| - alias: Alarm - Disabled USER1 iOS Notification | |
| id: 'alarm_disabled_USER1_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'disarmed' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Alarm is Disarmed | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'alarm-off' | |
| push: | |
| badge: 0 | |
| category: "enablealarm" | |
| ################################################################# | |
| ## Alarm Disabled USER2 iOS Notification | |
| ################################################################# | |
| - alias: Alarm - Alarm Disabled USER2 iOS Notification | |
| id: 'alarm_alarm_disabled_USER2_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: alarm_control_panel.alarm | |
| to: 'disarmed' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| - condition: time | |
| after: '05:01:00' | |
| before: '04:59:00' | |
| action: | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Alarm is Disarmed | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'alarm-off' | |
| push: | |
| badge: 0 | |
| category: "enablealarm" |