Created
September 6, 2022 19:45
-
-
Save stefanandres/2b4cbd1462c6dea2e5bb7b032cd51263 to your computer and use it in GitHub Desktop.
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
automations: | |
- alias: Waschmaschine arbeitet | |
id: automation_washing_machine_arbeitet | |
description: >- | |
Wenn der Stecker über 5 Watt verbraucht, wird der Zustand des Sensors | |
"Waschmaschine" auf "arbeitet" gesetzt. | |
trigger: | |
- platform: numeric_state | |
entity_id: sensor.waschmaschine_current_consumption | |
above: '5' | |
condition: [] | |
action: | |
- service: input_select.select_option | |
data: | |
option: arbeitet | |
entity_id: input_select.washing_machine_status | |
mode: single | |
- alias: Waschmaschine fertig | |
id: automation_washing_machine_fertig | |
description: '' | |
trigger: | |
- platform: numeric_state | |
for: '00:10:00' | |
above: '0.6' | |
below: '2' | |
entity_id: sensor.waschmaschine_current_consumption | |
condition: | |
- condition: state | |
entity_id: input_select.washing_machine_status | |
state: arbeitet | |
action: | |
- service: input_select.select_option | |
data: | |
option: fertig | |
entity_id: input_select.washing_machine_status | |
mode: single | |
- alias: Waschmaschine aus | |
id: automation_washing_machine_aus | |
description: '' | |
trigger: | |
- platform: numeric_state | |
entity_id: sensor.waschmaschine_current_consumption | |
for: '00:01:00' | |
below: '0.8' | |
condition: | |
- condition: state | |
entity_id: input_select.washing_machine_status | |
state: fertig | |
action: | |
- service: input_select.select_option | |
data: | |
option: aus | |
entity_id: input_select.washing_machine_status | |
mode: single | |
input_select: | |
washing_machine_status: | |
name: Waschmaschine Status | |
options: | |
- aus | |
- arbeitet | |
- fertig | |
initial: aus | |
template: | |
- binary_sensor: | |
- name: waschmaschine_ist_fertig | |
state: "{{ states('input_select.washing_machine_status') == 'fertig' }}" | |
alert: | |
waschmaschine_fertig: | |
name: Waschmaschine fertig | |
title: Waschmaschine | |
message: "🧺 Die Waschmaschine ist fertig" | |
done_message: "✅ Die Waschmaschine ist ausgeschaltet" | |
entity_id: binary_sensor.waschmaschine_ist_fertig | |
state: 'on' | |
repeat: 30 | |
#repeat: | |
# - 1 | |
can_acknowledge: True | |
skip_first: False | |
notifiers: | |
- XXX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment