Automation based on the description of the google calendar event

How can I configure an automation that when google calendar event contains the word “light” in its description, a sonoff is activated?
I tried this but I don’t sure that work:


It’s correct? Or is there a more correct way?

Thank for the support.

Check out the examples in Calendar - Home Assistant where it has a link to trigger data for the various data fields including description. The last example about a light schedule shows how to check the summary for a value, which can be updated to check description.

I believe this would need to be a template condition.

Condition: Template

{{ 'light' in trigger.calendar_event.summary }}

I don’t think this is a wilcard value.

1 Like

Thank you so much. The documentation you linked is very useful! I will try as you indicated.