mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -28,7 +28,7 @@ group:
|
||||
- media_player.great_room
|
||||
- media_player.kitchen
|
||||
- media_player.front_room_hub
|
||||
- media_player.nursery_hub
|
||||
- media_player.girls_room_hub
|
||||
- media_player.bathroom_mini
|
||||
- media_player.master_bedroom_clock
|
||||
- media_player.computer_area_hub
|
||||
@@ -92,28 +92,28 @@ script:
|
||||
ambientsounds:
|
||||
alias: Play Ambient Sounds
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
entity_id: >
|
||||
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
|
||||
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
|
||||
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
|
||||
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
|
||||
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
|
||||
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
|
||||
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
|
||||
{% endif %}
|
||||
volume_level: "0.0"
|
||||
- delay: "00:00:02"
|
||||
- service: media_player.play_media
|
||||
- action: media_player.play_media
|
||||
data_template:
|
||||
entity_id: >
|
||||
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
|
||||
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
|
||||
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
|
||||
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
|
||||
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
|
||||
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
|
||||
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
|
||||
@@ -154,14 +154,14 @@ script:
|
||||
{% endif %}
|
||||
media_content_type: "audio/mp4"
|
||||
- delay: "00:00:01"
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
entity_id: >
|
||||
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
|
||||
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
|
||||
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
|
||||
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
|
||||
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
|
||||
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
|
||||
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
|
||||
@@ -179,14 +179,14 @@ automation:
|
||||
platform: state
|
||||
entity_id: input_number.volume_ambientsounds
|
||||
action:
|
||||
service: media_player.volume_set
|
||||
action: media_player.volume_set
|
||||
data_template:
|
||||
entity_id: >
|
||||
{% if is_state("input_select.google_home", "Front Room") %} media_player.front_room_hub
|
||||
{% elif is_state("input_select.google_home", "Master Bedroom") %} media_player.master_bedroom_clock
|
||||
{% elif is_state("input_select.google_home", "Master Bathroom") %} media_player.great_room
|
||||
{% elif is_state("input_select.google_home", "Kitchen") %} media_player.kitchen
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.nursery_hub
|
||||
{% elif is_state("input_select.google_home", "Nursery") %} media_player.girls_room_hub
|
||||
{% elif is_state("input_select.google_home", "Computer Area") %} media_player.computer_area_hub
|
||||
{% elif is_state("input_select.google_home", "Downstairs") %} media_player.downstairs_public
|
||||
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
|
||||
|
||||
@@ -117,13 +117,13 @@ automation:
|
||||
state: "on"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Empty Dishwasher - Load Started
|
||||
entity_id: automation.empty_dishwasher
|
||||
message: Dishwasher just turned on. Turning off input_boolean in case it got left on
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.empty_dishwasher
|
||||
|
||||
@@ -137,13 +137,13 @@ automation:
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Empty Dishwasher - Load finished
|
||||
entity_id: automation.empty_dishwasher
|
||||
message: Dishwasher just turned off while the door was shut. Assuming dishes need to be put away
|
||||
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.empty_dishwasher
|
||||
|
||||
@@ -157,13 +157,13 @@ automation:
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Empty Dishwasher - Dishes put away
|
||||
entity_id: automation.empty_dishwasher
|
||||
message: Dishwasher door was opened while the dishwasher was off. Assuming dishes don't need to be put away.
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.empty_dishwasher
|
||||
|
||||
|
||||
@@ -157,13 +157,13 @@ automation:
|
||||
entity_id: input_boolean.fold_clothes
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Fold Clothes - Load started
|
||||
entity_id: automation.fold_clothes
|
||||
message: Dryer turned on. No need to fold clothes yet. Turning off input_boolean in case it got left on
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.fold_clothes
|
||||
|
||||
@@ -177,13 +177,13 @@ automation:
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Fold Clothes - Load finished
|
||||
entity_id: automation.fold_clothes
|
||||
message: Dryer just turned off. Assuming clothes need to be folded
|
||||
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.fold_clothes
|
||||
|
||||
@@ -201,13 +201,13 @@ automation:
|
||||
state: "on"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Fold Clothes - Clothes folded
|
||||
entity_id: automation.fold_clothes
|
||||
message: Door was opened while dryer was off. Assuming clothes are now folded
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.fold_clothes
|
||||
|
||||
|
||||
@@ -116,13 +116,13 @@ automation:
|
||||
entity_id: input_boolean.swap_laundry
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Swap Laundry - Load started
|
||||
entity_id: automation.swap_laundry
|
||||
message: Washing machine is running. No need to swap laundry yet. Turning off input_boolean.swap_laundry, in case it was left on
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.swap_laundry
|
||||
|
||||
@@ -136,12 +136,12 @@ automation:
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Swap Laundry - Load needs to be swapped
|
||||
entity_id: automation.swap_laundry
|
||||
message: Washing machine turned off while the door was shut. Assuming that a load needs to be swapped
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.swap_laundry
|
||||
|
||||
@@ -159,13 +159,13 @@ automation:
|
||||
state: "on"
|
||||
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Swap Laundry - Load swapped
|
||||
entity_id: automation.swap_laundry
|
||||
message: Door was opened while washing machine was off. Assuming a load just got swapped
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.swap_laundry
|
||||
|
||||
|
||||
@@ -429,7 +429,7 @@ automation:
|
||||
entity_id: input_boolean.log_precipitation
|
||||
state: "on"
|
||||
action:
|
||||
- service: notify.send_message
|
||||
- action: notify.send_message
|
||||
target:
|
||||
entity_id: notify.precipitation
|
||||
data:
|
||||
@@ -443,9 +443,9 @@ automation:
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: script.sprinkler_reset_helper_values
|
||||
- action: script.sprinkler_reset_helper_values
|
||||
|
||||
- service: input_datetime.set_datetime
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.sprinkler_last_run
|
||||
data:
|
||||
@@ -458,7 +458,7 @@ automation:
|
||||
entity_id: sensor.sun_next_dawn
|
||||
condition: "{{ states('sensor.sun_next_dawn') not in ['unknown', 'unavailable'] }}"
|
||||
action:
|
||||
- service: input_datetime.set_datetime
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.sprinkler_next_dawn
|
||||
data:
|
||||
@@ -474,7 +474,7 @@ automation:
|
||||
entity_id: sensor.outdoor_temperature
|
||||
above: input_number.sprinkler_maximum_temperature_measured
|
||||
action:
|
||||
service: input_number.set_value
|
||||
action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_maximum_temperature_measured
|
||||
data:
|
||||
@@ -516,7 +516,7 @@ automation:
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
service: opensprinkler.stop
|
||||
action: opensprinkler.stop
|
||||
data:
|
||||
entity_id: switch.opensprinkler_enabled
|
||||
|
||||
@@ -564,12 +564,12 @@ automation:
|
||||
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
|
||||
below: input_number.sprinkler_precipitation_below_high_run #20.1
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_repeat_program_amount
|
||||
data:
|
||||
value: 1
|
||||
- service: opensprinkler.set_water_level
|
||||
- action: opensprinkler.set_water_level
|
||||
data:
|
||||
entity_id: sensor.opensprinkler_water_level
|
||||
water_level: "{{ states('input_number.sprinkler_high_water_level') | int }}"
|
||||
@@ -587,12 +587,12 @@ automation:
|
||||
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
|
||||
below: input_number.sprinkler_precipitation_below_medium_run #15.1
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_repeat_program_amount
|
||||
data:
|
||||
value: 1
|
||||
- service: opensprinkler.set_water_level
|
||||
- action: opensprinkler.set_water_level
|
||||
data:
|
||||
entity_id: sensor.opensprinkler_water_level
|
||||
water_level: "{{ states('input_number.sprinkler_medium_water_level') | int }}"
|
||||
@@ -610,12 +610,12 @@ automation:
|
||||
entity_id: sensor.sprinkler_total_rain_fallen_plus_expected
|
||||
below: input_number.sprinkler_precipitation_below_low_run #10.1
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_repeat_program_amount
|
||||
data:
|
||||
value: 1
|
||||
- service: opensprinkler.set_water_level
|
||||
- action: opensprinkler.set_water_level
|
||||
data:
|
||||
entity_id: sensor.opensprinkler_water_level
|
||||
water_level: "{{ states('input_number.sprinkler_low_water_level') | int }}"
|
||||
@@ -626,16 +626,16 @@ automation:
|
||||
entity_id: sensor.sprinkler_days_since_last_watering
|
||||
above: input_number.sprinkler_days_before_reset #4
|
||||
sequence:
|
||||
- service: script.sprinkler_reset_helper_values
|
||||
- action: script.sprinkler_reset_helper_values
|
||||
data: {}
|
||||
|
||||
default:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_repeat_program_amount
|
||||
data:
|
||||
value: 0
|
||||
- service: opensprinkler.set_water_level
|
||||
- action: opensprinkler.set_water_level
|
||||
data:
|
||||
entity_id: sensor.opensprinkler_water_level
|
||||
water_level: 0
|
||||
@@ -645,19 +645,19 @@ script:
|
||||
alias: "Sprinkler: Reset Helper Values"
|
||||
icon: mdi:refresh
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sprinkler_maximum_temperature_measured
|
||||
data:
|
||||
value: "{{ states('sensor.outdoor_temperature') | float(default=50) }}"
|
||||
|
||||
- service: input_datetime.set_datetime
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.sprinkler_last_reset
|
||||
data:
|
||||
timestamp: "{{ as_timestamp(now()) }}"
|
||||
|
||||
- service: utility_meter.reset
|
||||
- action: utility_meter.reset
|
||||
data: {}
|
||||
target:
|
||||
entity_id: select.sprinkler_recent_rain
|
||||
@@ -670,7 +670,7 @@ script:
|
||||
repeat:
|
||||
count: "{{states('input_number.sprinkler_repeat_program_amount') | int }}"
|
||||
sequence:
|
||||
- service: opensprinkler.run
|
||||
- action: opensprinkler.run
|
||||
data:
|
||||
entity_id: switch.opensprinkler_enabled
|
||||
run_seconds:
|
||||
|
||||
@@ -15,7 +15,7 @@ sensor:
|
||||
name: Lowest Thermostat Battery
|
||||
type: min
|
||||
entity_ids:
|
||||
- sensor.blue_room_thermostat_battery
|
||||
- sensor.boys_room_thermostat_battery
|
||||
- sensor.front_room_thermostat_battery
|
||||
- sensor.furnace_room_thermostat_battery
|
||||
- sensor.mancave_thermostat_battery
|
||||
@@ -28,7 +28,7 @@ sensor:
|
||||
type: min
|
||||
entity_ids:
|
||||
- sensor.basement_door_battery
|
||||
- sensor.blue_room_door_battery
|
||||
- sensor.boys_room_door_battery
|
||||
- sensor.mancave_door_battery
|
||||
- sensor.utility_room_door_battery
|
||||
- sensor.front_door_battery
|
||||
|
||||
@@ -12,3 +12,7 @@ sensor:
|
||||
- sensor.great_room_multisensor_battery_level
|
||||
- sensor.garage_multisensor_battery_level
|
||||
- sensor.kitchen_multisensor_battery_level
|
||||
- sensor.boys_room_multisensor_battery_level
|
||||
- sensor.dining_room_multisensor_battery_level
|
||||
- sensor.furnace_room_water_sensor_battery_level
|
||||
- sensor.zwave_remote_battery_level
|
||||
|
||||
@@ -2,42 +2,42 @@ input_select:
|
||||
camera_dropdown:
|
||||
name: Cast Camera
|
||||
options:
|
||||
- Blue Room
|
||||
- Boys Room
|
||||
- Kitchen
|
||||
- Front Room
|
||||
- Computer Area
|
||||
- Garage
|
||||
- Nursery
|
||||
- Girls Room
|
||||
- Back Yard
|
||||
- Front Yard
|
||||
- Front Door
|
||||
- Master Bedroom
|
||||
initial: Nursery
|
||||
initial: Girls Room
|
||||
icon: mdi:camera
|
||||
cast_to_screen_dropdown:
|
||||
name: To Screen
|
||||
options:
|
||||
- Front Room Display
|
||||
- Nursery Hub
|
||||
- Girls Room Hub
|
||||
- Computer Area Hub
|
||||
|
||||
script:
|
||||
execute_cast_dropdown:
|
||||
alias: Press to execute
|
||||
sequence:
|
||||
# - service: media_player.play_media
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
# media_player.nursery_hub
|
||||
# media_player.girls_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
# data:
|
||||
# media_content_id: >
|
||||
# {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
# {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
# media-source://camera/camera.frigate_cam01
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
# media-source://camera/camera.frigate_cam12
|
||||
@@ -58,30 +58,30 @@ script:
|
||||
# {% endif %}
|
||||
# media_content_type: 'image/jpeg'
|
||||
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: >
|
||||
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
media_player.front_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
media_player.nursery_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
media_player.girls_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
volume_level: 0.100
|
||||
|
||||
# - service: webrtc.dash_cast
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
# media_player.nursery_hub
|
||||
# media_player.girls_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
# url: >
|
||||
# {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
# {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
# rtsp://192.168.1.11:8554/rtsp_cam01_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
# rtsp://192.168.1.11:8554/rtsp_cam12_sub
|
||||
@@ -106,21 +106,20 @@ script:
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
|
||||
|
||||
- action: cast.show_lovelace_view
|
||||
data:
|
||||
entity_id: >
|
||||
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
media_player.front_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
media_player.nursery_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
media_player.girls_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
dashboard_path: camera-casting-yml
|
||||
view_path: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
blue-room-camera
|
||||
{% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
boys-room-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
kitchen-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
||||
@@ -129,8 +128,8 @@ script:
|
||||
garage-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
mbr-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Nursery') %}
|
||||
nursery-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
|
||||
girls-room-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
back-yard-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
@@ -139,4 +138,4 @@ script:
|
||||
front-porch-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
front-room-camera
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -19,34 +19,33 @@
|
||||
# password: !secret bi_password
|
||||
# authentication: basic
|
||||
|
||||
# - platform: local_file
|
||||
# name: Emmett
|
||||
# file_path: /config/image/4b8a4e30436d64121be7b0b59f857877/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Emmett
|
||||
# file_path: /config/image/4b8a4e30436d64121be7b0b59f857877/512x512
|
||||
# - platform: local_file
|
||||
# name: Bridget
|
||||
# file_path: /config/image/4ce4447957c07525227b0574cbb1e40b/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Bridget
|
||||
# file_path: /config/image/4ce4447957c07525227b0574cbb1e40b/512x512
|
||||
# - platform: local_file
|
||||
# name: Clint
|
||||
# file_path: /config/image/ca19fa93140bf891d9a871858d910c69/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Clint
|
||||
# file_path: /config/image/ca19fa93140bf891d9a871858d910c69/512x512
|
||||
# - platform: local_file
|
||||
# name: Ebin
|
||||
# file_path: /config/image/80720d36ba13e7993b992ee2c8c76144/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Ebin
|
||||
# file_path: /config/image/80720d36ba13e7993b992ee2c8c76144/512x512
|
||||
# - platform: local_file
|
||||
# name: Kristy
|
||||
# file_path: /config/image/7dde65b227b3d96cb4546c9c2447db5d/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Kristy
|
||||
# file_path: /config/image/7dde65b227b3d96cb4546c9c2447db5d/512x512
|
||||
# - platform: local_file
|
||||
# name: Tess
|
||||
# file_path: /config/image/929bf1b71232216f9ed31d8dbdbd7a54/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Tess
|
||||
# file_path: /config/image/929bf1b71232216f9ed31d8dbdbd7a54/512x512
|
||||
|
||||
# - platform: local_file
|
||||
# name: Marshall
|
||||
# file_path: /config/image/29196e13641d83e1c54656d88b272c7c/512x512
|
||||
# - platform: local_file
|
||||
# name: Marshall
|
||||
# file_path: /config/image/29196e13641d83e1c54656d88b272c7c/512x512
|
||||
|
||||
# amcrest:
|
||||
# - name: Back Yard
|
||||
@@ -56,7 +55,7 @@
|
||||
# resolution: low
|
||||
# stream_source: rtsp
|
||||
|
||||
# - name: Blue Room
|
||||
# - name: Boys Room
|
||||
# host: !secret camera01ip
|
||||
# username: !secret camerausername
|
||||
# password: !secret camerapassword
|
||||
@@ -117,4 +116,4 @@
|
||||
# username: !secret camerausername
|
||||
# password: !secret camerapassword
|
||||
# resolution: low
|
||||
# stream_source: rtsp
|
||||
# stream_source: rtsp
|
||||
|
||||
@@ -68,7 +68,7 @@ script:
|
||||
conditions: "{{ ytube_in_use }}"
|
||||
sequence:
|
||||
- alias: "Interrupt ytube music player"
|
||||
service: ytube_music_player.call_method
|
||||
action: ytube_music_player.call_method
|
||||
entity_id: media_player.ytube_music_player
|
||||
data:
|
||||
command: interrupt_start
|
||||
@@ -80,14 +80,14 @@ script:
|
||||
seconds: 2
|
||||
|
||||
- alias: "Set the volume on the announcement speakers"
|
||||
service: media_player.volume_set
|
||||
action: media_player.volume_set
|
||||
target:
|
||||
entity_id: "{{media_player}}"
|
||||
data:
|
||||
volume_level: "{{volume}}"
|
||||
|
||||
- alias: "Play the announcement"
|
||||
service: media_player.play_media
|
||||
action: media_player.play_media
|
||||
target:
|
||||
entity_id: "{{media_player}}"
|
||||
data:
|
||||
@@ -111,20 +111,20 @@ script:
|
||||
conditions: "{{ ytube_in_use }}"
|
||||
sequence:
|
||||
- alias: "Mute the remote speakers momentarily"
|
||||
service: media_player.volume_set
|
||||
action: media_player.volume_set
|
||||
target:
|
||||
entity_id: "{{ remote_player }}"
|
||||
data:
|
||||
volume_level: 0
|
||||
|
||||
- alias: "Resume the ytube music player playlist"
|
||||
service: ytube_music_player.call_method
|
||||
action: ytube_music_player.call_method
|
||||
entity_id: media_player.ytube_music_player
|
||||
data:
|
||||
command: interrupt_resume
|
||||
|
||||
- alias: "Reset the volume of the remote speakers to the previous level"
|
||||
service: media_player.volume_set
|
||||
action: media_player.volume_set
|
||||
target:
|
||||
entity_id: "{{ remote_player }}"
|
||||
data:
|
||||
@@ -132,7 +132,7 @@ script:
|
||||
|
||||
default:
|
||||
- alias: "Since we're not resuming music, turn off the speakers used to make the announcement"
|
||||
service: media_player.turn_off
|
||||
action: media_player.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: "{{ media_player }}"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# If Recorder is disable for a specific entity, the history and logbook become unavailable for that entity
|
||||
|
||||
# Example Purge
|
||||
# service: recorder.purge
|
||||
# action: recorder.purge
|
||||
# data:
|
||||
# apply_filter: true
|
||||
# keep_days: 180
|
||||
@@ -107,7 +107,6 @@ recorder:
|
||||
# - script
|
||||
# - input_number
|
||||
|
||||
|
||||
# The history integration tracks everything going on in Home Assistant, and allows the user to visually browse through it.
|
||||
# It relies on the Recorder integration. If something is blocked by the recorder integration, it won't show up in the history integration.
|
||||
# I really need to go through the History section, and see if there is anything useful that is worth keeping around.
|
||||
@@ -228,8 +227,6 @@ logbook:
|
||||
domains:
|
||||
- sun
|
||||
- device_tracker
|
||||
|
||||
|
||||
# InfluxDB is used for external storage of data and generating pretty charts and graphs that I really don't use anywhere right now...
|
||||
# As of right now, about the only info I would use are the long-term stats that are already managed in the main database, so there really is no current
|
||||
# need for influx.
|
||||
@@ -288,4 +285,3 @@ logbook:
|
||||
# where: '"database"=''homeassistant'' AND time > now() - 5m'
|
||||
# field: diskBytes
|
||||
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ google_assistant:
|
||||
input_boolean.marshall_in_bed:
|
||||
name: Marshall In Bed
|
||||
expose: true
|
||||
room: Blue Room
|
||||
room: Boys Room
|
||||
|
||||
input_boolean.tess_in_bed:
|
||||
name: Tess In Bed
|
||||
@@ -257,16 +257,16 @@ google_assistant:
|
||||
room: Master Bedroom
|
||||
expose: true
|
||||
|
||||
input_button.blue_room_bedtime:
|
||||
name: Teens Bedtime
|
||||
room: Blue Room
|
||||
input_button.boys_room_bedtime:
|
||||
name: Boys Room Bedtime
|
||||
room: Boys Room
|
||||
expose: true
|
||||
aliases:
|
||||
- Blue Room Bedtime
|
||||
- Boys Room Bedtime
|
||||
|
||||
input_button.blue_room_awake:
|
||||
name: Teens Awake
|
||||
room: Blue Room
|
||||
input_button.boys_room_awake:
|
||||
name: Boys Room Awake
|
||||
room: Boys Room
|
||||
expose: true
|
||||
aliases:
|
||||
- Blue Room Awake
|
||||
- Boys Room Awake
|
||||
|
||||
@@ -68,7 +68,7 @@ sensor:
|
||||
entity_ids:
|
||||
- sensor.computer_area_multisensor_air_temperature
|
||||
- sensor.mancave_thermostat_temperature
|
||||
- sensor.blue_room_thermostat_temperature
|
||||
- sensor.boys_room_thermostat_temperature
|
||||
- sensor.great_room_multisensor_air_temperature
|
||||
- sensor.furnace_room_thermostat_temperature
|
||||
|
||||
@@ -78,7 +78,7 @@ sensor:
|
||||
entity_ids:
|
||||
- sensor.computer_area_multisensor_air_temperature
|
||||
- sensor.mancave_thermostat_temperature
|
||||
- sensor.blue_room_thermostat_temperature
|
||||
- sensor.boys_room_thermostat_temperature
|
||||
- sensor.great_room_multisensor_air_temperature
|
||||
|
||||
# - platform: min_max
|
||||
@@ -87,7 +87,7 @@ sensor:
|
||||
# entity_ids:
|
||||
# - sensor.computer_area_multisensor_air_temperature
|
||||
# - sensor.mancave_thermostat_temperature
|
||||
# - sensor.blue_room_thermostat_temperature
|
||||
# - sensor.boys_room_thermostat_temperature
|
||||
# - sensor.great_room_multisensor_air_temperature
|
||||
|
||||
- platform: min_max
|
||||
@@ -97,7 +97,7 @@ sensor:
|
||||
- sensor.computer_area_multisensor_humidity
|
||||
- sensor.great_room_multisensor_humidity
|
||||
- sensor.mancave_thermostat_humidity
|
||||
- sensor.blue_room_thermostat_humidity
|
||||
- sensor.boys_room_thermostat_humidity
|
||||
|
||||
- platform: min_max
|
||||
name: Downstairs Min Humidity
|
||||
@@ -106,7 +106,7 @@ sensor:
|
||||
- sensor.computer_area_multisensor_humidity
|
||||
- sensor.great_room_multisensor_humidity
|
||||
- sensor.mancave_thermostat_humidity
|
||||
- sensor.blue_room_thermostat_humidity
|
||||
- sensor.boys_room_thermostat_humidity
|
||||
|
||||
- platform: min_max
|
||||
name: Downstairs Mean Humidity
|
||||
@@ -115,7 +115,7 @@ sensor:
|
||||
- sensor.computer_area_multisensor_humidity
|
||||
- sensor.great_room_multisensor_humidity
|
||||
- sensor.mancave_thermostat_humidity
|
||||
- sensor.blue_room_thermostat_humidity
|
||||
- sensor.boys_room_thermostat_humidity
|
||||
|
||||
- platform: history_stats
|
||||
name: AC Cooling Time Today
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
script:
|
||||
light_cycle:
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: light.front_room_hue
|
||||
data_template:
|
||||
brightness: 250
|
||||
@@ -10,16 +10,16 @@ script:
|
||||
{{ colors|random }}
|
||||
transition: 1
|
||||
# Wait until the loop_lights script has finished running
|
||||
- delay: '00:00:02'
|
||||
- delay: "00:00:02"
|
||||
- wait_template: "{{ is_state('script.loop_lights', 'off') }}"
|
||||
- service: script.loop_lights
|
||||
- action: script.loop_lights
|
||||
|
||||
loop_lights:
|
||||
sequence:
|
||||
- delay: '00:00:02'
|
||||
- delay: "00:00:02"
|
||||
# Wait until the light_cycle script has finished running
|
||||
- wait_template: "{{ is_state('script.light_cycle', 'off') }}"
|
||||
- service: script.light_cycle
|
||||
- action: script.light_cycle
|
||||
|
||||
automation:
|
||||
- alias: Light Cycle Start
|
||||
@@ -27,43 +27,43 @@ automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.front_room_light_cycle
|
||||
to: 'on'
|
||||
to: "on"
|
||||
action:
|
||||
- service: input_text.set_value
|
||||
- action: input_text.set_value
|
||||
# Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.
|
||||
data_template:
|
||||
entity_id: input_text.front_room_mode
|
||||
value: "{{ states('input_select.front_room_mode') }}"
|
||||
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.front_room_mode
|
||||
option: 'Off'
|
||||
- service: script.light_cycle
|
||||
option: "Off"
|
||||
- action: script.light_cycle
|
||||
|
||||
- alias: Light Cycle Stop
|
||||
id: automation_light_cycle_stop
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.front_room_light_cycle
|
||||
to: 'off'
|
||||
to: "off"
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
entity_id:
|
||||
- script.light_cycle
|
||||
- script.loop_lights
|
||||
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.front_room_mode
|
||||
option: "{{ states('input_text.front_room_mode') }}"
|
||||
|
||||
- service: input_boolean.toggle
|
||||
- action: input_boolean.toggle
|
||||
data:
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
|
||||
- delay: '00:00:01'
|
||||
- delay: "00:00:01"
|
||||
|
||||
- service: input_boolean.toggle
|
||||
- action: input_boolean.toggle
|
||||
data:
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
|
||||
@@ -27,14 +27,14 @@ template:
|
||||
event: start
|
||||
|
||||
action:
|
||||
- service: weather.get_forecasts
|
||||
- action: weather.get_forecasts
|
||||
data:
|
||||
type: daily
|
||||
target:
|
||||
entity_id: weather.forecast_home
|
||||
response_variable: daily
|
||||
|
||||
- service: weather.get_forecasts
|
||||
- action: weather.get_forecasts
|
||||
data:
|
||||
type: hourly
|
||||
target:
|
||||
|
||||
@@ -4,29 +4,29 @@ template:
|
||||
event: start
|
||||
|
||||
- platform: state
|
||||
entity_id: input_number.blue_room_light_level_trigger
|
||||
entity_id: input_number.boys_room_light_level_trigger
|
||||
|
||||
- platform: state
|
||||
entity_id: sensor.blue_room_multisensor_illuminance
|
||||
entity_id: sensor.boys_room_multisensor_illuminance
|
||||
|
||||
binary_sensor:
|
||||
- name: "Blue Room Naturally Lit"
|
||||
- name: "Boys Room Naturally Lit"
|
||||
unique_id: templatebinarysensor_blueroomnaturallylit
|
||||
delay_on:
|
||||
seconds: 3
|
||||
delay_off:
|
||||
seconds: 3
|
||||
state: >
|
||||
{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) > states('input_number.blue_room_light_level_trigger') | float(default=0) }}
|
||||
{{ states('sensor.boys_room_multisensor_illuminance') | float(default=0) > states('input_number.boys_room_light_level_trigger') | float(default=0) }}
|
||||
icon: >
|
||||
{% if states('sensor.blue_room_multisensor_illuminance') | float(default=0) > states('input_number.blue_room_light_level_trigger') | float(default=0) %}
|
||||
{% if states('sensor.boys_room_multisensor_illuminance') | float(default=0) > states('input_number.boys_room_light_level_trigger') | float(default=0) %}
|
||||
mdi:weather-sunny
|
||||
{% else %}
|
||||
mdi:weather-sunny-off
|
||||
{% endif %}
|
||||
attributes:
|
||||
illuminance: "{{ states('sensor.blue_room_multisensor_illuminance') | float(default=0) }}"
|
||||
trigger: "{{ states('input_number.blue_room_light_level_trigger') | float(default=0) }}"
|
||||
illuminance: "{{ states('sensor.boys_room_multisensor_illuminance') | float(default=0) }}"
|
||||
trigger: "{{ states('input_number.boys_room_light_level_trigger') | float(default=0) }}"
|
||||
|
||||
- trigger:
|
||||
- platform: homeassistant
|
||||
@@ -351,8 +351,8 @@ template:
|
||||
trigger: "{{ states('input_number.nursery_light_level_trigger') | float(default=0) }}"
|
||||
|
||||
input_number:
|
||||
blue_room_light_level_trigger:
|
||||
name: Blue Room Light Level Trigger
|
||||
boys_room_light_level_trigger:
|
||||
name: Boys Room Light Level Trigger
|
||||
icon: mdi:brightness-auto
|
||||
min: 0
|
||||
max: 50000
|
||||
|
||||
@@ -2,7 +2,7 @@ notify:
|
||||
- platform: group
|
||||
name: "Clints Everything"
|
||||
services:
|
||||
- service: dreambox
|
||||
- service: dreamtablet
|
||||
- service: dreamtablet02
|
||||
- service: mobile_app_pixel_7
|
||||
- action: dreambox
|
||||
- action: dreamtablet
|
||||
- action: dreamtablet02
|
||||
- action: mobile_app_pixel_7
|
||||
|
||||
@@ -28,14 +28,14 @@
|
||||
# event: start
|
||||
|
||||
# action:
|
||||
# - service: weather.get_forecasts
|
||||
# - action: weather.get_forecasts
|
||||
# data:
|
||||
# type: daily
|
||||
# target:
|
||||
# entity_id: weather.openweathermap_daily
|
||||
# response_variable: daily
|
||||
|
||||
# - service: weather.get_forecasts
|
||||
# - action: weather.get_forecasts
|
||||
# data:
|
||||
# type: hourly
|
||||
# target:
|
||||
|
||||
@@ -4,10 +4,10 @@ lock:
|
||||
name: Patio Door
|
||||
value_template: "{{ is_state('switch.shelly_sliding_glass_door', 'on') }}"
|
||||
lock:
|
||||
service: switch.turn_on
|
||||
action: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.shelly_sliding_glass_door
|
||||
unlock:
|
||||
service: switch.turn_off
|
||||
action: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.shelly_sliding_glass_door
|
||||
entity_id: switch.shelly_sliding_glass_door
|
||||
|
||||
@@ -26,8 +26,8 @@ automation:
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- service: notify.send_message
|
||||
- action: notify.send_message
|
||||
target:
|
||||
entity_id: notify.pixel_7_coordinates
|
||||
data:
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('device_tracker.pixel_7')}},{{state_attr('device_tracker.pixel_7','latitude')}},{{state_attr('device_tracker.pixel_7','longitude')}}"
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('device_tracker.pixel_7')}},{{state_attr('device_tracker.pixel_7','latitude')}},{{state_attr('device_tracker.pixel_7','longitude')}}"
|
||||
|
||||
@@ -1,114 +1,114 @@
|
||||
automation:
|
||||
- id: automation_update_energy_tariff
|
||||
alias: Update Energy Tariff
|
||||
# Summer rates run from June 1st through September 30
|
||||
# Summer peak rate starts at 14:00 and ends at 19:00
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.energy_tariff
|
||||
to:
|
||||
- Non-Summer
|
||||
- Summer Peak
|
||||
- Summer Non-Peak
|
||||
- id: automation_update_energy_tariff
|
||||
alias: Update Energy Tariff
|
||||
# Summer rates run from June 1st through September 30
|
||||
# Summer peak rate starts at 14:00 and ends at 19:00
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.energy_tariff
|
||||
to:
|
||||
- Non-Summer
|
||||
- Summer Peak
|
||||
- Summer Non-Peak
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- platform: event
|
||||
event_type: automation_reloaded
|
||||
- platform: event
|
||||
event_type: automation_reloaded
|
||||
|
||||
action:
|
||||
- service: select.select_option
|
||||
target:
|
||||
entity_id:
|
||||
- select.hourly_energy
|
||||
- select.daily_energy
|
||||
- select.weekly_energy
|
||||
- select.monthly_energy
|
||||
# - select.basement_and_laundry_lights_and_plugs_hourly
|
||||
# - select.basement_and_laundry_lights_and_plugs_daily
|
||||
# - select.basement_and_laundry_lights_and_plugs_weekly
|
||||
# - select.basement_and_laundry_lights_and_plugs_monthly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_hourly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_daily
|
||||
# - select.basement_bedroom_and_furnace_room_lights_weekly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_monthly
|
||||
# - select.basement_plugs_hourly
|
||||
# - select.basement_plugs_daily
|
||||
# - select.basement_plugs_weekly
|
||||
# - select.basement_plugs_monthly
|
||||
# - select.basement_stairs_and_lights_hourly
|
||||
# - select.basement_stairs_and_lights_daily
|
||||
# - select.basement_stairs_and_lights_weekly
|
||||
# - select.basement_stairs_and_lights_monthly
|
||||
# - select.bathroom_plug_hourly
|
||||
# - select.bathroom_plug_daily
|
||||
# - select.bathroom_plug_weekly
|
||||
# - select.bathroom_plug_monthly
|
||||
# - select.dishwasher_hourly
|
||||
# - select.dishwasher_daily
|
||||
# - select.dishwasher_weekly
|
||||
# - select.dishwasher_monthly
|
||||
# - select.dryer_hourly
|
||||
# - select.dryer_daily
|
||||
# - select.dryer_weekly
|
||||
# - select.dryer_monthly
|
||||
# - select.front_room_plugs_hourly
|
||||
# - select.front_room_plugs_daily
|
||||
# - select.front_room_plugs_weekly
|
||||
# - select.front_room_plugs_monthly
|
||||
# - select.furnace_hourly
|
||||
# - select.furnace_daily
|
||||
# - select.furnace_weekly
|
||||
# - select.furnace_monthly
|
||||
# - select.garage_and_outside_plugs_hourly
|
||||
# - select.garage_and_outside_plugs_daily
|
||||
# - select.garage_and_outside_plugs_weekly
|
||||
# - select.garage_and_outside_plugs_monthly
|
||||
# - select.garage_outside_and_front_garage_lights_hourly
|
||||
# - select.garage_outside_and_front_garage_lights_daily
|
||||
# - select.garage_outside_and_front_garage_lights_weekly
|
||||
# - select.garage_outside_and_front_garage_lights_monthly
|
||||
# - select.heat_pump_hourly
|
||||
# - select.heat_pump_daily
|
||||
# - select.heat_pump_weekly
|
||||
# - select.heat_pump_monthly
|
||||
# - select.kitchen_1_hourly
|
||||
# - select.kitchen_1_daily
|
||||
# - select.kitchen_1_weekly
|
||||
# - select.kitchen_1_monthly
|
||||
# - select.kitchen_2_hourly
|
||||
# - select.kitchen_2_daily
|
||||
# - select.kitchen_2_weekly
|
||||
# - select.kitchen_2_monthly
|
||||
# - select.laundry_plug_hourly
|
||||
# - select.laundry_plug_daily
|
||||
# - select.laundry_plug_weekly
|
||||
# - select.laundry_plug_monthly
|
||||
# - select.master_suite_hourly
|
||||
# - select.master_suite_daily
|
||||
# - select.master_suite_weekly
|
||||
# - select.master_suite_monthly
|
||||
# - select.microwave_plug_hourly
|
||||
# - select.microwave_plug_daily
|
||||
# - select.microwave_plug_weekly
|
||||
# - select.microwave_plug_monthly
|
||||
# - select.nursery_dining_kitchen_lights_hourly
|
||||
# - select.nursery_dining_kitchen_lights_daily
|
||||
# - select.nursery_dining_kitchen_lights_weekly
|
||||
# - select.nursery_dining_kitchen_lights_monthly
|
||||
# - select.stove_hourly
|
||||
# - select.stove_daily
|
||||
# - select.stove_weekly
|
||||
# - select.stove_monthly
|
||||
# - select.sump_pump_plug_hourly
|
||||
# - select.sump_pump_plug_daily
|
||||
# - select.sump_pump_plug_weekly
|
||||
# - select.sump_pump_plug_monthly
|
||||
# - select.well_hourly
|
||||
# - select.well_daily
|
||||
# - select.well_weekly
|
||||
# - select.well_monthly
|
||||
action:
|
||||
- action: select.select_option
|
||||
target:
|
||||
entity_id:
|
||||
- select.hourly_energy
|
||||
- select.daily_energy
|
||||
- select.weekly_energy
|
||||
- select.monthly_energy
|
||||
# - select.basement_and_laundry_lights_and_plugs_hourly
|
||||
# - select.basement_and_laundry_lights_and_plugs_daily
|
||||
# - select.basement_and_laundry_lights_and_plugs_weekly
|
||||
# - select.basement_and_laundry_lights_and_plugs_monthly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_hourly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_daily
|
||||
# - select.basement_bedroom_and_furnace_room_lights_weekly
|
||||
# - select.basement_bedroom_and_furnace_room_lights_monthly
|
||||
# - select.basement_plugs_hourly
|
||||
# - select.basement_plugs_daily
|
||||
# - select.basement_plugs_weekly
|
||||
# - select.basement_plugs_monthly
|
||||
# - select.basement_stairs_and_lights_hourly
|
||||
# - select.basement_stairs_and_lights_daily
|
||||
# - select.basement_stairs_and_lights_weekly
|
||||
# - select.basement_stairs_and_lights_monthly
|
||||
# - select.bathroom_plug_hourly
|
||||
# - select.bathroom_plug_daily
|
||||
# - select.bathroom_plug_weekly
|
||||
# - select.bathroom_plug_monthly
|
||||
# - select.dishwasher_hourly
|
||||
# - select.dishwasher_daily
|
||||
# - select.dishwasher_weekly
|
||||
# - select.dishwasher_monthly
|
||||
# - select.dryer_hourly
|
||||
# - select.dryer_daily
|
||||
# - select.dryer_weekly
|
||||
# - select.dryer_monthly
|
||||
# - select.front_room_plugs_hourly
|
||||
# - select.front_room_plugs_daily
|
||||
# - select.front_room_plugs_weekly
|
||||
# - select.front_room_plugs_monthly
|
||||
# - select.furnace_hourly
|
||||
# - select.furnace_daily
|
||||
# - select.furnace_weekly
|
||||
# - select.furnace_monthly
|
||||
# - select.garage_and_outside_plugs_hourly
|
||||
# - select.garage_and_outside_plugs_daily
|
||||
# - select.garage_and_outside_plugs_weekly
|
||||
# - select.garage_and_outside_plugs_monthly
|
||||
# - select.garage_outside_and_front_garage_lights_hourly
|
||||
# - select.garage_outside_and_front_garage_lights_daily
|
||||
# - select.garage_outside_and_front_garage_lights_weekly
|
||||
# - select.garage_outside_and_front_garage_lights_monthly
|
||||
# - select.heat_pump_hourly
|
||||
# - select.heat_pump_daily
|
||||
# - select.heat_pump_weekly
|
||||
# - select.heat_pump_monthly
|
||||
# - select.kitchen_1_hourly
|
||||
# - select.kitchen_1_daily
|
||||
# - select.kitchen_1_weekly
|
||||
# - select.kitchen_1_monthly
|
||||
# - select.kitchen_2_hourly
|
||||
# - select.kitchen_2_daily
|
||||
# - select.kitchen_2_weekly
|
||||
# - select.kitchen_2_monthly
|
||||
# - select.laundry_plug_hourly
|
||||
# - select.laundry_plug_daily
|
||||
# - select.laundry_plug_weekly
|
||||
# - select.laundry_plug_monthly
|
||||
# - select.master_suite_hourly
|
||||
# - select.master_suite_daily
|
||||
# - select.master_suite_weekly
|
||||
# - select.master_suite_monthly
|
||||
# - select.microwave_plug_hourly
|
||||
# - select.microwave_plug_daily
|
||||
# - select.microwave_plug_weekly
|
||||
# - select.microwave_plug_monthly
|
||||
# - select.nursery_dining_kitchen_lights_hourly
|
||||
# - select.nursery_dining_kitchen_lights_daily
|
||||
# - select.nursery_dining_kitchen_lights_weekly
|
||||
# - select.nursery_dining_kitchen_lights_monthly
|
||||
# - select.stove_hourly
|
||||
# - select.stove_daily
|
||||
# - select.stove_weekly
|
||||
# - select.stove_monthly
|
||||
# - select.sump_pump_plug_hourly
|
||||
# - select.sump_pump_plug_daily
|
||||
# - select.sump_pump_plug_weekly
|
||||
# - select.sump_pump_plug_monthly
|
||||
# - select.well_hourly
|
||||
# - select.well_daily
|
||||
# - select.well_weekly
|
||||
# - select.well_monthly
|
||||
|
||||
data:
|
||||
option: "{{ states('sensor.energy_tariff') }}"
|
||||
data:
|
||||
option: "{{ states('sensor.energy_tariff') }}"
|
||||
|
||||
@@ -19,35 +19,35 @@ template:
|
||||
{% endif %}
|
||||
|
||||
automation:
|
||||
- id: automation_alert_failed_zwave_nodes
|
||||
alias: Ping Dead Zwave Nodes
|
||||
description: 'Iterates through a list of dead ZWave Nodes and calls a service to press the Ping button'
|
||||
mode: single
|
||||
max_exceeded: silent
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.dead_zwave_devices
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ states("sensor.dead_zwave_devices")|int(default=0) >0 }}'
|
||||
action:
|
||||
- repeat:
|
||||
while: '{{ states("sensor.dead_zwave_devices")|int(default=0) > 0 }}'
|
||||
sequence:
|
||||
- service: button.press
|
||||
target:
|
||||
entity_id: >-
|
||||
{% set list =
|
||||
expand(integration_entities('Z-Wave JS') )| selectattr('entity_id', 'search', 'node_status') |
|
||||
selectattr('state', 'in', ['dead', 'unavailable', 'unknown']) |
|
||||
map(attribute='entity_id')| list %}
|
||||
- id: automation_alert_failed_zwave_nodes
|
||||
alias: Ping Dead Zwave Nodes
|
||||
description: "Iterates through a list of dead ZWave Nodes and calls a service to press the Ping button"
|
||||
mode: single
|
||||
max_exceeded: silent
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.dead_zwave_devices
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ states("sensor.dead_zwave_devices")|int(default=0) >0 }}'
|
||||
action:
|
||||
- repeat:
|
||||
while: '{{ states("sensor.dead_zwave_devices")|int(default=0) > 0 }}'
|
||||
sequence:
|
||||
- action: button.press
|
||||
target:
|
||||
entity_id: >-
|
||||
{% set list =
|
||||
expand(integration_entities('Z-Wave JS') )| selectattr('entity_id', 'search', 'node_status') |
|
||||
selectattr('state', 'in', ['dead', 'unavailable', 'unknown']) |
|
||||
map(attribute='entity_id')| list %}
|
||||
|
||||
{% set ns = namespace(buttons=[]) %}
|
||||
{% for d in list %}
|
||||
{% set ns.buttons = ns.buttons +
|
||||
['button.' ~ (states[d].object_id.split('_node')[0]) ~ '_ping'] %}
|
||||
{% set ns = namespace(buttons=[]) %}
|
||||
{% for d in list %}
|
||||
{% set ns.buttons = ns.buttons +
|
||||
['button.' ~ (states[d].object_id.split('_node')[0]) ~ '_ping'] %}
|
||||
|
||||
{% endfor %}
|
||||
{{ns.buttons}}
|
||||
- delay:
|
||||
seconds: 1
|
||||
{% endfor %}
|
||||
{{ns.buttons}}
|
||||
- delay:
|
||||
seconds: 1
|
||||
|
||||
Reference in New Issue
Block a user