From 60b31361af9aaf81494c40a2e157eb1e871c2469 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 24 Apr 2022 02:20:47 +0200 Subject: [PATCH] Add kitchen tabetop sensor --- configuration/automations/info-battery.yaml | 3 + .../automations/info-unavailable-notice.yaml | 7 +++ configuration/automations/kitchen-motion.yaml | 59 +++---------------- 3 files changed, 19 insertions(+), 50 deletions(-) diff --git a/configuration/automations/info-battery.yaml b/configuration/automations/info-battery.yaml index 3363a4d..52d5191 100644 --- a/configuration/automations/info-battery.yaml +++ b/configuration/automations/info-battery.yaml @@ -74,6 +74,9 @@ - platform: numeric_state below: '10' entity_id: sensor.sink_motion_sensor_power + - platform: numeric_state + below: '10' + entity_id: sensor.kitchen_tabletop_motion_battery_level condition: [ ] action: - service: notify.mobile_app_iphone_pg diff --git a/configuration/automations/info-unavailable-notice.yaml b/configuration/automations/info-unavailable-notice.yaml index b2650e5..ae6e6f3 100644 --- a/configuration/automations/info-unavailable-notice.yaml +++ b/configuration/automations/info-unavailable-notice.yaml @@ -417,6 +417,13 @@ platform: device type: device_offline subtype: device_offline + # Z-Wave Kitchen tabletop motion + - platform: device + device_id: c7bb75d230dd4f8a5b7ece910f00c583 + domain: zwave_js + type: state.node_status + entity_id: sensor.node_6_node_status + to: dead action: - service: notify.mobile_app_iphone_pg data: diff --git a/configuration/automations/kitchen-motion.yaml b/configuration/automations/kitchen-motion.yaml index 1ef4904..c0b7b9b 100644 --- a/configuration/automations/kitchen-motion.yaml +++ b/configuration/automations/kitchen-motion.yaml @@ -6,6 +6,9 @@ entity_id: binary_sensor.kitchen_motion_sensor from: 'off' to: 'on' + - platform: state + entity_id: binary_sensor.kitchen_tabletop_motion_detection + to: 'on' action: - choose: - conditions: @@ -51,54 +54,6 @@ brightness_pct: 5 kelvin: 2700 -#- id: kitchen-vibration -# alias: '[Kitchen] Vibration' -# trigger: -# - platform: state -# entity_id: binary_sensor.kitchen_worktop_accelerometer -# to: 'on' -# action: -# - choose: -# - conditions: -# - condition: state -# entity_id: input_select.home_mode -# state: Day -# - condition: numeric_state -# entity_id: sensor.kitchen_motion_sensor_illuminance -# below: '21' -# sequence: -# - choose: -# - conditions: -# - condition: state -# entity_id: input_boolean.sleep_mode -# state: 'on' -# sequence: -# - service: light.turn_on -# entity_id: light.kitchen_lights -# data: -# brightness_pct: 100 -# kelvin: 2000 -# - conditions: -# - condition: state -# entity_id: input_boolean.sleep_mode -# state: 'off' -# sequence: -# - service: light.turn_on -# entity_id: light.kitchen_lights -# data: -# brightness_pct: 100 -# kelvin: 3200 -# - conditions: -# - condition: state -# entity_id: input_select.home_mode -# state: Night -# sequence: -# - service: light.turn_on -# entity_id: light.kitchen_lights -# data: -# brightness_pct: 5 -# kelvin: 2700 - - id: kitchen-lights-off alias: '[Kitchen] Lights Off' mode: restart @@ -111,7 +66,7 @@ - platform: state entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone to: 'off' - for: '0:05:00' + for: '0:02:00' condition: - condition: state entity_id: binary_sensor.kitchen_motion_sensor @@ -120,7 +75,11 @@ - condition: state entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone state: 'off' - for: '0:05:00' + for: '0:02:00' + - condition: state + entity_id: binary_sensor.kitchen_tabletop_motion_detection + state: 'off' + for: '0:02:00' action: - service: light.turn_off entity_id: light.kitchen_lights