Cleaning up Garden Needs Watering

This commit is contained in:
Jeffrey Stone 2021-08-15 16:44:42 -04:00
parent f9719847f4
commit 3c67e4d494
1 changed files with 86 additions and 26 deletions

View File

@ -5,6 +5,10 @@
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
condition:
- condition: state
entity_id: input_boolean.sentry_mode
state: "on"
action: action:
- service: image_processing.scan - service: image_processing.scan
entity_id: image_processing.doods_driveway entity_id: image_processing.doods_driveway
@ -18,10 +22,7 @@
data: data:
who: jeff who: jeff
title: Person Detected! title: Person Detected!
message: '{{ states("image_processing.doods_driveway") | int}} people detected message: '{{ states("image_processing.doods_driveway") | int}} people detected near vehicles/'
near vehicles
'
url: /media/images/driveway_latest.jpg url: /media/images/driveway_latest.jpg
content_type: JPEG content_type: JPEG
default: [] default: []
@ -33,36 +34,36 @@
from: Away from: Away
platform: state platform: state
to: Home to: Home
id: family
- platform: zone - platform: zone
entity_id: person.jeffrey entity_id: person.jeffrey
zone: zone.home zone: zone.home
event: enter event: enter
id: jeffrey
- entity_id: device_tracker.mal - entity_id: device_tracker.mal
from: not_home from: not_home
platform: state platform: state
to: home to: home
id: mal
- platform: zone - platform: zone
entity_id: person.katherine entity_id: person.katherine
zone: zone.home zone: zone.home
event: enter event: enter
id: kat
condition: [] condition: []
action: action:
- service: script.family_is_home - service: script.family_is_home
- choose: - choose:
- conditions: - conditions:
- condition: template - condition: trigger
value_template: '{{ trigger.to_state.attributes.friendly_name == "jeffrey" id: jeffrey
}}'
sequence: sequence:
- service: script.jeff_destination_na
data: {}
- service: input_boolean.turn_off - service: input_boolean.turn_off
data: {} data: {}
entity_id: input_boolean.jeff_travel_monitor entity_id: input_boolean.jeff_travel_monitor
- conditions: - conditions:
- condition: template - condition: trigger
value_template: '{{ trigger.to_state.attributes.friendly_name =="katherine" id: kat
}}'
sequence: sequence:
- service: input_boolean.turn_off - service: input_boolean.turn_off
data: {} data: {}
@ -439,16 +440,15 @@
- platform: time - platform: time
at: '18:00:00' at: '18:00:00'
condition: condition:
- condition: template - condition: numeric_state
value_template: '{{ (states(''sensor.daily_rainfall'') | int | round(2) + states(''sensor.previous_rainfall'') entity_id: sensor.previous_rainfall
| int) >= ''.5'' | float}}' below: '.6'
action: action:
- service: script.text_notify - service: script.text_notify
data: data:
who: all_ios who: all_ios
message: The Garden has only received {{ (states('sensor.daily_rainfall') | message: The Garden has received {{ states('sensor.previous_rainfall') | int
int | round(2) + states('sensor.previous_rainfall') | int) }} inches of rain | round(2) }} inches of rain in the last 48 hours.
in the last 48 hours.
mode: single mode: single
- id: '1627078744808' - id: '1627078744808'
alias: buy more xlm alias: buy more xlm
@ -490,8 +490,8 @@
- platform: state - platform: state
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
id: cancel id: cancel
from: 'off' from: 'on'
to: 'on' to: 'off'
condition: [] condition: []
action: action:
- choose: - choose:
@ -502,9 +502,8 @@
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
state: 'on' state: 'on'
sequence: sequence:
- service: script.turn_on - service: input_boolean.turn_on
target: entity_id: input_boolean.randomize_vacation_lights
entity_id: script.randomize_vacation_lights
- conditions: - conditions:
- condition: or - condition: or
conditions: conditions:
@ -513,9 +512,8 @@
- condition: trigger - condition: trigger
id: cancel id: cancel
sequence: sequence:
- service: script.turn_off - service: nput_boolean.turn_off
target: entity_id: input_boolean.randomize_vacation_lights
entity_id: script.randomize_vacation_lights
default: [] default: []
mode: single mode: single
- id: '1627694115326' - id: '1627694115326'
@ -553,3 +551,65 @@
entity_id: script.skylar_nightly_briefing entity_id: script.skylar_nightly_briefing
default: [] default: []
mode: single mode: single
- id: hauntedhouse_on_demo
alias: HauntedHouse Automation
trigger:
- platform: state
entity_id: input_boolean.this_is_halloween
to: 'on'
from: 'off'
id: start
- platform: state
entity_id: input_boolean.this_is_halloween
id: stop
from: 'on'
to: 'off'
action:
- choose:
- conditions:
- condition: trigger
id: start
sequence:
- service: script.turn_on
target:
entity_id: script.haunted_house
- conditions:
- condition: trigger
id: stop
sequence:
- service: script.turn_off
target:
entity_id: script.haunted_house
- service: media_player.media_stop
target:
entity_id: media_player.ha_speaker
default: []
initial_state: true
mode: single
- id: '1628522379902'
alias: Test Turn on Vacation Lights
description: ''
trigger:
- platform: state
entity_id: input_boolean.randomize_vacation_lights
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.randomize_vacation_lights
state: 'on'
sequence:
- service: script.turn_on
target:
entity_id: script.randomize_vacation_lights
- conditions:
- condition: state
entity_id: input_boolean.randomize_vacation_lights
state: 'off'
sequence:
- service: script.turn_off
target:
entity_id: script.randomize_vacation_lights
default: []
mode: single