From 603a4f81a6cc32a5a48cb909d9ba724174aee5ff Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 12 Jan 2021 00:54:15 +0100 Subject: [PATCH] Add 3d printer automations --- automations/files/3d-printer.yaml | 23 +++++++++++++++++++++++ automations/files/bedroom-motion.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 automations/files/3d-printer.yaml diff --git a/automations/files/3d-printer.yaml b/automations/files/3d-printer.yaml new file mode 100644 index 0000000..d22e34a --- /dev/null +++ b/automations/files/3d-printer.yaml @@ -0,0 +1,23 @@ +- id: 3dprinter-off + alias: '[3D Printer] Turn off' + description: '' + mode: single + trigger: + - type: value + platform: device + device_id: 58e9b8fc848631004a3c1e303ff25229 + entity_id: sensor.3d_printer_power + domain: sensor + below: 10 + for: + hours: 0 + minutes: 30 + seconds: 0 + condition: + - condition: state + entity_id: binary_sensor.octoprint_printing + state: 'off' + action: + - service: switch.turn_off + data: { } + entity_id: switch.3d_printer_switch diff --git a/automations/files/bedroom-motion.yaml b/automations/files/bedroom-motion.yaml index 00bf494..3eea806 100644 --- a/automations/files/bedroom-motion.yaml +++ b/automations/files/bedroom-motion.yaml @@ -9,7 +9,7 @@ condition: - condition: numeric_state entity_id: sensor.bedroom_motion_illuminance - below: '100' + below: '50' - condition: state entity_id: input_select.home_mode state: Day