|
|
|
@ -8,7 +8,7 @@ homeassistant:
|
|
|
|
binary_sensor.office_motion:
|
|
|
|
binary_sensor.office_motion:
|
|
|
|
friendly_name: Office Motion Sensor
|
|
|
|
friendly_name: Office Motion Sensor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#---Sensor for Light-----------------------------
|
|
|
|
#---Sensor for Light-----------------------------
|
|
|
|
binary_sensor:
|
|
|
|
binary_sensor:
|
|
|
|
- platform: mqtt
|
|
|
|
- platform: mqtt
|
|
|
|
@ -39,7 +39,7 @@ automation:
|
|
|
|
entity_id: group.family
|
|
|
|
entity_id: group.family
|
|
|
|
state: 'home'
|
|
|
|
state: 'home'
|
|
|
|
- condition: state
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.office_lamp
|
|
|
|
entity_id: light.office_lights
|
|
|
|
state: 'off'
|
|
|
|
state: 'off'
|
|
|
|
- condition: or
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
conditions:
|
|
|
|
@ -68,7 +68,7 @@ automation:
|
|
|
|
|
|
|
|
|
|
|
|
action:
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.office_lamp
|
|
|
|
entity_id: light.office_lights
|
|
|
|
|
|
|
|
|
|
|
|
- alias: 'Motion in the Office - Turn off Light'
|
|
|
|
- alias: 'Motion in the Office - Turn off Light'
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
@ -82,9 +82,9 @@ automation:
|
|
|
|
|
|
|
|
|
|
|
|
condition:
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.office_lamp
|
|
|
|
entity_id: light.office_lights
|
|
|
|
state: 'on'
|
|
|
|
state: 'on'
|
|
|
|
|
|
|
|
|
|
|
|
action:
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.office_lamp
|
|
|
|
entity_id: light.office_lights
|
|
|
|
|