Home-AssistantConfig/config/automation/Timed_Triggers/startup_notification.yaml

40 lines
978 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
###################################
## Start Up Section
###################################
- alias: Startup Notification and Shut startup lights
2018-01-02 00:00:45 +00:00
trigger:
- platform: homeassistant
event: start
action:
- service: script.notify_engine
data_template:
title: 'Home Assistant StartUp'
value1: 'Home Assistant is Up and Running!'
2018-01-02 00:00:45 +00:00
who: 'carlo'
apns_id: 'Startup'
2018-01-02 00:00:45 +00:00
- service: light.turn_off
entity_id: light.hallway_lights
- service: mqtt.publish
data:
topic: "garadget/Garadget Small/command"
payload: "get-status"
- service: mqtt.publish
data:
topic: "garadget/Garadget Large/command"
payload: "get-status"
- service: notify.alexa_media
data:
target:
- media_player.office
title: "Home Assistant Restarted"
data:
type: announce
#method: all
message: "Home Assistant has been restarted."