Hi I am trying to get two services to run after home assistant starts bellow is my code
my swi
- alias: home_assistant_started&Alarm
trigger:
platform: homeassistant
event: start
action:
- service: homeassistant.turn_on
entity_id: switch.python
- service: tts.google_say
entity_id: media_player.living_room_speaker
data:
message: 'Home Assistant Is Online'
This is what was working below but i want to have the automation smaller
would prefer google tts to only tiger when witch.python is turned on
- alias: home_assistant_started&Alarm
trigger:
platform: homeassistant
event: start
action:
- service: homeassistant.turn_on
entity_id: switch.python
# - service: tts.google_say
# entity_id: media_player.living_room_speaker
# data:
# message: 'Home Assistant Is Online'
# Testing Google
- alias: Python Script Auto started
trigger:
platform: homeassistant
event: start
action:
- service: tts.google_say
entity_id: media_player.living_room_speaker
data:
message: 'Home Assistant Is Online'