mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Add motion sensors from mqtt
This commit is contained in:
@@ -2,7 +2,7 @@ automation:
|
||||
- alias: Lighting · Hallway · Day mode · Motion · Turn lights on
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_2_ias_zone
|
||||
entity_id: binary_sensor.hallway_motion_occupancy
|
||||
to: "on"
|
||||
condition:
|
||||
condition: state
|
||||
@@ -15,7 +15,7 @@ automation:
|
||||
- alias: Lighting · Hallway · Day mode · Motion · Turn lights off
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_2_ias_zone
|
||||
entity_id: binary_sensor.hallway_motion_occupancy
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
@@ -30,7 +30,7 @@ automation:
|
||||
- alias: Lighting · Hallway · Night mode · Motion · Turn lights on
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_2_ias_zone
|
||||
entity_id: binary_sensor.hallway_motion_occupancy
|
||||
to: "on"
|
||||
condition:
|
||||
condition: not
|
||||
@@ -51,7 +51,7 @@ automation:
|
||||
- alias: Lighting · Hallway · Night mode · Motion · Turn lights off
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_2_ias_zone
|
||||
entity_id: binary_sensor.hallway_motion_occupancy
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
|
||||
@@ -2,7 +2,7 @@ automation:
|
||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_1_ias_zone
|
||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||
to: "on"
|
||||
condition:
|
||||
condition: and
|
||||
@@ -34,7 +34,7 @@ automation:
|
||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights off
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_1_ias_zone
|
||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 30
|
||||
@@ -53,7 +53,7 @@ automation:
|
||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights on
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_1_ias_zone
|
||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||
to: "on"
|
||||
condition:
|
||||
- condition: not
|
||||
@@ -75,7 +75,7 @@ automation:
|
||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights off
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.motion_1_ias_zone
|
||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
|
||||
@@ -45,16 +45,16 @@ homekit:
|
||||
- light.hallway_entrance
|
||||
- light.hallway_main
|
||||
- light.tuya_kitchen
|
||||
- binary_sensor.motion_1_ias_zone
|
||||
- binary_sensor.motion_2_ias_zone
|
||||
- binary_sensor.kitchen_motion_occupancy
|
||||
- binary_sensor.hallway_motion_occupany
|
||||
- binary_sensor.trisensor_motion
|
||||
- binary_sensor.multisensor_motion
|
||||
- sensor.bedroom_weather_temperature
|
||||
- sensor.living_room_thermostat_temperature
|
||||
- sensor.trisensor_temperature
|
||||
- sensor.multisensor_6_temperature
|
||||
- sensor.motion_2_illuminance
|
||||
- sensor.motion_1_illuminance
|
||||
- sensor.hallway_motion_illuminance
|
||||
- sensor.kitchen_motion_illuminance
|
||||
- sensor.purifier_humidity
|
||||
- sensor.bedroom_weather_humidity
|
||||
- climate.living_room_thermostat_mode
|
||||
@@ -66,12 +66,12 @@ homekit:
|
||||
entity_config:
|
||||
light.light_avatar_small_2:
|
||||
name: PC
|
||||
binary_sensor.motion_1_ias_zone:
|
||||
linked_battery_sensor: sensor.motion_1_power
|
||||
binary_sensor.kitchen_motion_occupancy:
|
||||
linked_battery_sensor: sensor.kitchen_motion_battery
|
||||
low_battery_threshold: 20
|
||||
name: Kitchen Motion
|
||||
binary_sensor.motion_2_ias_zone:
|
||||
linked_battery_sensor: sensor.motion_2_power
|
||||
binary_sensor.hallway_motion_occupany:
|
||||
linked_battery_sensor: sensor.hallway_motion_battery
|
||||
name: Hallway Motion
|
||||
binary_sensor.trisensor_motion:
|
||||
linked_battery_sensor: sensor.trisensor_battery_level
|
||||
|
||||
Reference in New Issue
Block a user