Hi, I have a working Google calendar integration.
In the calendar I have several topics like:
“wast green”, “wast yellow”, “birthday tom”, “birtday mary”
I would like to have 2 automations which triggers on “wast *” and “birthday *”.
In the automation I can add a text in “to” but I think “birthday” will not lead to a trigger for “birthday tom”.
Can somebody give me a hint ? I did not find an example for this problem.
If there is a solution: Would it be possible to get access to the complete message of the trigger in the action ? e.g. to send a text like “Info: ‘birthday tom’” ?
After much debugging I got meanwhile the working solution.
Here my snippet out of the file automations.yaml. Maybe it could be helpfule for someone else.
Preconditions:
Calender named “fhem”
Events in the calendar with “Mülltonne” in the title (eg.: “Mülltonne Blau”)
Telegram integration
status LED which can have different colors and “off”
This automation will only activated if the text “Mülltonne” is in the title. All other events will be ignored.
I think that this automation only works for the first active event.
Example:
04.02.2023 14:00 - 18:00 Holiday
04.02.2013 15:00 - 16:00 Mülltonne Blau
Will not trigger this automation because the state of the calendar did not change while the holiday evejt is ongoing.
At the begin of the event:
a telegarm message is sent with the complete title of the event
a LED is switched to the color “RED”
At the end of the event: