feat: Add Guest Mode
This commit is contained in:
@@ -87,7 +87,10 @@ automation:
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
for:
|
for:
|
||||||
minutes: 5
|
minutes: 5
|
||||||
condition: "{{ not is_state('input_select.climate_mode', 'Paused') }}"
|
condition:
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Manual') }}"
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Paused') }}"
|
||||||
|
- "{{ is_state('input_boolean.guest_mode', 'off') }}"
|
||||||
action:
|
action:
|
||||||
- service: scene.create
|
- service: scene.create
|
||||||
data:
|
data:
|
||||||
@@ -125,7 +128,9 @@ automation:
|
|||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 5
|
minutes: 5
|
||||||
condition: "{{ is_state('input_select.climate_mode', 'Paused') }}"
|
condition:
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Manual') }}"
|
||||||
|
- "{{ is_state('input_select.climate_mode', 'Paused') }}"
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -146,7 +151,9 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.hvac_start_night
|
at: input_datetime.hvac_start_night
|
||||||
condition: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}"
|
condition:
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Manual') }}"
|
||||||
|
- "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}"
|
||||||
action:
|
action:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
@@ -160,7 +167,9 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.hvac_start_day
|
at: input_datetime.hvac_start_day
|
||||||
condition: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}"
|
condition:
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Manual') }}"
|
||||||
|
- "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}"
|
||||||
action:
|
action:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
@@ -175,6 +184,8 @@ automation:
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.house_presence_state
|
entity_id: input_select.house_presence_state
|
||||||
to: 'Extended Away'
|
to: 'Extended Away'
|
||||||
|
condition:
|
||||||
|
- "{{ not is_state('input_select.climate_mode', 'Manual') }}"
|
||||||
action:
|
action:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ input_boolean:
|
|||||||
name: Automatically Disarm Alarm on Presence Change
|
name: Automatically Disarm Alarm on Presence Change
|
||||||
disable_camera_events:
|
disable_camera_events:
|
||||||
name: Disable Camera Events
|
name: Disable Camera Events
|
||||||
|
guest_mode:
|
||||||
|
name: Guest Mode
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
|
|
||||||
@@ -414,15 +416,14 @@ automation:
|
|||||||
topic: frigate/doorbell/detect/set
|
topic: frigate/doorbell/detect/set
|
||||||
payload: 'ON'
|
payload: 'ON'
|
||||||
|
|
||||||
- alias: Pause Backyard Event Detection when Garage Door Open
|
- alias: Pause Backyard Event Detection when Garage Door Opens
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.garage_door
|
entity_id: binary_sensor.garage_door
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
- "{{ is_state('alarm_control_panel.ha_alarm', 'disarmed') }}"
|
||||||
entity_id: alarm_control_panel.ha_alarm
|
- "{{ is_state('input_boolean.guest_mode', 'off') }}"
|
||||||
state: disarmed
|
|
||||||
mode: restart
|
mode: restart
|
||||||
action:
|
action:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@@ -430,7 +431,7 @@ automation:
|
|||||||
topic: frigate/backyard/detect/set
|
topic: frigate/backyard/detect/set
|
||||||
payload: 'OFF'
|
payload: 'OFF'
|
||||||
|
|
||||||
- alias: Start Backyard Event Detection when Garage Door Closes
|
- alias: Resume Backyard Event Detection when Garage Door Closes
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.garage_door
|
entity_id: binary_sensor.garage_door
|
||||||
@@ -438,13 +439,41 @@ automation:
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: alarm_control_panel.ha_alarm
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
not_to: disarmed
|
not_to: disarmed
|
||||||
|
condition:
|
||||||
|
- "{{ is_state('input_boolean.disable_camera_events', 'off') }}"
|
||||||
|
- "{{ is_state('input_boolean.guest_mode', 'off') }}"
|
||||||
|
mode: restart
|
||||||
|
action:
|
||||||
|
- delay: 60 # Why?
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: frigate/backyard/detect/set
|
||||||
|
payload: 'ON'
|
||||||
|
|
||||||
|
- alias: Pause Backyard Event Detection in Guest Mode
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
to: 'on'
|
||||||
|
mode: restart
|
||||||
|
action:
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: frigate/backyard/detect/set
|
||||||
|
payload: 'OFF'
|
||||||
|
|
||||||
|
- alias: Resume Backyard Event Detection from Guest Mode
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
to: 'off'
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_boolean.disable_camera_events
|
entity_id: input_boolean.disable_camera_events
|
||||||
state: 'off'
|
state: 'off'
|
||||||
mode: restart
|
mode: restart
|
||||||
action:
|
action:
|
||||||
- delay: 60
|
- delay: 60 # Why?
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data:
|
data:
|
||||||
topic: frigate/backyard/detect/set
|
topic: frigate/backyard/detect/set
|
||||||
|
|||||||
Reference in New Issue
Block a user