1
0

Add sink motion sensor

This commit is contained in:
Przemek Grondek 2022-04-23 21:32:26 +02:00
parent 2c45eb8645
commit 4acbf5c5a4
3 changed files with 32 additions and 11 deletions

View File

@ -71,6 +71,9 @@
- platform: numeric_state
below: '10'
entity_id: sensor.siren_alarm_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.sink_motion_sensor_power
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg

View File

@ -354,6 +354,12 @@
platform: device
type: device_offline
subtype: device_offline
# Sink motion sensor
- device_id: a1f7d8f69ffde756029a04c631b4b674
domain: zha
platform: device
type: device_offline
subtype: device_offline
action:
- service: notify.mobile_app_iphone_pg
data:

View File

@ -108,22 +108,34 @@
for: '0:02:00'
from: 'on'
to: 'off'
# - platform: state
# entity_id: binary_sensor.kitchen_worktop_accelerometer
# for: '0:02:00'
# from: 'on'
# to: 'off'
- platform: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
to: 'off'
for: '0:05:00'
condition:
- condition: state
entity_id: binary_sensor.kitchen_motion_sensor
state: 'off'
for: '0:02:00'
# - condition: not
# conditions:
# - condition: state
# entity_id: binary_sensor.kitchen_worktop_accelerometer
# state: 'off'
# for: '0:02:00'
- condition: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
state: 'off'
for: '0:05:00'
action:
- service: light.turn_off
entity_id: light.kitchen_lights
- id: kitchen-sink-light-off
alias: '[Kitchen] Sink light off'
mode: single
trigger:
- platform: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
to: 'off'
for: '0:05:00'
condition: [ ]
action:
- service: light.turn_off
data: { }
target:
entity_id: light.kitchen_sink_lighstrip