mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
spelling mistakes mostly
This commit is contained in:
@@ -178,12 +178,12 @@ automation:
|
||||
- platform: event
|
||||
event_type: automation_reloaded
|
||||
|
||||
condition: []
|
||||
condition:
|
||||
- "{{ states('camera.frigate_cam14') not in ['unknown', 'unavailable'] }}"
|
||||
# - alias: "The input_boolean controlling the cycling of cam14 is on"
|
||||
# condition: state
|
||||
# entity_id: input_boolean.cycle_cam14
|
||||
# state: "on"
|
||||
|
||||
# - alias: "No people or animals detected by Frigate for the last 5 seconds"
|
||||
# condition: state
|
||||
# entity_id: binary_sensor.frigate_cam14_all_occupancy
|
||||
@@ -192,7 +192,6 @@ automation:
|
||||
# hours: 0
|
||||
# minutes: 0
|
||||
# seconds: 5
|
||||
|
||||
# # Either the camera isn't looking at the deck
|
||||
# # or the camera is looking at the deck and the deck motion sensor has been off for at least 30 seconds
|
||||
# # or the camera is looking at the deck and the patio door has been closed for at least 30 seconds
|
||||
@@ -245,39 +244,39 @@ automation:
|
||||
while: "{{ is_state('input_boolean.cycle_cam14', 'on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
# If the camera is looking at the deck and the deck motion sensor is on, then wait 5 seconds.
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.camera14_preset
|
||||
state: Deck
|
||||
- condition: state
|
||||
entity_id: binary_sensor.deck_motion
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.camera14_status
|
||||
data:
|
||||
value: "Deck"
|
||||
- delay: 5
|
||||
|
||||
# If a person is not found, cycle to the next preset, then wait 30 seconds.
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ is_state('binary_sensor.frigate_cam14_person_occupancy','off') }}"
|
||||
sequence:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.camera14_status
|
||||
data:
|
||||
value: "Cycling"
|
||||
- service: input_select.select_next
|
||||
data:
|
||||
cycle: true
|
||||
target:
|
||||
# If the camera is looking at the deck and the deck motion sensor is on, then wait 5 seconds.
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.camera14_preset
|
||||
state: Deck
|
||||
- condition: state
|
||||
entity_id: binary_sensor.deck_motion
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.camera14_status
|
||||
data:
|
||||
value: "Deck"
|
||||
- delay: 5
|
||||
|
||||
- delay: 30
|
||||
# If a person is not found, cycle to the next preset, then wait 30 seconds.
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ is_state('binary_sensor.frigate_cam14_person_occupancy','off') }}"
|
||||
sequence:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.camera14_status
|
||||
data:
|
||||
value: "Cycling"
|
||||
- service: input_select.select_next
|
||||
data:
|
||||
cycle: true
|
||||
target:
|
||||
entity_id: input_select.camera14_preset
|
||||
|
||||
- delay: 30
|
||||
|
||||
# If a person is found, check if the person is still present every 5 seconds
|
||||
default:
|
||||
@@ -312,6 +311,8 @@ automation:
|
||||
entity_id: sensor.frigate_cam14_all_count
|
||||
below: 2
|
||||
|
||||
- "{{ states('camera.frigate_cam14') not in ['unknown', 'unavailable'] }}"
|
||||
|
||||
action:
|
||||
# We don't need to turn off cycling the back yard camera.
|
||||
# - service: input_boolean.turn_off
|
||||
@@ -331,14 +332,11 @@ automation:
|
||||
entity_id: input_select.camera14_preset
|
||||
|
||||
# the Cycle cam 14 automation already checks if something is detected. All we need to do is force cam14 to look at the deck
|
||||
|
||||
# - delay: "00:00:05"
|
||||
|
||||
# - repeat:
|
||||
# while: "{{ is_state('binary_sensor.frigate_cam14_all_occupancy', 'on')}}"
|
||||
# sequence:
|
||||
# - delay: "00:00:05"
|
||||
|
||||
# - service: input_boolean.turn_on
|
||||
# target:
|
||||
# entity_id: input_boolean.cycle_cam14
|
||||
@@ -406,6 +404,9 @@ automation:
|
||||
platform: state
|
||||
entity_id: input_button.cam14_ptz_preset_10
|
||||
|
||||
condition:
|
||||
- "{{ states('camera.frigate_cam14') not in ['unknown', 'unavailable'] }}"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions: >
|
||||
@@ -486,6 +487,10 @@ automation:
|
||||
event: start
|
||||
- platform: time_pattern
|
||||
minutes: /10
|
||||
|
||||
condition:
|
||||
- "{{ states('camera.frigate_cam14') not in ['unknown', 'unavailable'] }}"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -552,7 +557,7 @@ template:
|
||||
- binary_sensor:
|
||||
- name: Deck Person Occupancy
|
||||
unique_id: templatebinarysensor.deck_person_occupancy
|
||||
availability: "{{ states('binary_sensor.possible_deck_person_occupancy') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('binary_sensor.possible_deck_person_occupancy') not in ['unknown', 'unavailable'] }}"
|
||||
state: "{{ is_state('binary_sensor.possible_deck_person_occupancy','on') and is_state('input_select.camera14_preset','Deck') }}"
|
||||
icon: >
|
||||
{% if is_state('binary_sensor.deck_person_occupancy','on') %}
|
||||
@@ -563,14 +568,14 @@ template:
|
||||
|
||||
- name: Deck Animal Motion
|
||||
unique_id: templatebinarysensor.deck_animal_occupancy
|
||||
availability: "{{ states('binary_sensor.possible_deck_animal_occupancy') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('binary_sensor.possible_deck_animal_occupancy') not in ['unknown', 'unavailable'] }}"
|
||||
state: "{{ is_state('binary_sensor.possible_deck_animal_occupancy','on') and is_state('input_select.camera14_preset','Deck') }}"
|
||||
icon: mdi:bird
|
||||
|
||||
- sensor:
|
||||
- name: Deck Person Count
|
||||
unique_id: templatesensor.deck_person_count
|
||||
availability: "{{ states('sensor.possible_deck_person_count') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('sensor.possible_deck_person_count') not in ['unknown', 'unavailable'] }}"
|
||||
unit_of_measurement: objects
|
||||
state: >
|
||||
{% if is_state('input_select.camera14_preset','Deck') %}
|
||||
@@ -582,7 +587,7 @@ template:
|
||||
|
||||
- name: Deck Animal Count
|
||||
unique_id: templatesensor.deck_animal_count
|
||||
availability: "{{ states('sensor.possible_deck_animal_count') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('sensor.possible_deck_animal_count') not in ['unknown', 'unavailable'] }}"
|
||||
unit_of_measurement: objects
|
||||
state: >
|
||||
{% if is_state('input_select.camera14_preset','Deck') %}
|
||||
|
||||
Reference in New Issue
Block a user