Skip to content

Commit

Permalink
add binary_sensor.coffeemachine
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Apr 11, 2021
1 parent 059fe1b commit 2ac23c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions input_boolean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ heading_home_notifier_user_one:
icon: mdi:telegram
dishwasher:
name: Spühlmaschine
coffeemachine:
name: Kaffeemaschine
washingmachine:
name: Waschmaschine
persistence_plantwateringnotifier_reminder_acknowledged:
Expand Down
8 changes: 8 additions & 0 deletions packages/coffeemachine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
binary_sensor:
- platform: template
sensors:
coffeemachine:
friendly_name: "Kaffeemaschine ist an"
value_template: >-
{{ states("sensor.blitzwolf_shp6_15a_1_wattage") | float > 5 }}
4 changes: 2 additions & 2 deletions packages/sleep_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ automation:
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.coffeemachine
entity_id: binary_sensor.coffeemachine
from: "off"
to: "on"
action:
- service: homeassistant.turn_on
- service: homeassistant.turn_off
entity_id: input_boolean.sleepmode
- id: 0cdc8f40-8de1-499f-ad30-733c04d8f728
alias: 'Alexa Ansagen aus wenn wir schlafen'
Expand Down

0 comments on commit 2ac23c4

Please sign in to comment.