Add motion sensors from mqtt

This commit is contained in:
2020-06-10 20:10:46 +03:00
parent f1a8c1db78
commit 5ea6a19372
12 changed files with 114 additions and 68 deletions
@@ -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