Yeah, I am only interested in getting this to work with the google calendar integration.
I follow you here. I would like to do this also but the below is what is in my “google_calendars.yaml” and it doesn’t seem to work. (I added this to the .yaml file after it was already showing in the integrations page after a home assistant update, maybe this is why it isn’t working for me, if you have any ideas on this, I would be much appreciative)— when I search heartworm in my states developer tab, nothing related to a calendar pops up sadly.
- cal_id: [email protected]
entities:
- device_id: xxx_gmail_com
ignore_availability: true
name: [email protected]
track: true
- device_id: heartworm
name: heartworm
track: true
search:: #heartworm
Did I possibly screw myself by updating home assistant to the OS version that required the GUI configuration and now the part that really makes this worth something may not be doable for me? It looks like anytime I try to add an entity to within the google_calendars.yaml, and then restart HA, the integration recreates the original calendar entry at the bottom of the same file (almost as if it can’t handle the idea we both know about after the update- this is a bummer). And I assume this means, you won’t be able to add anymore either if yours is now showing in the integrations GUI now? (The integration support… available for users before…)
So in your example. Your integration is already showing in the the integrations page? And you are not using the “google_calendars.yaml” anymore? Or you are still using the google_calendars.yaml while it is also showing in the integrations page? Have you added any additional “devices” after the integration has started showing up in your GUI?
The entities you are showing in your code post. Where do I put those? (In google_calendars.yaml) under the calendar like I have?
Lastly, how do you get the below to trigger. I feel like I’m missing something that you are trying to show me.
binary_sensor.recycle_bin_tomorrow
The last thing I believe I have for this topic and I’ll stop beating it like a dead horse, is can you show me how to write an automation that runs when the below occurs.
{{ state_attr(‘calendar.recycle_bin’, ‘message’)} = “Heartworm” and the state of the [email protected] calendar goes from “off” to “on” (this second part may be redundant because to my understanding it goes to on anytime your inside the time period of an active calendar event)
I believe the below is what you orgininally gave me but it was for a generic calendar and not our google calendar. I think the value template would need to be different but I just don’t understand this stuff good enough yet.
automation:
alias: Heartworn Tablet Notification
trigger:
- platform: calendar
event: start
entity_id: calendar.holidays_in_united_states
condition:
- condition: template
value_template: "{{ 'Heartworm Medicine' in trigger.calendar_event.summary }}"
action:
…..
mode: queued
For the value_template, would this work?:
value_template: >
{%- set event=states.calendar.xxx@gmail_com.attributes.message %}
{%- if event == "Heartworm Medicine" %}
true
{%- endif -%}
EDIT (CODE PASTE ABOVE) From below resource at time 16:18