Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created February 1, 2024 02:17
Show Gist options
  • Save Didgeridrew/ccb2e509664b3af39cfba29097e95f17 to your computer and use it in GitHub Desktop.
Save Didgeridrew/ccb2e509664b3af39cfba29097e95f17 to your computer and use it in GitHub Desktop.
HA- Relay Google Calendar Notifications via Mobile App to HA
alias: Google Calendar Notification Relay
description: ""
trigger:
- platform: state
entity_id:
- sensor.b130dl_last_notification
condition:
- condition: state
entity_id: sensor.b130dl_last_notification
attribute: package
state: com.google.android.calendar
- condition: state
entity_id: sensor.b130dl_last_notification
attribute: channel_id
state: REMINDERS
action:
- service: persistent_notification.create
data:
message: |-
{{ trigger.to_state.state }}
{{ trigger.to_state.attributes['android.title'] }}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment