Skip to content

Instantly share code, notes, and snippets.

@jrgutier
Created March 15, 2023 02:03
Show Gist options
  • Save jrgutier/92fe504d6c5adc120733dae43d4b9d45 to your computer and use it in GitHub Desktop.
Save jrgutier/92fe504d6c5adc120733dae43d4b9d45 to your computer and use it in GitHub Desktop.
Rivian Software Update Notification
alias: Rivian Software Update Notification
description: ""
trigger:
- platform: state
entity_id:
- sensor.rivian_telematics_ota_status_status
condition:
- condition: template
value_template: |-
{{ trigger.to_state.state != trigger.from_state.state and
trigger.to_state is not none and
trigger.from_state is not none and
trigger.to_state.state not in ['unknown','unavailable'] }}
action:
- service: notify.notify
data:
message: >-
Rivian Software Update ({{
states('sensor.rivian_telematics_ota_status_available_version')
}}) changed to {{ states('sensor.rivian_telematics_ota_status_status')
}}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment