Upgraded to 0.105.0!

This commit is contained in:
Mahasri Kalavala
2020-02-05 18:28:38 -05:00
parent 87961b393c
commit db7eef5aa7
34 changed files with 1036 additions and 1220 deletions

View File

@@ -18,7 +18,7 @@ script:
away_mode: "true"
- service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.simplisafe
entity_id: alarm_control_panel.home
- service: script.notify_me
data:
message: >

View File

@@ -366,7 +366,7 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.home_mode_away') == 'off' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') | lower != 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') | lower != 'armed_away' }}"
action:
- service: script.voice_notify
data_template:

View File

@@ -73,9 +73,6 @@ automation:
- input_label.hasika_birthday_days2go
- input_label.mallika_birthday_days2go
condition:
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: "{{ trigger.to_state.state | int > 0 and trigger.to_state.state | int < 30 }}"
action:
@@ -95,9 +92,6 @@ automation:
- input_label.hasika_birthday_days2go
- input_label.mallika_birthday_days2go
condition:
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: "{{ trigger.to_state.state | int == 0 }}"
action:
@@ -118,9 +112,6 @@ automation:
condition:
condition: and
conditions:
- condition: state
entity_id: group.all_devices
state: "home"
- condition: time
after: "07:00:00"
before: "21:00:00"

View File

@@ -312,7 +312,7 @@ automation:
url: !secret frontdoor_camera_stream_url
name: "frontyard"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
- service: image_processing.scan
data_template:
entity_id: image_processing.tensorflow_frontdoor_camera
@@ -392,7 +392,7 @@ automation:
url: !secret driveway_camera_stream_url
name: "driveway"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
- service: image_processing.scan
data_template:
entity_id: image_processing.tensorflow_driveway_camera
@@ -468,7 +468,7 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.notify_camera_alerts') == 'on' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
action:
- service: image_processing.scan
data_template:
@@ -547,7 +547,7 @@ automation:
url: !secret playarea_camera_stream_url
name: "backyard"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
- service: image_processing.scan
data_template:
entity_id: image_processing.tensorflow_patio_camera
@@ -641,7 +641,7 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.notify_camera_alerts') == 'on' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
action:
- delay: "{{ '00:00:08' if states('binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor') == 'on' else '0:0:0' }}"
- service: camera.snapshot
@@ -712,7 +712,7 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.notify_camera_alerts') == 'on' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
action:
- service: camera.snapshot
data_template:
@@ -782,7 +782,7 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.notify_camera_alerts') == 'on' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'armed_home' or states('alarm_control_panel.simplisafe') == 'armed_away' }}"
value_template: "{{ states('alarm_control_panel.home') == 'armed_home' or states('alarm_control_panel.home') == 'armed_away' }}"
action:
- condition: template
value_template: >-
@@ -866,29 +866,29 @@ automation:
- service: script.frontdoor_camera_text_overlay
data_template:
text: >
{{ '* ' if states('alarm_control_panel.simplisafe') == 'armed_home' or
states('alarm_control_panel.simplisafe') == 'armed_away' -}}
{{ '* ' if states('alarm_control_panel.home') == 'armed_home' or
states('alarm_control_panel.home') == 'armed_away' -}}
{{- states('sensor.dark_sky_temperature')|int}} °F, Feels like
{{- ' ' ~ states('sensor.dark_sky_apparent_temperature') |int -}}
- service: script.driveway_camera_text_overlay
data_template:
text: >
{{ '* ' if states('alarm_control_panel.simplisafe') == 'armed_home' or
states('alarm_control_panel.simplisafe') == 'armed_away' -}}
{{ '* ' if states('alarm_control_panel.home') == 'armed_home' or
states('alarm_control_panel.home') == 'armed_away' -}}
{{- states('sensor.dark_sky_temperature')|int}} °F, Feels like
{{- ' ' ~ states('sensor.dark_sky_apparent_temperature') |int -}}
- service: script.playarea_camera_text_overlay
data_template:
text: >
{{ '* ' if states('alarm_control_panel.simplisafe') == 'armed_home' or
states('alarm_control_panel.simplisafe') == 'armed_away' -}}
{{ '* ' if states('alarm_control_panel.home') == 'armed_home' or
states('alarm_control_panel.home') == 'armed_away' -}}
{{- states('sensor.dark_sky_temperature')|int}} °F, Feels like
{{- ' ' ~ states('sensor.dark_sky_apparent_temperature') |int -}}
- service: script.patio_camera_text_overlay
data_template:
text: >
{{ '* ' if states('alarm_control_panel.simplisafe') == 'armed_home' or
states('alarm_control_panel.simplisafe') == 'armed_away' -}}
{{ '* ' if states('alarm_control_panel.home') == 'armed_home' or
states('alarm_control_panel.home') == 'armed_away' -}}
{{- states('sensor.dark_sky_temperature')|int}} °F, Feels like
{{- ' ' ~ states('sensor.dark_sky_apparent_temperature') |int -}}

View File

@@ -290,9 +290,6 @@ automation:
platform: time
at: "22:10:00"
condition:
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: "{{ states('input_boolean.nightly_report') == 'on' }}"
action:

View File

