mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +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
|
||||
|
||||
Reference in New Issue
Block a user