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

48 lines
1.1 KiB
YAML
Executable File

###################################
## Start Up Section
###################################
- alias: Startup Notification and Shut startup lights
id: f3f0a8d1-6c40-43e0-91e4-827194f78506
trigger:
- platform: homeassistant
event: start
action:
- service: script.notify_engine
data_template:
title: 'Home Assistant StartUp'
value1: 'Home Assistant is Up and Running!'
who: 'carlo'
apns_id: 'information'
- service: homeassistant.update_entity
entity_id: binary_sensor.updater
- service: light.turn_off
entity_id: light.hallway_lights
- service: mqtt.publish
data:
topic: "garadget/GSmall/command"
payload: "get-status"
- service: mqtt.publish
data:
topic: "garadget/GLarge/command"
payload: "get-status"
- condition: state
entity_id: sun.sun
state: 'above_horizon'
- service: notify.alexa_media
data:
target:
- media_player.office
title: "Home Assistant Restarted"
data:
type: announce
#method: all
message: "Home Assistant has been restarted."