I have my google calendars talking to my HA so I do get an entity showing each calendar with the current or next event showing in the attributes. They look like this:
message: DeNessa
all_day: false
offset_reached: false
start_time: 2018-10-24 15:00:00
end_time: 2018-10-27 11:00:00
location: 2101
description:
friendly_name: 2101
However, when I try setting up a sensor to extract the attributes, i.e.
- platform: template
sensors:
event_title:
value_template: "{{ states.calendar.2101.attributes.message }}"
friendly_name: "Next Event"
I always get a state of “unknown” in the entity “sensor.event_title”.
What am I missing here?