@@ -219,6 +219,65 @@ automation:
data:
entity_id: switch.garage
# Notify Entry Door Status
###############################################################################
- alias: Voice Notify Entry Door Status
initial_state: true
trigger:
platform: state
entity_id:
- binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
- binary_sensor.back_door_sensor_sensor
condition:
- condition: template
value_template: "{% if trigger.from_state %} True {% else %} False {% endif %}"
action:
- service: script.voice_notify
data_template:
message: >
{% if trigger.to_state.state | lower == "on" %}
Your {{ trigger.to_state.attributes.friendly_name.replace('Sensor', '') }} is OPEN,
{% if states('alarm_control_panel.home') == 'armed_home' or
states('alarm_control_panel.home') == 'armed_away' %}
But your home security system is ON.
{% endif %}
{% elif trigger.to_state.state | lower == "off" %}
Your {{ trigger.to_state.attributes.friendly_name.replace('Sensor', '') }} is CLOSED!
{% endif %}
greeting: "no"
only_at_night: >
{% if states('alarm_control_panel.home') == 'armed_home' %}
no
{% else %}
yes
{% endif %}
- alias: When Front Door Opens Turn Front Room Lights ON
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
to: "on"
condition:
- condition: template
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
action:
- service: switch.turn_on
entity_id: switch.front_room
- 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"
condition:
- condition: template
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
action:
- service: switch.turn_on
entity_id: switch.kitchen
################################################################################
# When I open the garage door
# if it is dark outside, OR
@@ -247,69 +306,3 @@ automation:
entity_id: switch.garage
- service: timer.start
entity_id: timer.timer_garage
# Notify Entry Door Status
###############################################################################
- alias: Notify Entry Door Status
initial_state: true
trigger:
platform: state
entity_id:
- binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
- binary_sensor.back_door_sensor_sensor
condition:
- condition: template
value_template: "{% if trigger.from_state %} True {% else %} False {% endif %}"
action:
- service: script.voice_notify
data_template:
message: >
{% if trigger.to_state.state | lower == "on" %}
Your {{ trigger.to_state.attributes.friendly_name.replace('Sensor', '') }} is OPEN,
{% if states('alarm_control_panel.simplisafe') == 'armed_home' or
states('alarm_control_panel.simplisafe') == 'armed_away' %}
But your home security system is ON.
{% endif %}
{% elif trigger.to_state.state | lower == "off" %}
Your {{ trigger.to_state.attributes.friendly_name.replace('Sensor', '') }} is CLOSED!
{% endif %}
greeting: "no"
only_at_night: >
{% if states('alarm_control_panel.simplisafe') == 'armed_home' %}
no
{% else %}
yes
{% endif %}
# Turn ON and OFF basement ambient lights
###############################################################################
- alias: Basement Accent Lights ON When Basement Door Opened
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.basement_door_sensor_sensor
to: "on"
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action:
- service: homeassistant.turn_on
entity_id: switch.rf_switch_one
- alias: Basement Accent Lights OFF After 5 minutes
initial_state: true
trigger:
platform: state
entity_id:
- switch.rf_switch_one
to: "on"
for:
minutes: 5
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action:
- service: homeassistant.turn_off
entity_id: switch.rf_switch_one

View File

@@ -150,7 +150,7 @@
# initial_state: true
# trigger:
# platform: state
# entity_id: alarm_control_panel.simplisafe
# entity_id: alarm_control_panel.home
# to: 'disarmed'
# condition:
# - condition: template
@@ -186,7 +186,7 @@
# value_template: "{{ trigger.from_state }}"
# - condition: template
# value_template: >
# {% set state = states.alarm_control_panel.simplisafe.state %}
# {% set state = states.alarm_control_panel.home.state %}
# {% if state != "" and state != "unknown" and state == "armed_away" %}
# true
# {% else %}

View File

@@ -1,51 +0,0 @@
# homeassistant:
# customize:
# # Locations
# sensor.suresh_location:
# friendly_name: Suresh
# icon: mdi:map-marker
# sensor.mallika_location:
# friendly_name: Mallika
# icon: mdi:map-marker
# sensor.srinika_location:
# friendly_name: Srinika
# icon: mdi:map-marker
# sensor.hasika_location:
# friendly_name: Hasika
# icon: mdi:map-marker
# # Google Calendar
# google:
# client_id: !secret google_client_id
# client_secret: !secret google_client_secret
# # Google Travel Times and Geo Code/Location
# sensor:
# # Address/Location Details
# - platform: google_geocode
# name: Suresh Location
# api_key: !secret google_maps_geocoding_api
# origin: device_tracker.life360_suresh
# options: formatted_address
# display_zone: hide
# - platform: google_geocode
# name: Mallika Location
# api_key: !secret google_maps_geocoding_api
# origin: device_tracker.life360_mallika
# options: formatted_address
# display_zone: hide
# - platform: google_geocode
# name: Srinika Location
# api_key: !secret google_maps_geocoding_api
# origin: device_tracker.life360_srinika
# options: formatted_address
# display_zone: hide
# - platform: google_geocode
# name: Hasika Location
# api_key: !secret google_maps_geocoding_api
# origin: device_tracker.life360_hasika
# options: formatted_address
# display_zone: hide

View File

@@ -9,7 +9,7 @@ homeassistant:
group.home_security_system:
order: 7
alarm_control_panel.simplisafe:
alarm_control_panel.home:
friendly_name: Home Security System
icon: mdi:security
sensor.my_alarm_control_panel:
@@ -40,35 +40,35 @@ automation:
initial_state: true
trigger:
platform: state
entity_id: alarm_control_panel.simplisafe
entity_id: alarm_control_panel.home
condition:
- condition: template
value_template: "{% if trigger.from_state %} True {% else %} False {% endif %}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') != 'unknown' }}"
value_template: "{{ states('alarm_control_panel.home') != 'unknown' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') | trim != '' }}"
value_template: "{{ states('alarm_control_panel.home') | trim != '' }}"
action:
- service_template: >
{% if states('alarm_control_panel.simplisafe') == "armed_home" %}
{% if states('alarm_control_panel.home') == "armed_home" %}
script.xiaomi_blue
{% elif states('alarm_control_panel.simplisafe') == "armed_away" %}
{% elif states('alarm_control_panel.home') == "armed_away" %}
script.xiaomi_green
{% elif states('alarm_control_panel.simplisafe') == "triggered" %}
{% elif states('alarm_control_panel.home') == "triggered" %}
script.xiaomi_red
{% elif states('alarm_control_panel.simplisafe') == "disarmed" %}
{% elif states('alarm_control_panel.home') == "disarmed" %}
script.xiaomi_red
{% endif %}
- service: script.ifttt_leeo_color_change
data_template:
value1: >
{% if states('alarm_control_panel.simplisafe') == "armed_home" %}
{% if states('alarm_control_panel.home') == "armed_home" %}
"#0000FF"
{% elif states('alarm_control_panel.simplisafe') == "armed_away" %}
{% elif states('alarm_control_panel.home') == "armed_away" %}
"#00FF00"
{% elif states('alarm_control_panel.simplisafe') == "triggered" %}
{% elif states('alarm_control_panel.home') == "triggered" %}
"#FF0000"
{% elif states('alarm_control_panel.simplisafe') == "disarmed" %}
{% elif states('alarm_control_panel.home') == "disarmed" %}
"#FF0000"
{% endif %}
@@ -79,7 +79,7 @@ automation:
initial_state: true
trigger:
platform: state
entity_id: alarm_control_panel.simplisafe
entity_id: alarm_control_panel.home
condition:
- condition: template
value_template: "{{ states('input_boolean.security_system_alerts') == 'on' }}"
@@ -94,29 +94,29 @@ automation:
- service: script.notify_me
data_template:
message: >
{% if states('alarm_control_panel.simplisafe') == "armed_home" %}
{% if states('alarm_control_panel.home') == "armed_home" %}
Your home is now secured!
{% elif states('alarm_control_panel.simplisafe') == "armed_away" %}
{% elif states('alarm_control_panel.home') == "armed_away" %}
Your Home Security System is now set to Away mode!
{% elif states('alarm_control_panel.simplisafe') == "triggered" %}
{% elif states('alarm_control_panel.home') == "triggered" %}
Attention!: Your Home Security System is triggered! It has been notified to the authorities.
{% elif states('alarm_control_panel.simplisafe') == "disarmed" %}
{% elif states('alarm_control_panel.home') == "disarmed" %}
Attention!: Your Home Security System is turned OFF.
{% endif %}
- service: script.voice_notify
data_template:
message: >
{% if states('alarm_control_panel.simplisafe') == "armed_home" %}
{% if states('alarm_control_panel.home') == "armed_home" %}
Your home is now secured!
{% elif states('alarm_control_panel.simplisafe') == "armed_away" %}
{% elif states('alarm_control_panel.home') == "armed_away" %}
Your Home Security System is now set to Away mode!
{% elif states('alarm_control_panel.simplisafe') == "triggered" %}
{% elif states('alarm_control_panel.home') == "triggered" %}
Attention!: Your Home Security System is triggered! It has been notified to the authorities.
{% elif states('alarm_control_panel.simplisafe') == "disarmed" %}
{% elif states('alarm_control_panel.home') == "disarmed" %}
Attention!: Your Home Security System is turned OFF.
{% endif %}
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') != 'disarmed' }}"
value_template: "{{ states('alarm_control_panel.home') != 'disarmed' }}"
- service: input_boolean.turn_on
entity_id: input_boolean.notify_camera_motion
@@ -128,14 +128,10 @@ automation:
trigger:
- platform: state
entity_id:
- alarm_control_panel.simplisafe
- alarm_control_panel.home
to: "disarmed"
for:
minutes: 10
condition:
- condition: state
entity_id: group.all_devices
state: "home"
action:
- service: script.notify_me
data:
@@ -149,14 +145,11 @@ automation:
trigger:
- platform: state
entity_id:
- alarm_control_panel.simplisafe
- alarm_control_panel.home
to: "disarmed"
for:
minutes: 30
condition:
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: "{{ states('input_boolean.security_system_alerts') == 'on' }}"
action:
@@ -172,7 +165,7 @@ automation:
initial_state: true
trigger:
platform: state
entity_id: alarm_control_panel.simplisafe
entity_id: alarm_control_panel.home
condition:
- condition: template
value_template: >
@@ -203,18 +196,15 @@ automation:
- condition: template
value_template: "{{ states('sensor.bedtime_minute')|int == now().minute|int }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') != 'away' }}"
- condition: state
entity_id: group.all_devices
state: "home"
value_template: "{{ states('alarm_control_panel.home') != 'away' }}"
- condition: template
value_template: "{{ states('alarm_control_panel.simplisafe') == 'disarmed' }}"
value_template: "{{ states('alarm_control_panel.home') == 'disarmed' }}"
- condition: template
value_template: "{{ states('input_boolean.security_system_alerts') == 'on' }}"
action:
- service: alarm_control_panel.alarm_arm_home
data:
entity_id: alarm_control_panel.simplisafe
entity_id: alarm_control_panel.home
- service: script.notify_me
data:
message: "It's bedtime, you forgot to turn ON Home Security System. Turned it ON for you."
@@ -231,7 +221,7 @@ automation:
# condition: and
# conditions:
# - condition: template
# value_template: '{{ states('alarm_control_panel.simplisafe') == "armed_home" or states('alarm_control_panel.simplisafe') == "armed_away" }}'
# value_template: '{{ states('alarm_control_panel.home') == "armed_home" or states('alarm_control_panel.home') == "armed_away" }}'
# - condition: or
# conditions:
# - condition: template
@@ -244,7 +234,7 @@ automation:
# - service: script.notify_me
# data_template:
# message: >
# Attention! Your home Security system is set to {{ states('alarm_control_panel.simplisafe').split('_')[1] | upper }} mode.
# Attention! Your home Security system is set to {{ states('alarm_control_panel.home').split('_')[1] | upper }} mode.
# BUT THE {% if states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') == "on" -%}DOUBLE CAR {%- else %}SINGLE CAR {% endif %}GARAGE DOOR IS STILL OPEN!
# - service: camera.snapshot
# data_template:
@@ -279,14 +269,14 @@ automation:
# {% elif states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') == "on" %}
# {% set doors = states('binary_sensor.two_car_garage_door_tilt_sensor_sensor.name %}
# {% endif %}
# Your {{ doors }} seem to be open while your home security system is set to "{{ states('alarm_control_panel.simplisafe').split('_')[1]| title }}" mode. Today is {{ get_date(now()) }}, and time is {{ now().strftime("%I:%M:%S %p") }}. Please see the attached pictures and make sure everything is okay.
# Your {{ doors }} seem to be open while your home security system is set to "{{ states('alarm_control_panel.home').split('_')[1]| title }}" mode. Today is {{ get_date(now()) }}, and time is {{ now().strftime("%I:%M:%S %p") }}. Please see the attached pictures and make sure everything is okay.
# data:
# images:
# - "{{ '/home/homeassistant/.homeassistant/www/downloads/camera/garage/garage_' ~ (states('automation.home_security_system_and_garage_door_check.last_updated ~ '').replace('-','_').replace(' ', '_').replace(':','_').replace('.','_').replace('+','_') ~ '.jpg' }}"
# - "{{ '/home/homeassistant/.homeassistant/www/downloads/camera/driveway/driveway_' ~ (states('automation.home_security_system_and_garage_door_check.last_updated ~ '').replace('-','_').replace(' ', '_').replace(':','_').replace('.','_').replace('+','_') ~ '.jpg' }}"
# - "{{ '/home/homeassistant/.homeassistant/www/downloads/camera/frontdoor/frontdoor_' ~ (states('automation.home_security_system_and_garage_door_check.last_updated ~ '').replace('-','_').replace(' ', '_').replace(':','_').replace('.','_').replace('+','_') ~ '.jpg' }}"
# - condition: template
# value_template: '{{ states('alarm_control_panel.simplisafe') == "armed_home" }}'
# value_template: '{{ states('alarm_control_panel.home') == "armed_home" }}'
# - service: script.voice_notify
# data_template:
# message: >
@@ -298,7 +288,7 @@ automation:
# {% elif states('binary_sensor.single_car_garage_door_tilt_sensor_sensor') == "on" %}
# {% set doors = states('binary_sensor.two_car_garage_door_tilt_sensor_sensor.name %}
# {% endif %}
# Attention! Your home Security system is set to {{ states('alarm_control_panel.simplisafe').split('_')[1] | upper }} mode.
# Attention! Your home Security system is set to {{ states('alarm_control_panel.home').split('_')[1] | upper }} mode.
# BUT the {{ doors }} {{ 'are' if doors.endswith('s') else 'is' }} open.
###############################################################################
@@ -312,10 +302,7 @@ automation:
# offset: '+00:00:00'
# condition:
# - condition: state
# entity_id: group.all_devices
# state: 'home'
# - condition: state
# entity_id: alarm_control_panel.simplisafe
# entity_id: alarm_control_panel.home
# state: 'disarmed'
# action:
# - service_template: >-
@@ -328,7 +315,7 @@ automation:
# alarm_control_panel.disarm
# {% endif %}
# data:
# entity_id: alarm_control_panel.simplisafe
# entity_id: alarm_control_panel.home
# - service: script.voice_notify
# data_template:
# message: >
@@ -417,9 +404,9 @@ automation:
# condition: or
# conditions:
# - condition: template
# value_template: '{{ states('alarm_control_panel.simplisafe') | lower == "armed_away" }}'
# value_template: '{{ states('alarm_control_panel.home') | lower == "armed_away" }}'
# - condition: template
# value_template: '{{ states('alarm_control_panel.simplisafe') | lower == "armed_home" }}'
# value_template: '{{ states('alarm_control_panel.home') | lower == "armed_home" }}'
# action:
# - service: notify.ios_suresh
# data_template:
@@ -444,7 +431,7 @@ automation:
# to: 'on'
# condition:
# - condition: template
# value_template: '{{ states('alarm_control_panel.simplisafe') == "armed_home" or states('alarm_control_panel.simplisafe') == "armed_away" }}'
# value_template: '{{ states('alarm_control_panel.home') == "armed_home" or states('alarm_control_panel.home') == "armed_away" }}'
# action:
# - service: notify.ios_suresh
# data_template:
@@ -468,7 +455,7 @@ automation:
# actionName: 'DISABLE_SECURITY'
# action:
# - service: alarm_control_panel.alarm_disarm
# entity_id: alarm_control_panel.simplisafe
# entity_id: alarm_control_panel.home
# - service: notify.ios_suresh
# data:
# message: "Unlocked your home!"

View File

@@ -53,6 +53,14 @@ homeassistant:
assumed_state: false
icon: mdi:lightbulb
switch.kids_bed_accent:
friendly_name: Hasika's Bed Accent Lights
assumed_state: false
icon: mdi:lightbulb
switch.front_room:
friendly_name: Front Room Light
assumed_state: false
icon: mdi:lightbulb
switch.basement_left:
friendly_name: Basement Theater Lights
assumed_state: false
@@ -131,6 +139,7 @@ tplink:
- host: !secret tplink_basement_right
- host: !secret tplink_kitchen
- host: !secret tplink_office_room
- host: !secret tplink_front_room
# Smart Outlets
- host: !secret tplink_smart_outlet1

View File

@@ -1,170 +0,0 @@
###############################################################################
# @author : Mahasri Kalavala
# @date : 04/15/2017
# @package : Media Player
# @description : Media Player Sensors, Automations
###############################################################################
homeassistant:
customize:
# Media Players
media_player.snapcast_client_b827eb8604f5:
friendly_name: Front Room Music
media_player.snapcast_client_b827ebaa08f7:
friendly_name: Kitchen Music
media_player.snapcast_client_b827eb011e00:
friendly_name: TV Room Music
media_player.snapcast_client_b827eb4445b1:
friendly_name: Master Bedroom Music
media_player.snapcast_client_b827eba8e7ef:
friendly_name: Guest Bedroom 1 Music
media_player.snapcast_client_b827eb505e2d:
friendly_name: Guest Bedroom 2 Music
media_player.snapcast_client_001e8c40c713:
friendly_name: Basement Music
media_player.snapcast_client_b827ebf10965:
friendly_name: Office Room Music
media_player.snapcast_client_0018e7c4488f:
friendly_name: HA Server (Basement)
script.stop_snapcast_server:
friendly_name: Stop Snapcast Server
script.start_snapcast_server:
friendly_name: Start Snapcast Server
script.restart_snapcast_server:
friendly_name: Restart Snapcast Server
media_player.mpd:
friendly_name: Mopidy Media Player
hidden: false
media_player.gstreamer:
friendly_name: Gstreamer Media Player
hidden: false
media_player.attic_tv:
friendly_name: Chromecast Media Player
hidden: false
media_player:
- platform: snapcast
host: !secret snapcast_server_ip
- platform: mpd
name: mpd
host: !secret mopidy_server_ip
port: !secret mopidy_server_port
# - platform: denon
# host: !secret denon_avr_ip_address
# name: DENON
# - platform: denonavr
# host: !secret denon_avr_ip_address
# name: MY DENON RECEIVER
# show_all_sources: true
# timeout: 5
# If you get errors about GI not found, run the command below to link gsp/gi path to HA for Gstreamer to function properly
# For python 3.4:
# sudo ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/lib/python3.6/site-packages
# If you get GST not found error, run the following command
# sudo apt-get install python-gst-1.0 \
# gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 \
# gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly \
# gstreamer1.0-tools
# Steps to set it up:
#
# 1. Setup venv using correct version of python - in this case, it is python3.6
# 2. As homeassistant user, inside the venv, run python3.6 command
# $ sudo -u homeassistant -H -s
# $ source /srv/homeassistant/bin/activate
# $ python3.6
# Inside the python CLI, run
# >>> import gi
# >>> print (gi)
# 3. That should print something like
# <module 'gi' from '/srv/homeassistant/lib/python3.6/site-packages/gi/__init__.py'>
# 4. Map that path to the GI location
# $ sudo ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/lib/python3.6/site-packages
# restart machine
- platform: gstreamer
pipeline: "audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo"
binary_sensor:
- platform: mqtt
name: Sharp TV
state_topic: "/home/sharptv"
payload_on: "on"
payload_off: "off"
value_template: "{{ value }}"
- platform: mqtt
name: Sharp TV Command State
state_topic: "/home/sharp_tv_cmd"
payload_on: "on"
payload_off: "off"
value_template: "{{ value }}"
input_select:
snapcast_server:
name: Snapcast Server
options:
- Select One
- Stop
- Start
- Restart
initial: Select One
icon: mdi:music
shell_command:
stop_snapserver: >-
sudo systemctl stop snapserver
start_snapserver: >-
sudo systemctl start snapserver
restart_snapserver: >-
sudo systemctl restart snapserver
script:
stop_snapcast_server:
sequence:
- service: shell_command.stop_snapserver
start_snapcast_server:
sequence:
- service: shell_command.start_snapserver
restart_snapcast_server:
sequence:
- service: shell_command.restart_snapserver
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
###############################################################################
automation:
###############################################################################
# Snapcast Server Management
###############################################################################
- alias: Snapcast Action
initial_state: true
trigger:
platform: state
entity_id: input_select.snapcast_server
condition:
- condition: template
value_template: "{{ states('input_select.snapcast_server') | lower != 'select one' }}"
action:
- service_template: >-
{% if states('input_select.snapcast_server') | lower == "stop" %}
shell_command.stop_snapserver
{% elif states('input_select.snapcast_server') | lower == "start" %}
shell_command.start_snapserver
{% else %}
shell_command.restart_snapserver
{% endif %}

View File

@@ -122,22 +122,8 @@ script:
value_template: "{{ states('input_boolean.voice_notifications') == 'on' }}"
- condition: template
value_template: "{{ states('input_boolean.do_not_disturb') | lower == 'off' }}"
- condition: template
value_template: "{{ states('media_player.gstreamer') == 'idle' }}"
- condition: template
value_template: "{{ states('media_player.mpd') != 'playing' }}"
- condition: template
value_template: "{{ message | trim != '' }}"
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: >
{% if states('input_boolean.emergency_mode') == "on" %}
true
{% else %}
{{ states('group.all_devices') == "home" }}
{% endif %}
- condition: template
value_template: >
{% if only_at_night | default('no', true ) == "yes" %}
@@ -150,7 +136,8 @@ script:
true
{% endif %}
- service: media_player.volume_set
entity_id: media_player.gstreamer
# entity_id: media_player.gstreamer
entity_id: media_player.living_room, media_player.upstairs
data_template:
volume_level: >
{% if states('input_boolean.emergency_mode') == "on" %}
@@ -165,7 +152,8 @@ script:
{% endif %}
{% endif %}
- service: tts.amazon_polly_say
entity_id: media_player.gstreamer
#entity_id: media_player.gstreamer
entity_id: media_player.living_room, media_player.upstairs
data_template:
cache: true
message: >
@@ -200,7 +188,8 @@ script:
voice_greeting:
sequence:
- service: tts.amazon_polly_say
entity_id: media_player.gstreamer
#entity_id: media_player.gstreamer
entity_id: media_player.living_room, media_player.upstairs
data_template:
cache: true
message: >

View File

@@ -310,9 +310,6 @@ automation:
condition:
- condition: template
value_template: '{{ states.input_boolean.hourly_report.state == "on" }}'
- condition: state
entity_id: group.all_devices
state: "home"
- condition: template
value_template: >
{% set hour = now().hour | int %}

View File

@@ -1,33 +1,35 @@
homeassistant:
customize:
binary_sensor.tesla_model_3_5yj3e1ea8jf010610_charger_sensor:
binary_sensor.tesla_model_3_charger_sensor:
friendly_name: Charger
binary_sensor.tesla_model_3_5yj3e1ea8jf010610_parking_brake_sensor:
binary_sensor.tesla_model_3_parking_brake_sensor:
friendly_name: Parking Break
climate.tesla_model_3_5yj3e1ea8jf010610_hvac_climate_system:
climate.tesla_model_3_hvac_climate_system:
friendly_name: Tesla Climate
device_tracker.tesla_model_3_5yj3e1ea8jf010610_location_tracker:
device_tracker.mahasri_tesla_location_tracker:
friendly_name: Tesla
lock.tesla_model_3_5yj3e1ea8jf010610_door_lock:
lock.tesla_model_3_charger_door_lock:
friendly_name: Tesla Door Lock
sensor.tesla_model_3_5yj3e1ea8jf010610_battery_sensor:
sensor.tesla_model_3_battery_sensor:
friendly_name: Battery Percentage
icon: mdi:battery
sensor.tesla_model_3_5yj3e1ea8jf010610_mileage_sensor:
sensor.tesla_model_3_mileage_sensor:
friendly_name: Total Mileage
sensor.tesla_model_3_5yj3e1ea8jf010610_range_sensor:
sensor.tesla_model_3_range_sensor:
friendly_name: Battery Range
sensor.tesla_model_3_5yj3e1ea8jf010610_temperature_sensor_inside:
sensor.tesla_model_3_temperature_sensor_inside:
friendly_name: Temperature Inside
sensor.tesla_model_3_5yj3e1ea8jf010610_temperature_sensor_outside:
sensor.tesla_model_3_temperature_sensor_outside:
friendly_name: Temperature Outside
switch.tesla_model_3_5yj3e1ea8jf010610_charger_switch:
switch.tesla_model_3_charger_switch:
friendly_name: Charger Switch
switch.tesla_model_3_5yj3e1ea8jf010610_maxrange_switch:
switch.tesla_model_3_maxrange_switch:
friendly_name: Max Range Switch
switch.tesla_model_3_update_switch:
friendly_name: Update Tesla
# The scan_interval is now set to 6 hours
# Leaving it to the default (which is 5 minutes, or 300 seconds) will drain battery at a rate of
# Leaving it to the default (which is 5 minutes, or 300 seconds) will drain battery at a rate of
# 10 miles per day (or 3% battery use) on an average. Use this setting carefully!
tesla:
@@ -36,13 +38,13 @@ tesla:
scan_interval: 21600
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
#
###############################################################################
automation:
@@ -50,7 +52,7 @@ automation:
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.tesla_model_3_5yj3e1ea8jf010610_charger_sensor
entity_id: binary_sensor.tesla_model_3_charger_sensor
action:
- service: script.notify_me
data_template:
@@ -60,7 +62,7 @@ automation:
initial_state: true
trigger:
- platform: state
entity_id: lock.tesla_model_3_5yj3e1ea8jf010610_door_lock
entity_id: lock.tesla_model_3_door_lock
condition:
- condition: template
value_template: '{{ trigger.from_state.state | lower != "unknown" }}'
@@ -73,11 +75,11 @@ automation:
initial_state: true
trigger:
- platform: state
entity_id: switch.tesla_model_3_5yj3e1ea8jf010610_charger_switch
entity_id: switch.tesla_model_3_charger_switch
condition:
- condition: template
value_template: '{{ trigger.from_state.state | lower != "unknown" }}'
action:
- service: script.notify_me
data_template:
message: "Tesla Door is now: {{ trigger.to_state.state| upper }}"
message: "Tesla Door is now: {{ trigger.to_state.state| upper }}"

23
packages/tile.yaml Normal file
View File

@@ -0,0 +1,23 @@
###############################################################################
# @author : Mahasri Kalavala
# @date : 02/05/2020
# @package : Tile
# @description : Tile Package
###############################################################################
homeassistant:
customize:
device_tracker.tile_08beea8370ec23b7:
friendly_name: Back Pack
device_tracker.tile_43a0d518532978f8:
friendly_name: Passport Bag
device_tracker.tile_49318f5ab14343a5:
friendly_name: Suresh's Laptop Bag
device_tracker.tile_63ca05b6a3619232:
friendly_name: Mallika's Purse
device_tracker.tile_p_32c03dc7f21001d36d16b47646e4c421:
friendly_name: Tile Tracker
device_tracker:
- platform: tile
username: !secret tile_username
password: !secret tile_password

View File

@@ -4,34 +4,47 @@
# @package : TV
# @description : Tv Automations
###############################################################################
binary_sensor:
- platform: mqtt
name: Sharp TV
state_topic: "/home/sharptv"
payload_on: "on"
payload_off: "off"
value_template: "{{ value }}"
- platform: mqtt
name: Sharp TV Command State
state_topic: "/home/sharp_tv_cmd"
payload_on: "on"
payload_off: "off"
value_template: "{{ value }}"
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
#
###############################################################################
automation:
# Dim Family Room Lights When TV is Turned ON
###############################################################################
# Dim Family Room Lights When TV is Turned ON
###############################################################################
- alias: TV Dim Indoor Lights when TV is ON
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.sharp_tv
from: 'off'
to: 'on'
from: "off"
to: "on"
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
state: "below_horizon"
- condition: state
entity_id: input_boolean.light_automations
state: 'on'
state: "on"
action:
- service: light.turn_on
data:
@@ -51,25 +64,25 @@ automation:
- service: mqtt.publish
data:
topic: /home/tv/backlight
payload: 'on'
payload: "on"
retain: true
# Restore Family Room Lights to TV mode
###############################################################################
# Restore Family Room Lights to TV mode
###############################################################################
- alias: TV Restore Family Room Lights To TV Mode
initial_state: true
trigger:
- platform: state
entity_id: group.family_room_lights
from: 'off'
to: 'on'
from: "off"
to: "on"
condition:
- condition: state
entity_id: binary_sensor.sharp_tv
state: 'on'
state: "on"
- condition: state
entity_id: input_boolean.light_automations
state: 'on'
state: "on"
action:
- service: light.turn_on
data:
@@ -89,52 +102,52 @@ automation:
brightness: 5
color_temp: 154
transition: 5
# Turn Backlights Off when TV is turned OFF
###############################################################################
# Turn Backlights Off when TV is turned OFF
###############################################################################
- alias: TV Backlight OFF when TV is OFF
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.sharp_tv
to: 'off'
to: "off"
action:
- service: mqtt.publish
data:
topic: /home/tv/backlight
payload: 'off'
payload: "off"
retain: true
# Turn TV backlights when TV is turned ON
###############################################################################
# Turn TV backlights when TV is turned ON
###############################################################################
- alias: TV Backlight is ON when TV is ON
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.sharp_tv
to: 'on'
to: "on"
action:
- service: mqtt.publish
data:
topic: /home/tv/backlight
payload: 'on'
payload: "on"
retain: true
# Turn back Family room lights when TV is switched OFF
###############################################################################
# Turn back Family room lights when TV is switched OFF
###############################################################################
- alias: TV Turn Lights ON When TV is turned OFF
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.sharp_tv
to: 'off'
to: "off"
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
state: "below_horizon"
- condition: state
entity_id: input_boolean.light_automations
state: 'on'
state: "on"
action:
- service: light.turn_on
data:
@@ -153,9 +166,9 @@ automation:
entity_id: light.hue_color_lamp_3
brightness: 255
color_temp: 154
transition: 5
transition: 5
- service: mqtt.publish
data:
topic: /home/tv/backlight
payload: 'off'
retain: true
payload: "off"
retain: true

View File

@@ -291,9 +291,6 @@ automation:
condition:
- condition: template
value_template: '{{ trigger.to_state.state | lower == "rain" }}'
- condition: state
entity_id: group.all_devices
state: "home"
- condition: state
entity_id: sun.sun
state: "above_horizon"
@@ -324,9 +321,6 @@ automation:
condition:
- condition: template
value_template: '{{ states.sensor.season.state | lower == "winter" }}'
- condition: state
entity_id: group.all_devices
state: "home"
- condition: state
entity_id: sun.sun
state: "above_horizon"

View File

