diff --git a/configuration/automations/info-battery.yaml b/configuration/automations/info-battery.yaml index 70243e0..3363a4d 100644 --- a/configuration/automations/info-battery.yaml +++ b/configuration/automations/info-battery.yaml @@ -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 diff --git a/configuration/automations/info-unavailable-notice.yaml b/configuration/automations/info-unavailable-notice.yaml index 2ad1a4f..14acc27 100644 --- a/configuration/automations/info-unavailable-notice.yaml +++ b/configuration/automations/info-unavailable-notice.yaml @@ -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: diff --git a/configuration/automations/kitchen-motion.yaml b/configuration/automations/kitchen-motion.yaml index b2f4761..1ef4904 100644 --- a/configuration/automations/kitchen-motion.yaml +++ b/configuration/automations/kitchen-motion.yaml @@ -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