From 0c04b60e8ab87d45c9f35440883fe5a4fb65ae7d Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 29 Apr 2022 23:51:42 +0200 Subject: [PATCH] Move helpers to yaml --- configuration/automations/vacuum.yaml | 4 +-- configuration/configuration.yaml | 38 +++++++++++++++++++++++++++ scripts/70.vacuum.yaml | 2 +- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/configuration/automations/vacuum.yaml b/configuration/automations/vacuum.yaml index fafeac3..d68b5dd 100644 --- a/configuration/automations/vacuum.yaml +++ b/configuration/automations/vacuum.yaml @@ -34,7 +34,7 @@ action: - service: input_boolean.turn_on target: - entity_id: input_boolean.today_vacuumed + entity_id: input_boolean.vacuum_vacuumed_today - choose: - conditions: - condition: state @@ -52,7 +52,7 @@ action: - service: input_boolean.turn_off target: - entity_id: input_boolean.today_vacuumed + entity_id: input_boolean.vacuum_vacuumed_today - id: vacuum-clean-sensors alias: '[Vacuum] Clean sensors' diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index e347b4e..9d24a18 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -24,6 +24,18 @@ input_boolean: 3d_printer_timelapse: name: "3D printer timelapse" icon: "mdi:camera-burst" + mute_doorbell: + name: "Mute doorbell" + icon: "mdi:bell-off" + pc_caffeine: + name: "PC Caffeine" + icon: "mdi:desktop-tower-monitor" + pc_sleeping: + name: "PC sleeping" + icon: "mdi:desktop-tower-monitor" + sleep_mode: + name: "Sleep mode" + icon: "mdi:weather-night" vacuum_office: name: "Vacuum Office" icon: "mdi:chair-rolling" @@ -45,8 +57,34 @@ input_boolean: vacuum_bathroom: name: "Vacuum Bathroom" icon: "mdi:shower" + vacuum_vacuumed_today: + name: "Vacuumed today" + icon: "mdi:robot-vacuum" input_datetime: + alarm: + name: "Alarm time" + icon: "mdi:bell-sleep" + has_date: true + has_time: true + day_mode: + name: "Day mode time" + icon: "mdi:weather-sunset" + has_date: false + has_time: true + sleep_mode: + name: "Sleep mode time" + icon: "mdi:weather-night" + has_date: false + has_time: true input_number: + power_price: + name: "Power Price" + icon: "mdi:transmission-tower" + min: 0 + max: 2 + step: 0.01 + unit_of_measurement: zł/kWh + input_select: home_mode: name: Home mode diff --git a/scripts/70.vacuum.yaml b/scripts/70.vacuum.yaml index affe5e3..6a8ee9f 100644 --- a/scripts/70.vacuum.yaml +++ b/scripts/70.vacuum.yaml @@ -4,7 +4,7 @@ vacuum_today: - choose: - conditions: - condition: state - entity_id: input_boolean.today_vacuumed + entity_id: input_boolean.vacuum_vacuumed_today state: 'off' sequence: - choose: