diff --git a/configuration.yaml b/configuration.yaml
index 7eb1e65..d1c63e1 100644
--- a/configuration.yaml
+++ b/configuration.yaml
@@ -41,6 +41,7 @@ homekit:
- light
- switch
- input_boolean
+ - camera
include_entities:
- binary_sensor.back_door_sensor_sensor
- binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
@@ -70,7 +71,7 @@ python_script:
logger: !include logging.yaml
zeroconf:
-owntracks:
+#owntracks:
system_health:
life360:
diff --git a/packages/cameras.yaml b/packages/cameras.yaml
index a2072cb..dbbbefa 100644
--- a/packages/cameras.yaml
+++ b/packages/cameras.yaml
@@ -209,10 +209,7 @@ automation:
action:
- condition: template
value_template: "{{ states('input_boolean.notify_camera_alerts') == 'on' }}"
- - service: script.stream2chromecast
- data_template:
- url: !secret frontdoor_camera_stream_url
- name: "frontyard"
+ - service: script.frontdoor_cam
- condition: template
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
- service: image_processing.scan
@@ -845,10 +842,7 @@ automation:
as_timestamp(states.input_label.current_stream.last_updated))
| int > 15 }}"
action:
- - service: script.stream2chromecast
- data_template:
- url: !secret frontdoor_camera_stream_url
- name: "frontyard"
+ - service: script.frontdoor_cam
#
# Every 15 minutes, change stream to alternate view with random cameras
@@ -861,6 +855,12 @@ automation:
- service_template: "script.{{- ['driveway', 'patio', 'playarea'] | random -}}_cam"
script:
+ frontdoor_cam:
+ sequence:
+ - service: script.stream2chromecast
+ data_template:
+ url: !secret frontdoor_camera_stream_url
+ name: "frontyard"
driveway_cam:
sequence:
- service: script.stream2chromecast
diff --git a/packages/door_sensors.yaml b/packages/door_sensors.yaml
index 5205a90..b24ad29 100644
--- a/packages/door_sensors.yaml
+++ b/packages/door_sensors.yaml
@@ -119,6 +119,16 @@ automation:
payload: "off"
retain: false
+ - alias: Turn Garage Lights On When Motion Detected
+ initial_state: true
+ trigger:
+ - platform: state
+ entity_id: binary_sensor.motion_sensor_158d000272bf48
+ to: "on"
+ action:
+ - service: switch.turn_on
+ entity_id: switch.garage
+
- alias: Kitchen Camera Motion Reset
initial_state: true
trigger:
@@ -276,19 +286,21 @@ automation:
action:
- service: switch.turn_on
entity_id: switch.front_room
+ - service: script.frontdoor_cam
- alias: When Back Door Opens Turn Kitchen Lights ON
initial_state: true
trigger:
- platform: state
- entity_id: binary_sensor.back_door_sensor_sensor
- to: "on"
+ - platform: state
+ entity_id: binary_sensor.back_door_sensor_sensor
+ to: "on"
condition:
- condition: template
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
action:
- service: switch.turn_on
entity_id: switch.kitchen
+ - service_template: "script.{{ ['patio_cam', 'playarea_cam'] | random }}"
################################################################################
# When I open the garage door
diff --git a/packages/motion_timers.yaml b/packages/motion_timers.yaml
index 1dcfc01..51a98de 100644
--- a/packages/motion_timers.yaml
+++ b/packages/motion_timers.yaml
@@ -237,6 +237,7 @@ automation:
brightness: 10
- service: timer.start
entity_id: timer.timer_masterbedroom
+
# Master Bedroom:
# Timer Elapsed - Turn OFF lights
###############################################################################
@@ -255,27 +256,29 @@ automation:
- delay: "00:00:05"
- service: light.turn_off
entity_id: light.master_bedroom
- # Garage:
- # Motion Detected - Turn ON the light and extend timer
- #
- # Added a condition - if the lights were just turn off in the last 30 seconds,
- # do not turn ON the lights again
- ###############################################################################
- - alias: Garage Motion & Timer
- initial_state: true
- trigger:
- - platform: state
- entity_id: binary_sensor.garage_motion
- from: "off"
- to: "on"
- condition:
- - condition: template
- value_template: "{{ states('input_boolean.working_in_garage') | lower == 'on' }}"
- - condition: template
- value_template: "{{ (as_timestamp(now()) - as_timestamp(states.switch.garage.last_updated)) | int > 30 }}"
- action:
- - service: switch.turn_on
- entity_id: switch.garage
+
+ # # Garage:
+ # # Motion Detected - Turn ON the light and extend timer
+ # #
+ # # Added a condition - if the lights were just turn off in the last 30 seconds,
+ # # do not turn ON the lights again
+ # ###############################################################################
+ # - alias: Garage Motion & Timer
+ # initial_state: true
+ # trigger:
+ # - platform: state
+ # entity_id: binary_sensor.garage_motion
+ # from: "off"
+ # to: "on"
+ # condition:
+ # - condition: template
+ # value_template: "{{ states('input_boolean.working_in_garage') | lower == 'on' }}"
+ # - condition: template
+ # value_template: "{{ (as_timestamp(now()) - as_timestamp(states.switch.garage.last_updated)) | int > 30 }}"
+ # action:
+ # - service: switch.turn_on
+ # entity_id: switch.garage
+
# Start the timer when the lights are ON
###############################################################################
- alias: Garage Timer Start When Garage Lights ON
@@ -288,6 +291,7 @@ automation:
action:
- service: timer.start
entity_id: timer.timer_garage
+
# Garage:
# Timer Elapsed - Turn OFF lights, when "I am not working"
###############################################################################
diff --git a/readme.md b/readme.md
index c906f6e..f7d4c04 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,8 @@
## skalavala's Home Automation/Smart Home
-Here you will find a bunch of scripts that I use to automate my home.
+skalavala's Home Automation
+
+
diff --git a/zwcfg_0xd89c4f0c.xml b/zwcfg_0xd89c4f0c.xml
index 93896c4..4091a57 100644
--- a/zwcfg_0xd89c4f0c.xml
+++ b/zwcfg_0xd89c4f0c.xml
@@ -34,10 +34,10 @@
-
+
-
+
@@ -168,7 +168,7 @@
-
+
@@ -216,9 +216,9 @@
-
-
-
+
+
+
@@ -350,7 +350,7 @@
-
+
@@ -386,7 +386,7 @@
-
+
@@ -574,7 +574,7 @@
-
+
@@ -720,7 +720,7 @@
-
+
@@ -728,9 +728,9 @@
-
-
-
+
+
+
@@ -902,7 +902,7 @@
-
+
@@ -1006,11 +1006,11 @@
-
-
+
+
-
+
@@ -1181,7 +1181,7 @@
-
+
@@ -1191,7 +1191,7 @@
-
+
@@ -1339,7 +1339,7 @@
-
+
@@ -1369,7 +1369,7 @@
-
+
@@ -2038,7 +2038,7 @@
-
+
@@ -2262,9 +2262,9 @@
-
+
-
+
@@ -2525,7 +2525,7 @@
-
+