I am struggling with the following:
I use a scraper HACS Afvalwijzer which provides me sensor entities with the correct dates for waste collection. I receive the sensors and can put them in a card, etc.
I am also using the Google Calendar integration, which also works fine.
What I would like is to write an automated a calendar event in google, when a waste collection sensor comes up with a new date.
I am looking for a simple solution since I am fairly new to all this. At this moment I am trying to get it done in Settings>Automations and go from there. I am not (yet) familiar with using templates.
Could anyone get me on the right track for this?
This is what I got so far (obviously not working)
- id: ‘1602533298966’
alias: Vuilnis Groen
description: ‘’
trigger:- platform: state
entity_id: sensor.afvalwijzer_gft
to: ‘on’
condition: - condition: template
value_template: ‘"{{ state_attr(’‘sensor.afvalwijzer_gft’’, ‘‘date’’) == true
}}"’
action: - service: google.add_event
data:
message: Groene Container wordt geleegd
callendar_id: i deleted this.calendar.google.com
mode: single
- platform: state