I am trying to get Alexa to announce whenever the weather.home status changes. I am getting the following error message from trace: Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘from_state’
I would appreciate any help in resolving this issue. Thank you.
My YAML code:
alias: Weather changes
description: Notify when the weather changes
trigger:
- platform: state
entity_id: weather.home
condition: - condition: time
after: ‘15:30:00’
before: ‘23:30:00’
action: - service: notify.alexa_media_show
data:
message: >-
Hi there. I wanted to let you know that the weather conditions have
changed from {{ trigger.from_state.state }} to {{ trigger.to_state.state
}} The real feel temperature is
{{states(“sensor.home_apparent_temperature”)}}
data:
type: tts
mode: single