I’m trying to create chorse for my kids on my google calender. The automation i want to run with it when my kids press there aqara button it will trigger our “nest hub” to tell them there chores for today while i get my work done. I get this error of my response variable is wrong. I have created the script first before i add it to the automation. This is my script :
alias: "Chore "
sequence:
- service: calendar.list_events
data:
start_date_time: "{{ now().strftime('%Y-%m-%d') }}"
end_date_time: "{{ now().strftime('%Y-%m-%d') }}"
target:
entity_id: calendar.clean_the_table
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr('calendar.clean_the_table', 'message') }}"
sequence:
- service: tts.speak
data:
cache: true
media_player_entity_id: media_player.nest_hub_kitchen
message: >-
Next chore is {{ state_attr('calendar.clean_the_table',
'message') }}
target:
entity_id: tts.google_en_com
default:
- service: tts.speak
data:
cache: true
message: No chore scheduled for today
media_player_entity_id: media_player.nest_hub_kitchen
target:
entity_id: tts.google_en_com
mode: single
icon: mdi:spray-bottle