Skip to content

Instantly share code, notes, and snippets.

@Snipercaine
Created March 22, 2019 22:22
Show Gist options
  • Save Snipercaine/bb6383f6168d7be0870943415c7fd016 to your computer and use it in GitHub Desktop.
Save Snipercaine/bb6383f6168d7be0870943415c7fd016 to your computer and use it in GitHub Desktop.
###Configuration.yaml#####
ios:
push:
categories:
- name: cameras
identifier: 'camera'
actions:
- identifier: 'TRIGGER_ALARM'
title: 'Trigger Alarm'
destructive: 'true'
- identifier: 'POLICE_ALL'
title: 'Turn on Police Lights'
- identifier: 'PORCH_LIGHTS'
title: 'Turn on Porch Lights'
- identifier: 'OFFICE_ALARM'
title: 'Office Alarm'
- identifier: 'TTS_MESSAGE'
title: 'Alexa TTS Message'
behavior: 'textInput'
textInputButtonTitle: 'Send TTS'
textInputPlaceholder: 'Who goes there?'
######Automations.yaml###########
- alias: Camera actionable notification
id: cameraactionablenotification238409284
initial_state: true
trigger:
platform: state
entity_id: input_boolean.test_trigger
action:
service: notify.ios_justin_iphone7
data:
title: ALERT
message: Someone is at the Front Door
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.blackptz
- alias: office security system
id: officesecuritysystem34928374982374
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.office_pir
from: 'off'
to: 'on'
condition:
condition: template
value_template: '{{ states.device_tracker.drzzs.state != ''home'' }}'
action:
service: notify.ios_justin_iphone7
data:
title: Yo!
message: Someones in the Keep!
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.pizero_105
- alias: trigger the alarm
id: triggerthealarm234234234
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: TRIGGER_ALARM
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
- alias: turn on police lights
id: turnonpolicealllights38247982374
initial_state: true
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: POLICE_ALL
action:
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: Police All
- delay: 00:30:00
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: solid
- delay: 00:00:10
- service: light.turn_off
entity_id: light.holiday_lights, light.side_lights, light.tree_lights, light.office_test_lights
- alias: turn on porch lights
id: turnonporchlights23432423
initial_state: true
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: PORCH_LIGHTS
action:
- service: switch.turn_on
data:
entity_id: switch.front_porch, switch.back_porch, switch.side_porch
- alias: trigger office alarm
id: triggerofficealarm12323423
initial_state: true
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: OFFICE_ALARM
action:
- service: switch.turn_on
data:
entity_id: switch.office_fan, switch.office_light, switch.office_crown, switch.desk_leds
- service: media_player.alexa_tts
data:
entity_id: media_player.workbench
message: Hello there. Please don't make a mess in Daddys office and whatever
you do, don't eat all his cinnamon bears.
- alias: notificationTTSbutton
id: notificationttsbutton23424234234
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: TTS_MESSAGE
action:
- service: media_player.alexa_tts
entity_id: media_player.workbench
data_template:
message: '{{ trigger.event.data["textInput"] }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment