2021-04-09 14:03:48 +00:00
|
|
|
- id: doods_testing
|
|
|
|
alias: Doods Testing
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.driveway_motion
|
|
|
|
from: 'off'
|
|
|
|
platform: state
|
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- service: image_processing.scan
|
|
|
|
entity_id: image_processing.doods_driveway
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: image_processing.doods_driveway
|
|
|
|
above: '0'
|
|
|
|
sequence:
|
|
|
|
- service: script.text_alert_image
|
|
|
|
data:
|
|
|
|
who: jeff
|
|
|
|
title: Person Detected!
|
|
|
|
message: '{{ states("image_processing.doods_driveway") | int}} people detected
|
|
|
|
near vehicles
|
|
|
|
|
|
|
|
'
|
|
|
|
url: /media/images/driveway_latest.jpg
|
|
|
|
content_type: JPEG
|
|
|
|
default: []
|
|
|
|
mode: single
|
2020-11-28 01:49:42 +00:00
|
|
|
- id: family_has_arrived
|
|
|
|
alias: Family Has arrived
|
|
|
|
trigger:
|
|
|
|
- entity_id: sensor.family_status
|
|
|
|
from: Away
|
|
|
|
platform: state
|
|
|
|
to: Home
|
|
|
|
- platform: zone
|
|
|
|
entity_id: person.jeffrey
|
|
|
|
zone: zone.home
|
|
|
|
event: enter
|
|
|
|
- entity_id: device_tracker.mal
|
|
|
|
from: not_home
|
|
|
|
platform: state
|
|
|
|
to: home
|
|
|
|
- platform: zone
|
|
|
|
entity_id: person.katherine
|
|
|
|
zone: zone.home
|
|
|
|
event: enter
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- service: script.family_is_home
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{ trigger.to_state.attributes.friendly_name == "jeffrey"
|
|
|
|
}}'
|
|
|
|
sequence:
|
|
|
|
- service: script.jeff_destination_na
|
|
|
|
data: {}
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
data: {}
|
|
|
|
entity_id: input_boolean.jeff_travel_monitor
|
|
|
|
- conditions:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{ trigger.to_state.attributes.friendly_name =="katherine"
|
|
|
|
}}'
|
|
|
|
sequence:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
data: {}
|
|
|
|
entity_id: input_boolean.kat_travel_monitor
|
|
|
|
default: []
|
|
|
|
- service: script.driveway_on
|
|
|
|
data: {}
|
|
|
|
mode: single
|
|
|
|
initial_state: true
|
|
|
|
- id: family_has_left
|
|
|
|
alias: Family Has Left
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: sensor.family_status
|
|
|
|
from: Home
|
|
|
|
platform: state
|
|
|
|
to: Away
|
|
|
|
- entity_id: group.family
|
|
|
|
from: home
|
|
|
|
platform: state
|
|
|
|
to: not_home
|
|
|
|
mode: single
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.guest_mode
|
|
|
|
state: 'off'
|
|
|
|
action:
|
|
|
|
- service: script.family_is_away
|
2019-07-16 01:38:24 +00:00
|
|
|
- id: upstairs_fan_on
|
|
|
|
alias: Upstairs Fan On
|
2019-07-11 11:31:10 +00:00
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.upstairs_occupancy
|
|
|
|
from: 'Off'
|
|
|
|
platform: state
|
|
|
|
to: 'On'
|
|
|
|
condition:
|
2020-08-22 03:33:13 +00:00
|
|
|
- above: 73
|
2019-07-11 11:31:10 +00:00
|
|
|
condition: numeric_state
|
|
|
|
entity_id: sensor.upstairs_temperature
|
|
|
|
action:
|
|
|
|
- data:
|
2019-07-16 01:38:24 +00:00
|
|
|
entity_id: switch.upstairs_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_on
|
|
|
|
- id: '1562066108032'
|
|
|
|
alias: Living Room Fan On
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.living_room_occupancy
|
|
|
|
from: 'off'
|
|
|
|
platform: state
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.livingroom_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
state: 'off'
|
2020-08-22 03:33:13 +00:00
|
|
|
- above: 73
|
2020-03-18 02:49:21 +00:00
|
|
|
condition: numeric_state
|
2020-05-18 01:29:52 +00:00
|
|
|
entity_id: sensor.living_room_temperature
|
2019-07-11 11:31:10 +00:00
|
|
|
action:
|
|
|
|
- data:
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.livingroom_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_on
|
|
|
|
- id: '1562067639239'
|
|
|
|
alias: Upstairs Fan Off
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- entity_id: binary_sensor.upstairs_occupancy
|
2019-07-16 01:38:24 +00:00
|
|
|
from: 'on'
|
2019-07-11 11:31:10 +00:00
|
|
|
platform: state
|
2019-07-16 01:38:24 +00:00
|
|
|
to: 'off'
|
2019-07-11 11:31:10 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.croft_fan
|
2019-07-16 01:38:24 +00:00
|
|
|
state: 'on'
|
2020-08-22 03:33:13 +00:00
|
|
|
- below: 72
|
2020-03-18 02:49:21 +00:00
|
|
|
condition: numeric_state
|
|
|
|
entity_id: sensor.upstairs_temperature
|
2019-07-11 11:31:10 +00:00
|
|
|
action:
|
|
|
|
- data:
|
2020-06-07 19:30:34 +00:00
|
|
|
entity_id: switch.croft_fan
|
2019-07-11 11:31:10 +00:00
|
|
|
service: switch.turn_off
|
2019-09-07 19:11:00 +00:00
|
|
|
- id: turn_off_kitchen_speaker
|
|
|
|
alias: Turn Off Kitchen Display
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: media_player.googlehomehub3492
|
2020-11-14 15:27:35 +00:00
|
|
|
from: playing
|
|
|
|
to: idle
|
2019-09-07 19:11:00 +00:00
|
|
|
action:
|
|
|
|
- service: media_player.turn_off
|
|
|
|
entity_id: media_player.googlehomehub3492
|
|
|
|
initial_state: true
|
2020-05-18 01:29:52 +00:00
|
|
|
- id: driveway_motion_lighting
|
2020-11-14 15:27:35 +00:00
|
|
|
alias: Driveway Motion Lighting
|
2020-05-18 01:29:52 +00:00
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.aarlo_motion_driveway
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
2020-11-14 15:27:35 +00:00
|
|
|
- condition: state
|
2020-05-18 01:29:52 +00:00
|
|
|
entity_id: sun.sun
|
2020-11-14 15:27:35 +00:00
|
|
|
state: below_horizon
|
2021-04-09 14:03:48 +00:00
|
|
|
- condition: state
|
|
|
|
entity_id: switch.driveway_light
|
|
|
|
state: 'off'
|
2020-05-18 01:29:52 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: switch.driveway_light
|
2020-05-18 01:29:52 +00:00
|
|
|
- delay:
|
2021-04-09 14:03:48 +00:00
|
|
|
minutes: 1
|
|
|
|
- service: script.turn_on
|
|
|
|
entity_id: script.driveway_off
|
2020-06-15 00:39:45 +00:00
|
|
|
- id: show_time_over
|
|
|
|
alias: Show Time over
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2020-08-22 03:33:13 +00:00
|
|
|
entity_id: media_player.theater_tv
|
|
|
|
to: 'off'
|
2020-11-14 15:27:35 +00:00
|
|
|
for:
|
2020-08-22 03:33:13 +00:00
|
|
|
minutes: 20
|
2020-06-15 00:39:45 +00:00
|
|
|
action:
|
2020-08-22 03:33:13 +00:00
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_dark
|
2020-06-15 00:39:45 +00:00
|
|
|
- id: theater_light_pressed_up
|
|
|
|
alias: Theater Light Pressed Up
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.theater_light_up
|
|
|
|
action:
|
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_bright
|
|
|
|
- id: theater_light_pressed_down
|
|
|
|
alias: Theater Light Pressed Down
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.theater_light_down
|
|
|
|
action:
|
|
|
|
- service: scene.turn_on
|
|
|
|
entity_id: scene.theater_dark
|
2021-01-02 18:23:19 +00:00
|
|
|
- id: '1607350354349'
|
|
|
|
alias: WFH Video Call Lights On
|
|
|
|
description: ''
|
2020-11-14 15:27:35 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2021-04-09 14:03:48 +00:00
|
|
|
- binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_camera
|
|
|
|
- binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_2
|
2020-11-14 15:27:35 +00:00
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2021-01-02 18:23:19 +00:00
|
|
|
condition: []
|
2020-11-14 15:27:35 +00:00
|
|
|
action:
|
2021-01-02 18:23:19 +00:00
|
|
|
- service: scene.turn_on
|
|
|
|
data: {}
|
|
|
|
entity_id: scene.jeff_desk_on
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
entity_id: switch.tplink_a2
|
|
|
|
mode: single
|
|
|
|
- id: '1607350405537'
|
|
|
|
alias: WFH Video Lights Off
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_camera
|
|
|
|
from: 'on'
|
|
|
|
to: 'off'
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
data: {}
|
|
|
|
entity_id: switch.tplink_a2
|
2020-11-14 15:27:35 +00:00
|
|
|
mode: single
|
2021-04-09 14:03:48 +00:00
|
|
|
- id: test_tag_event
|
2021-01-02 18:23:19 +00:00
|
|
|
alias: Tag desk is scanned
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
platform: event
|
|
|
|
event_type: tag_scanned
|
|
|
|
event_data:
|
|
|
|
tag_id: 27cb75e7-ea9f-4395-a747-28eb1118a890
|
|
|
|
device_id: 3B33820C-9851-40CD-931E-32801D4BAE3D
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- service: notify.jeff_ios
|
|
|
|
data:
|
2021-04-09 14:03:48 +00:00
|
|
|
message: Jeff someone scanned desk tag
|
|
|
|
mode: single
|
|
|
|
- id: '1613442280682'
|
|
|
|
alias: Master Bath Humidity Too High
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.master_bath_humidity
|
|
|
|
above: '62'
|
|
|
|
for: 00:03:00
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: switch.master_bath_fan
|
|
|
|
state: 'off'
|
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
entity_id: switch.master_bath_fan
|
|
|
|
mode: single
|
|
|
|
- id: '1613442381930'
|
|
|
|
alias: Master Bath Humidity Normal
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.master_bath_humidity
|
|
|
|
below: '62'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: switch.master_bath_fan
|
|
|
|
state: 'on'
|
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
data: {}
|
|
|
|
entity_id: switch.master_bath_fan
|
|
|
|
mode: single
|
|
|
|
- id: '1614313318267'
|
|
|
|
alias: testing wh
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: webhook
|
|
|
|
webhook_id: test-webooking
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- event: test_complete
|
|
|
|
event_data: {}
|
2021-01-02 18:23:19 +00:00
|
|
|
mode: single
|