Skip to content

Instantly share code, notes, and snippets.

@darookee
Last active October 18, 2022 07:53
Show Gist options
  • Save darookee/70ffb2ddcfba72da64f6977a90d7fc37 to your computer and use it in GitHub Desktop.
Save darookee/70ffb2ddcfba72da64f6977a90d7fc37 to your computer and use it in GitHub Desktop.
home-assistant - kaffee ist fertig
---
- alias: prepare coffee notification
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.kaffeemaschine_power
above: '80'
for: '00:01:30'
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.kaffeemaschine
- alias: coffee is done
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.kaffeemaschine_power
below: '40'
for: '00:00:30'
condition:
- condition: state
entity_id: input_boolean.kaffeemaschine
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.kaffeemaschine
- alias: notify for coffee
mode: single
trigger:
- platform: state
entity_id: input_boolean.kaffeemaschine
to: 'off'
action:
- service: notify.family
data:
title: "Der Kaffee ist fertig!"
message: ""
---
# ...
automation: !include_dir_merge_list automation/
input_boolean: !include_dir_merge_named input_boolean/
# ...
---
kaffeemaschine:
name: kaffeemaschine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment