2019-04-17 22:46:06 +00:00
|
|
|
homeassistant:
|
|
|
|
customize:
|
2019-12-20 15:32:28 +00:00
|
|
|
input_label.aeotec_zw120_door_window_sensor_gen5_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.back_door_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.basement_door_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.downstairs_multi_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.front_room_multi_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.front_room_window_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.garage_door_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.garage_motion:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.guest_bedroom_multi_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.kitchen_motion_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00016c2d0e:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00016db6d2:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d0001a25041:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d0001a662fe:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00024e57d3:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00024e57fb:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00024e842c:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d00024ee084:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d000272bed1:
|
|
|
|
unit_of_measurement: "count"
|
2020-09-08 02:02:44 +00:00
|
|
|
input_label.motion_sensor_158d00047b6f69:
|
|
|
|
unit_of_measurement: "count"
|
2019-12-20 15:32:28 +00:00
|
|
|
input_label.motion_sensor_158d000272bf48:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.motion_sensor_158d000272bfd7:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.single_car_garage_door_tilt_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.stairs_motion_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.two_car_garage_door_tilt_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.upstairs_multi_sensor_sensor:
|
|
|
|
unit_of_measurement: "count"
|
2020-09-28 01:29:23 +00:00
|
|
|
input_label.door_window_sensor_158d0004231f7b:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.door_window_sensor_158d0004248d5b:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.door_window_sensor_158d00040ad8fc:
|
|
|
|
unit_of_measurement: "count"
|
|
|
|
input_label.door_window_sensor_158d000424a6d6:
|
|
|
|
unit_of_measurement: "count"
|
2019-04-17 22:46:06 +00:00
|
|
|
|
|
|
|
input_label:
|
2020-09-28 01:29:23 +00:00
|
|
|
door_window_sensor_158d000424a6d6:
|
2019-04-17 22:46:06 +00:00
|
|
|
name: Front Door
|
|
|
|
icon: mdi:run-fast
|
2020-09-28 01:29:23 +00:00
|
|
|
door_window_sensor_158d00040ad8fc:
|
2019-04-17 22:46:06 +00:00
|
|
|
name: Back Door
|
|
|
|
icon: mdi:run-fast
|
|
|
|
basement_door_sensor_sensor:
|
|
|
|
name: Basement Door
|
|
|
|
icon: mdi:run-fast
|
|
|
|
garage_door_sensor_sensor:
|
|
|
|
name: Garage Door
|
|
|
|
icon: mdi:run-fast
|
|
|
|
|
|
|
|
downstairs_multi_sensor_sensor:
|
|
|
|
name: TV Room Multi Sensor
|
|
|
|
icon: mdi:run-fast
|
|
|
|
front_room_multi_sensor_sensor:
|
|
|
|
name: Front Room Multi Sensor
|
|
|
|
icon: mdi:run-fast
|
|
|
|
front_room_window_sensor_sensor:
|
|
|
|
name: Front Room Sensor
|
|
|
|
icon: mdi:run-fast
|
|
|
|
garage_motion:
|
|
|
|
name: Garage Motion
|
|
|
|
icon: mdi:run-fast
|
|
|
|
guest_bedroom_multi_sensor_sensor:
|
|
|
|
name: Guest Bedroom Motion
|
|
|
|
icon: mdi:run-fast
|
|
|
|
kitchen_motion_sensor_sensor:
|
|
|
|
name: Kitchen Motion
|
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00016c2d0e:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Dining Room Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00016db6d2:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Front Room Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d0001a25041:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Family Room (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d0001a662fe:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Kitchen (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00024e57d3:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Master Bedroom (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00024e57fb:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Driveway Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00024e842c:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Backyard Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00024ee084:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Front Door Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d000272bed1:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Srinika Bedroom (Xiaomi)
|
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d00047b6f69:
|
|
|
|
name: Hasika Bedroom (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
2020-09-08 02:02:44 +00:00
|
|
|
|
2019-04-17 22:46:06 +00:00
|
|
|
motion_sensor_158d000272bf48:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Garage Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
motion_sensor_158d000272bfd7:
|
2020-09-08 02:02:44 +00:00
|
|
|
name: Office Room Motion (Xiaomi)
|
2019-04-17 22:46:06 +00:00
|
|
|
icon: mdi:run-fast
|
|
|
|
|
2020-09-28 01:29:23 +00:00
|
|
|
door_window_sensor_158d0004248d5b:
|
2019-04-17 22:46:06 +00:00
|
|
|
name: Single Car Garage Door
|
|
|
|
icon: mdi:run-fast
|
2020-09-28 01:29:23 +00:00
|
|
|
door_window_sensor_158d0004231f7b:
|
2019-04-17 22:46:06 +00:00
|
|
|
name: Double Car Garage Door
|
|
|
|
icon: mdi:run-fast
|
|
|
|
stairs_motion_sensor_sensor:
|
|
|
|
name: Stairs Motion
|
|
|
|
icon: mdi:run-fast
|
|
|
|
upstairs_multi_sensor_sensor:
|
|
|
|
name: Upstairs Motion Sensor
|
|
|
|
icon: mdi:run-fast
|
|
|
|
|
|
|
|
automation:
|
|
|
|
- alias: Count Motions
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2019-12-20 15:32:28 +00:00
|
|
|
to: "on"
|
2019-04-17 22:46:06 +00:00
|
|
|
entity_id:
|
2020-09-28 01:29:23 +00:00
|
|
|
- binary_sensor.door_window_sensor_158d000424a6d6
|
|
|
|
- binary_sensor.door_window_sensor_158d00040ad8fc
|
2019-04-17 22:46:06 +00:00
|
|
|
- binary_sensor.basement_door_sensor_sensor
|
|
|
|
- binary_sensor.downstairs_multi_sensor_sensor
|
|
|
|
- binary_sensor.front_room_multi_sensor_sensor
|
|
|
|
- binary_sensor.front_room_window_sensor_sensor
|
|
|
|
- binary_sensor.garage_door_sensor_sensor
|
|
|
|
- binary_sensor.garage_motion
|
|
|
|
- binary_sensor.guest_bedroom_multi_sensor_sensor
|
|
|
|
- binary_sensor.kitchen_motion_sensor_sensor
|
|
|
|
- binary_sensor.motion_sensor_158d00016c2d0e
|
|
|
|
- binary_sensor.motion_sensor_158d00016db6d2
|
|
|
|
- binary_sensor.motion_sensor_158d0001a25041
|
|
|
|
- binary_sensor.motion_sensor_158d0001a662fe
|
|
|
|
- binary_sensor.motion_sensor_158d00024e57d3
|
|
|
|
- binary_sensor.motion_sensor_158d00024e57fb
|
|
|
|
- binary_sensor.motion_sensor_158d00024e842c
|
|
|
|
- binary_sensor.motion_sensor_158d00024ee084
|
|
|
|
- binary_sensor.motion_sensor_158d000272bed1
|
2020-09-08 02:02:44 +00:00
|
|
|
- binary_sensor.motion_sensor_158d00047b6f69
|
2019-04-17 22:46:06 +00:00
|
|
|
- binary_sensor.motion_sensor_158d000272bf48
|
|
|
|
- binary_sensor.motion_sensor_158d000272bfd7
|
|
|
|
- binary_sensor.stairs_motion_sensor_sensor
|
2020-09-28 01:29:23 +00:00
|
|
|
- binary_sensor.door_window_sensor_158d0004248d5b # Single Car Garage
|
|
|
|
- binary_sensor.door_window_sensor_158d0004231f7b # Double Car Garage
|
2019-04-17 22:46:06 +00:00
|
|
|
- binary_sensor.upstairs_multi_sensor_sensor
|
|
|
|
action:
|
|
|
|
- service: input_label.set_value
|
|
|
|
data_template:
|
|
|
|
entity_id: "input_label.{{ trigger.entity_id.split('.')[1] }}"
|
|
|
|
value: >
|
|
|
|
{% set cur_value = states("input_label." ~ trigger.entity_id.split('.')[1] ) | int %}
|
|
|
|
{{ cur_value + 1 }}
|
|
|
|
|
|
|
|
- alias: Reset Motion Counters At Midnight
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: "00:00:00"
|
|
|
|
action:
|
|
|
|
- service: input_label.set_value
|
|
|
|
data:
|
|
|
|
value: 0
|
|
|
|
entity_id:
|
|
|
|
- input_label.basement_door_sensor_sensor
|
|
|
|
- input_label.downstairs_multi_sensor_sensor
|
|
|
|
- input_label.front_room_multi_sensor_sensor
|
|
|
|
- input_label.front_room_window_sensor_sensor
|
|
|
|
- input_label.garage_door_sensor_sensor
|
|
|
|
- input_label.garage_motion
|
|
|
|
- input_label.guest_bedroom_multi_sensor_sensor
|
|
|
|
- input_label.kitchen_motion_sensor_sensor
|
|
|
|
- input_label.motion_sensor_158d00016c2d0e
|
|
|
|
- input_label.motion_sensor_158d00016db6d2
|
|
|
|
- input_label.motion_sensor_158d0001a25041
|
|
|
|
- input_label.motion_sensor_158d0001a662fe
|
|
|
|
- input_label.motion_sensor_158d00024e57d3
|
|
|
|
- input_label.motion_sensor_158d00024e57fb
|
|
|
|
- input_label.motion_sensor_158d00024e842c
|
|
|
|
- input_label.motion_sensor_158d00024ee084
|
|
|
|
- input_label.motion_sensor_158d000272bed1
|
2020-09-08 02:02:44 +00:00
|
|
|
- input_label.motion_sensor_158d00047b6f69
|
2019-04-17 22:46:06 +00:00
|
|
|
- input_label.motion_sensor_158d000272bf48
|
|
|
|
- input_label.motion_sensor_158d000272bfd7
|
2020-09-28 01:29:23 +00:00
|
|
|
- input_label.door_window_sensor_158d000424a6d6
|
|
|
|
- input_label.door_window_sensor_158d00040ad8fc
|