Add sink motion sensor
This commit is contained in:
parent
2c45eb8645
commit
4acbf5c5a4
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user