Last active
March 1, 2023 21:10
-
-
Save huizebruin/cc87171b7974517497fbb55cd4bef83e to your computer and use it in GitHub Desktop.
blueprint voor de S0tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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