diff --git a/input_boolean.yaml b/input_boolean.yaml index d756f1a..050d74f 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -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: diff --git a/packages/coffeemachine.yaml b/packages/coffeemachine.yaml new file mode 100644 index 0000000..0552064 --- /dev/null +++ b/packages/coffeemachine.yaml @@ -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 }} \ No newline at end of file diff --git a/packages/sleep_mode.yaml b/packages/sleep_mode.yaml index 8528961..0487983 100644 --- a/packages/sleep_mode.yaml +++ b/packages/sleep_mode.yaml @@ -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'