Add sink motion sensor
This commit is contained in:
parent
2c45eb8645
commit
4acbf5c5a4
@ -71,6 +71,9 @@
|
|||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
below: '10'
|
below: '10'
|
||||||
entity_id: sensor.siren_alarm_battery_level
|
entity_id: sensor.siren_alarm_battery_level
|
||||||
|
- platform: numeric_state
|
||||||
|
below: '10'
|
||||||
|
entity_id: sensor.sink_motion_sensor_power
|
||||||
condition: [ ]
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone_pg
|
- service: notify.mobile_app_iphone_pg
|
||||||
|
@ -354,6 +354,12 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: device_offline
|
type: device_offline
|
||||||
subtype: device_offline
|
subtype: device_offline
|
||||||
|
# Sink motion sensor
|
||||||
|
- device_id: a1f7d8f69ffde756029a04c631b4b674
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: device_offline
|
||||||
|
subtype: device_offline
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone_pg
|
- service: notify.mobile_app_iphone_pg
|
||||||
data:
|
data:
|
||||||
|
@ -108,22 +108,34 @@
|
|||||||
for: '0:02:00'
|
for: '0:02:00'
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
to: 'off'
|
||||||
# - platform: state
|
- platform: state
|
||||||
# entity_id: binary_sensor.kitchen_worktop_accelerometer
|
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
|
||||||
# for: '0:02:00'
|
to: 'off'
|
||||||
# from: 'on'
|
for: '0:05:00'
|
||||||
# to: 'off'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.kitchen_motion_sensor
|
entity_id: binary_sensor.kitchen_motion_sensor
|
||||||
state: 'off'
|
state: 'off'
|
||||||
for: '0:02:00'
|
for: '0:02:00'
|
||||||
# - condition: not
|
- condition: state
|
||||||
# conditions:
|
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
|
||||||
# - condition: state
|
state: 'off'
|
||||||
# entity_id: binary_sensor.kitchen_worktop_accelerometer
|
for: '0:05:00'
|
||||||
# state: 'off'
|
|
||||||
# for: '0:02:00'
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.kitchen_lights
|
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