1
0

Add Office Vibration sensor

This commit is contained in:
Przemek Grondek 2023-02-01 18:06:14 +01:00
parent 894a5d9980
commit 322d536967
3 changed files with 31 additions and 6 deletions

View File

@ -112,6 +112,28 @@
data: data:
url: "/lovelace-tablet/security" url: "/lovelace-tablet/security"
- id: alarm-away-test-vibration
alias: '[Alarm] Window vibration test'
trigger:
- platform: state
entity_id: binary_sensor.office_vibration
to: 'on'
condition:
# - condition: state
# entity_id: alarm_control_panel.home_alarm
# state: armed_away
action:
# - service: alarm_control_panel.alarm_trigger
# entity_id: alarm_control_panel.home_alarm
- service: notify.mobile_app_iphone
data:
title: "Vibration Test ALARM!"
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }}
data:
entity_id: camera.living_room
url: "/lovelace-tablet/security"
- id: alarm-night - id: alarm-night
alias: '[Alarm] Trigger alarm at night' alias: '[Alarm] Trigger alarm at night'
trigger: trigger:

View File

@ -161,6 +161,9 @@
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.office_thermostat_battery_level entity_id: sensor.office_thermostat_battery_level
- platform: numeric_state
below: '10'
entity_id: sensor.office_window_vibration_sensor_battery
- platform: numeric_state - platform: numeric_state
below: '10' below: '10'
entity_id: sensor.office_window_sensor_battery entity_id: sensor.office_window_sensor_battery

View File

@ -303,12 +303,6 @@
platform: device platform: device
type: device_offline type: device_offline
subtype: device_offline subtype: device_offline
# Front door vibration
- device_id: f5e5356b4a45190ec2dad08ca9f991e8
domain: zha
platform: device
type: device_offline
subtype: device_offline
# Hallway Button # Hallway Button
- device_id: cc4f08a2e2f0e5aebc43b87164378795 - device_id: cc4f08a2e2f0e5aebc43b87164378795
domain: zha domain: zha
@ -430,6 +424,12 @@
platform: device platform: device
type: device_offline type: device_offline
subtype: device_offline subtype: device_offline
# Office Window vibration
- device_id: f5e5356b4a45190ec2dad08ca9f991e8
domain: zha
platform: device
type: device_offline
subtype: device_offline
# Printer button # Printer button
- device_id: 0c23a8e92f43f628e584dc1805c6915e - device_id: 0c23a8e92f43f628e584dc1805c6915e
domain: zha domain: zha