Another way of garbage pickup notifications

I use the Lametric platform to notify me of garbage collection the next day.

configuration.yaml:

sensor:
  - platform: time_date
    display_options:
      - 'time'
google:
  client_id: !secret google_client_id
  client_secret: !secret google_client_secret
  track_new_calendar: True

lametric:
  client_id: !secret lametric_client_id
  client_secret: !secret lametric_client_secret

automation.yaml:

Basically what this automation does is check every hour if a calendar item exists with the attribute ‘GFT’ within the next 36000 seconds (10 hours). Since all my calendar items start at 0:00, I get notified every hour from 14:00u.

- alias: 'Notify Lametric - Afvalkalender GFT'
  trigger:
     - platform: time
       minutes: '/60'
       seconds: 00
  condition:
    - condition: template
      value_template: >-
        {%- if (as_timestamp(now()) > (as_timestamp(states.calendar.afvalkalender.attributes.start_time) - 36000)) and ( as_timestamp( states.calendar.afvalkalender.attributes.start_time ) ) - ( as_timestamp( now() ) > 0 ) -%}
          true
        {%- endif -%}
    - condition: template
      value_template: "{{ states.calendar.afvalkalender.attributes.message  == 'GFT' }}"
  action:
  - service: notify.lametric_woonkamer
    data:
      message: "{{ states.calendar.afval_gft.attributes.description }} is being picked up tomorrow morning"
      data:
        sound: 'notification3'
        icon: 'i17004'