Hey there,
Probably you can help me. I have no idea what I am doing wrong. I am trying to get m GameDay sensor right (which I did with this tutorial Create an "Upcoming Sports Game" card with Google Calendar) I was already writing down my request in this group but no one could help me
I used the sensor configuration everyone else has but it shows not what it’s supposed to. It should be like "next Game Saturday 26th at 15.30 but instead it’s formatted terribly
Thats my code
#Eintrachts Next Up Date
- platform: template
sensors:
eintracht_date:
entity_id: calendar.eintracht_frankfurt_spielplan_profimannschaft
friendly_name: Eintrachts next game
value_template: >-
{% if is_state('calendar.eintracht_frankfurt_spielplan_profimannschaft', 'on') %}
Playing Now
{% else %}
{% set st = state_attr('calendar.eintracht_frankfurt_spielplan_profimannschaft', 'start_time') %}
{% if st != None %}
{{ as_timestamp(st) | timestamp_custom("%A, %b %d at %-I:%M %p") }}
{% else %}
No games scheduled
{% endif %}
{% endif %}
#Eintrachts Next Opponent
- platform: template
sensors:
eintrachts_opponent:
entity_id: calendar.eintracht_frankfurt_spielplan_profimannschaft
friendly_name: Eintrachts Next Opponent
value_template: >-
{{ states.calendar.eintracht_frankfurt_spielplan_profimannschaft.attributes.message }}
