Skip to content

Instantly share code, notes, and snippets.

@huizebruin
Last active March 1, 2023 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huizebruin/cc87171b7974517497fbb55cd4bef83e to your computer and use it in GitHub Desktop.
Save huizebruin/cc87171b7974517497fbb55cd4bef83e to your computer and use it in GitHub Desktop.
blueprint voor de S0tool
blueprint:
name: S0tool update notificatie
author: Huizebruin.nl
description: Er is een S0tool Update beschikbaar op Github
domain: automation
input:
notify_device:
name: Notify device
description: "Het apparaat welke de melding mag ontvangen."
selector:
device:
integration: mobile_app
trigger:
- platform: state
entity_id: sensor.s0tool_versie_github
condition:
- condition: template
value_template: |-
{{
states('sensor.s0tool_versie_github')
!=
states('sensor.s0tool_versie')
}}
- condition: not
conditions:
- condition: state
entity_id: sensor.s0tool_versie_github
state: unavailable
- condition: state
entity_id: sensor.s0tool_versie_github
state: unknown
action:
domain: mobile_app
type: notify
device_id: !input notify_device
title: 🚧 S0tool Update 🎉
message: >-
Er is een S0tool Update beschikbaar. Versie online: {{
states("sensor.s0tool_versie_github") }}
data:
actions:
- action: URI
title: Release Notes
uri: "https://github.com/huizebruin/s0tool/releases/{{states('sensor.s0tool_versie_github')}}"
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment