Automation TTS Google home

New user here and loving the community so far. I have everything work except Automation.
Simlpe script I thought. When Light turns on send TTS command to Google Home speaker. When I click on the speaker from the dashboard TTS works fine. Just not Automation. Here is my script

automation:

  • alias: Light ON
    trigger:
    platform: state
    entity_id: switch.downstairs_light_switch
    from: ‘off’ <—I have moved this line in testing
    to: ‘on’
    action:
    service: tts.google_say
    entity_id: media_player.basement_home
    data:
    message: ‘Lights Turned on.’

Rebooted my server and its working…Not sure why but the commands work :slight_smile:

Thanks for this. Worked great for making google TTS work in automations