@@ -20,15 +20,15 @@ script:
################################################################################
automation:
################################################################################
# ______ _ _ _____
# | ____| (_) | | __ \
# | |__ __ _ _ __ ___ _| |_ _ | |__) |___ ___ _ __ ___
# | __/ _` | '_ ` _ \| | | | | | | _ // _ \ / _ \| '_ ` _ \
# | | | (_| | | | | | | | | |_| | | | \ \ (_) | (_) | | | | | |
# |_| \__,_|_| |_| |_|_|_|\__, | |_| \_\___/ \___/|_| |_| |_|
# __/ |
# |___/
################################################################################
# ______ _ _ _____
# | ____| (_) | | __ \
# | |__ __ _ _ __ ___ _| |_ _ | |__) |___ ___ _ __ ___
# | __/ _` | '_ ` _ \| | | | | | | _ // _ \ / _ \| '_ ` _ \
# | | | (_| | | | | | | | | |_| | | | \ \ (_) | (_) | | | | | |
# |_| \__,_|_| |_| |_|_|_|\__, | |_| \_\___/ \___/|_| |_| |_|
# __/ |
# |___/
# Flip 90: Toggle Family Room Lights
- alias: Family Room Cube Event flip90
@@ -87,9 +87,9 @@ automation:
data_template:
entity_id: light.family_room
rgb_color:
- '{{ range(0,255) |random }}'
- '{{ range(0,255) |random }}'
- '{{ range(0,255) |random }}'
- "{{ range(0,255) |random }}"
- "{{ range(0,255) |random }}"
- "{{ range(0,255) |random }}"
# Shake: Toggle Do Not Disturb Mode
- alias: Family Room Cube Event Shake
@@ -103,13 +103,13 @@ automation:
action:
- service: script.toggle_do_not_disturb
################################################################################
# ______ _ _____
# | ____| | | | __ \
# | |__ _ __ ___ _ __ | |_ | |__) |___ ___ _ __ ___
# | __| '__/ _ \| '_ \| __| | _ // _ \ / _ \| '_ ` _ \
# | | | | | (_) | | | | |_ | | \ \ (_) | (_) | | | | | |
# |_| |_| \___/|_| |_|\__| |_| \_\___/ \___/|_| |_| |_|
################################################################################
# ______ _ _____
# | ____| | | | __ \
# | |__ _ __ ___ _ __ | |_ | |__) |___ ___ _ __ ___
# | __| '__/ _ \| '_ \| __| | _ // _ \ / _ \| '_ ` _ \
# | | | | | (_) | | | | |_ | | \ \ (_) | (_) | | | | | |
# |_| |_| \___/|_| |_|\__| |_| \_\___/ \___/|_| |_| |_|
# Flip 90: Toggle Front Room Lights
- alias: Front Room Cube Event flip90
@@ -122,7 +122,7 @@ automation:
action_type: flip90
action:
- service_template: switch.toggle
entity_id: switch.rf_switch_four
entity_id: switch.front_room
# Flip 180: Toggle Office Room Accent Lights
- alias: Family Room Cube Event flip180
@@ -162,13 +162,13 @@ automation:
action:
- service: script.toggle_do_not_disturb
###############################################################################
# _____ _ _ _ _ _____
# / ____| (_) (_) | ( ) | __ \
# | (___ _ __ _ _ __ _| | ____ _|/ ___ | |__) |___ ___ _ __ ___
# \___ \| '__| | '_ \| | |/ / _` | / __| | _ // _ \ / _ \| '_ ` _ \
# ____) | | | | | | | | < (_| | \__ \ | | \ \ (_) | (_) | | | | | |
# |_____/|_| |_|_| |_|_|_|\_\__,_| |___/ |_| \_\___/ \___/|_| |_| |_|
###############################################################################
# _____ _ _ _ _ _____
# / ____| (_) (_) | ( ) | __ \
# | (___ _ __ _ _ __ _| | ____ _|/ ___ | |__) |___ ___ _ __ ___
# \___ \| '__| | '_ \| | |/ / _` | / __| | _ // _ \ / _ \| '_ ` _ \
# ____) | | | | | | | | < (_| | \__ \ | | \ \ (_) | (_) | | | | | |
# |_____/|_| |_|_| |_|_|_|\_\__,_| |___/ |_| \_\___/ \___/|_| |_| |_|
# Flip 90: Toggle Srinika's Room Lights
- alias: Srinika Room Cube Event flip90
@@ -195,14 +195,14 @@ automation:
action:
- service: script.toggle_do_not_disturb
##############################################################################
# _ _ _ _ _ _____
# | | | | (_) | ( ) | __ \
# | |__| | __ _ ___ _| | ____ _|/ ___ | |__) |___ ___ _ __ ___
# | __ |/ _` / __| | |/ / _` | / __| | _ // _ \ / _ \| '_ ` _ \
# | | | | (_| \__ \ | < (_| | \__ \ | | \ \ (_) | (_) | | | | | |
# |_| |_|\__,_|___/_|_|\_\__,_| |___/ |_| \_\___/ \___/|_| |_| |_|
##############################################################################
# _ _ _ _ _ _____
# | | | | (_) | ( ) | __ \
# | |__| | __ _ ___ _| | ____ _|/ ___ | |__) |___ ___ _ __ ___
# | __ |/ _` / __| | |/ / _` | / __| | _ // _ \ / _ \| '_ ` _ \
# | | | | (_| \__ \ | < (_| | \__ \ | | \ \ (_) | (_) | | | | | |
# |_| |_|\__,_|___/_|_|\_\__,_| |___/ |_| \_\___/ \___/|_| |_| |_|
# Flip 90: Toggle Hasika's Room Lights
- alias: Hasika Room Cube Event flip90
initial_state: true
@@ -228,15 +228,15 @@ automation:
action:
- service: script.toggle_do_not_disturb
################################################################################
# _____ _ _ _____
# / ____| | | | | __ \
# | (___ | |_ _ _ __| |_ _ | |__) |___ ___ _ __ ___
# \___ \| __| | | |/ _` | | | | | _ // _ \ / _ \| '_ ` _ \
# ____) | |_| |_| | (_| | |_| | | | \ \ (_) | (_) | | | | | |
# |_____/ \__|\__,_|\__,_|\__, | |_| \_\___/ \___/|_| |_| |_|
# __/ |
# |___/
################################################################################
# _____ _ _ _____
# / ____| | | | | __ \
# | (___ | |_ _ _ __| |_ _ | |__) |___ ___ _ __ ___
# \___ \| __| | | |/ _` | | | | | _ // _ \ / _ \| '_ ` _ \
# ____) | |_| |_| | (_| | |_| | | | \ \ (_) | (_) | | | | | |
# |_____/ \__|\__,_|\__,_|\__, | |_| \_\___/ \___/|_| |_| |_|
# __/ |
# |___/
# Flip 90: Toggle Study Room Lights
- alias: Study Room Cube Event Flip90
@@ -263,13 +263,13 @@ automation:
action:
- service: script.toggle_do_not_disturb
################################################################################
# __ __ _ ____ _
# | \/ | | | | _ \ | |
# | \ / | __ _ ___| |_ ___ _ __ | |_) | ___ __| |_ __ ___ ___ _ __ ___
# | |\/| |/ _` / __| __/ _ \ '__| | _ < / _ \/ _` | '__/ _ \ / _ \| '_ ` _ \
# | | | | (_| \__ \ || __/ | | |_) | __/ (_| | | | (_) | (_) | | | | | |
# |_| |_|\__,_|___/\__\___|_| |____/ \___|\__,_|_| \___/ \___/|_| |_| |_|
################################################################################
# __ __ _ ____ _
# | \/ | | | | _ \ | |
# | \ / | __ _ ___| |_ ___ _ __ | |_) | ___ __| |_ __ ___ ___ _ __ ___
# | |\/| |/ _` / __| __/ _ \ '__| | _ < / _ \/ _` | '__/ _ \ / _ \| '_ ` _ \
# | | | | (_| \__ \ || __/ | | |_) | __/ (_| | | | (_) | (_) | | | | | |
# |_| |_|\__,_|___/\__\___|_| |____/ \___|\__,_|_| \___/ \___/|_| |_| |_|
# Flip 90: All Lights OFF (upstairs and downstairs)
- alias: Master Bedroom Cube Event Flip90
@@ -326,9 +326,9 @@ automation:
data_template:
entity_id: light.master_bedroom
rgb_color:
- '{{ range(0,255) |random }}'
- '{{ range(0,255) |random }}'
- '{{ range(0,255) |random }}'
- "{{ range(0,255) |random }}"
- "{{ range(0,255) |random }}"
- "{{ range(0,255) |random }}"
# Shake: Toggle Do Not Disturb Mode
- alias: Master Bedroom Cube Event Shake