1
0

Add kitchen tabetop sensor

This commit is contained in:
Przemek Grondek 2022-04-24 02:20:47 +02:00
parent 243dd80de5
commit 60b31361af
3 changed files with 19 additions and 50 deletions

View File

@ -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

View File

@ -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:

View File

@ -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