I’m trying to create an automation, using the automation editor, that when I turn on the kitchen lights in the morning, has google home read my weather from some weather sensor api that I have installed. I can’t seem to get it to trigger from my light being turned on, at all. When I try to run this through the services part of my HA control panel, it triggers the tts, but it reads the sensors just as they are typed, such as “sensor.pws_temp_f”. What am I doing wrong here? I’m new to this depth of config, but I really want to get it down.
- data:
entity_id: media_player.kitchen_home
message: Good morning my little human. It is {{ sensor.pws_weather }} outside,
with a temperature of {{ sensor.pws_temp_f }}, and the wind is {{ sensor.pws_wind_string }}. Have
a wonderful day!
service: tts.google_say
alias: morning_weather
condition:
- after: '17:00'
before: '19:00'
condition: time
id: '1515643418012'
trigger:
- entity_id: light.kitchen_led_level
from: 'off'
platform: state
to: 'on'```