mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-30 18:11:45 +00:00
Compare commits
19 Commits
30fb8a8415
...
c070cedc53
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c070cedc53 | ||
|
|
4fa5f6ab91 | ||
|
|
244617f0b1 | ||
|
|
a61f83c0e3 | ||
|
|
2ec804ac53 | ||
|
|
be5bfa1d32 | ||
|
|
17bde7b75c | ||
|
|
00190bbafb | ||
|
|
64713fd3f0 | ||
|
|
0a42f42a0b | ||
|
|
65c8376a66 | ||
|
|
9bcd5fd226 | ||
|
|
034afadd40 | ||
|
|
630253e1d8 | ||
|
|
fb5a8b82ef | ||
|
|
12d1d56ce2 | ||
|
|
aa0bbd5b81 | ||
|
|
4a23d76eb2 | ||
|
|
8bf8f51b0b |
@@ -1 +1 @@
|
||||
2025.11.2
|
||||
2025.11.3
|
||||
@@ -1,40 +0,0 @@
|
||||
#-------------------------------------------
|
||||
# When the Sliding door opens, at night, turn on Pool deck lights.
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
#-------------------------------------------
|
||||
|
||||
- alias: Pool Deck light helper
|
||||
id: 9521d521-00dc-4116-b467-5150735fcff9
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.MCU2_GPIO12
|
||||
to: 'on'
|
||||
for: '00:3:00'
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
to: 'below_horizon'
|
||||
from: 'above_horizon'
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.MCU2_GPIO12
|
||||
state: 'on'
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.pirateweather_temperature
|
||||
below: 80
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.back_landscaping
|
||||
- service: light.turn_on
|
||||
entity_id: light.outdoor_pool_lights
|
||||
data:
|
||||
color_temp: 369
|
||||
- wait_template: >-
|
||||
{{ states.binary_sensor.MCU2_GPIO12.state == 'off' }}
|
||||
- service: light.turn_off
|
||||
entity_id: light.outdoor_pool_lights
|
||||
@@ -12,20 +12,22 @@
|
||||
event_type: state_changed
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ trigger.event.data.old_state is not none
|
||||
and trigger.event.data.new_state is not none
|
||||
and trigger.event.data.old_state.state == 'off'
|
||||
and trigger.event.data.new_state.state == 'on' }}
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: 'home'
|
||||
- condition: state
|
||||
entity_id: input_boolean.alert_mode
|
||||
state: 'off'
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data is not none }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.entity_id is not none }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
|
||||
# - condition: template
|
||||
# value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.tv' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.couch' }}"
|
||||
- condition: template
|
||||
@@ -34,14 +36,8 @@
|
||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.flood_2' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.treeflood' }}"
|
||||
# - condition: template
|
||||
# value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.led' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.entity_id.split('_')[1] != 'screensaver' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.new_state.state == 'on' }}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.event.data.old_state.state == 'off' }}"
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
|
||||
@@ -52,3 +52,39 @@
|
||||
- light.hallway
|
||||
- light.hallway_lights
|
||||
- light.foyer
|
||||
|
||||
##############################################################################
|
||||
### Alert when the Kitchen Accent power is cut and the switches go offline
|
||||
##############################################################################
|
||||
|
||||
- alias: Kitchen Accent Power Reminder
|
||||
id: b7c767d3-359f-4db4-9156-bba9e7d90602
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- switch.kitchen_accent_1
|
||||
- switch.kitchen_accent_2
|
||||
to: 'unavailable'
|
||||
for: '00:00:30'
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: group.bed
|
||||
state: 'off'
|
||||
- condition: template
|
||||
value_template: "{{ trigger.from_state is not none and trigger.from_state.state != 'unavailable' }}"
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data:
|
||||
title: "Kitchen Accent Power"
|
||||
value1: "The Kitchen Accent plug was switched off. Please turn it back on."
|
||||
who: 'parents'
|
||||
|
||||
- service: notify.alexa_media_kitchen
|
||||
data:
|
||||
message: "The Kitchen Accent plug was switched off. Please turn it back on."
|
||||
data:
|
||||
type: announce
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
entity_id:
|
||||
- group.exterior_lights
|
||||
- light.outdoor_front_lights
|
||||
- light.outdoor_pool_lights
|
||||
- group.outdoor_seasonal
|
||||
|
||||
- service: light.turn_off
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
- service: homeassistant.turn_on
|
||||
entity_id:
|
||||
- switch.front_landscaping
|
||||
- switch.villaneri
|
||||
# - switch.villaneri
|
||||
- light.bedroom
|
||||
- group.outdoor_seasonal
|
||||
- service: script.monthly_color_scene
|
||||
@@ -55,4 +55,3 @@
|
||||
entity_id:
|
||||
- light.living_room_accents
|
||||
- light.upstairs_lamp
|
||||
|
||||
|
||||
@@ -67,12 +67,6 @@
|
||||
entity_id: light.k4
|
||||
to: 'on'
|
||||
for: '00:20:00'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_pantry
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_linen
|
||||
to: 'off'
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
|
||||
@@ -3,53 +3,6 @@
|
||||
## Home Assistant runs on my [Raspberry Pi 3](https://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](https://amzn.to/2eAiAP0).
|
||||
###################################
|
||||
|
||||
##############################################################
|
||||
- alias: Hallway ZWave Enerwave Door Sensors Open
|
||||
id: 1dbd1ba4-6718-4510-b5ab-2a6edd540be4
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_pantry
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_linen
|
||||
to: 'on'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
after_offset: '-03:00:00'
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.pirateweather_cloud_coverage
|
||||
above: 50
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.kids_hallway
|
||||
- light.k4
|
||||
- delay: 00:20:00
|
||||
- service: light.turn_off
|
||||
entity_id: light.kids_hallway
|
||||
|
||||
##############################################################
|
||||
- alias: ZWave Enerwave Door Sensors Closed
|
||||
id: ceaeca80-e6dc-4b18-9d77-02cc4b09d272
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_pantry
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_linen
|
||||
to: 'off'
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id: light.kids_hallway
|
||||
|
||||
##############################################################
|
||||
- alias: Shutdown Helper light
|
||||
id: e3f4beff-4fa8-42e3-be5a-32b45106ac8a
|
||||
@@ -59,12 +12,6 @@
|
||||
entity_id: light.k4
|
||||
to: 'on'
|
||||
for: '00:20:00'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_pantry
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_linen
|
||||
to: 'off'
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
|
||||
@@ -47,7 +47,6 @@ cloud:
|
||||
- light.living_room_lights
|
||||
- light.office_lights
|
||||
- light.outdoor_front_lights
|
||||
- light.outdoor_pool_lights
|
||||
- light.upstairs_lights
|
||||
- light.upstairs_lamp
|
||||
- light.sink
|
||||
@@ -56,6 +55,18 @@ cloud:
|
||||
- cover
|
||||
- input_boolean
|
||||
- camera
|
||||
exclude_entities:
|
||||
- light.m1_back_left
|
||||
- light.m1_back_right
|
||||
- light.m1_front_left
|
||||
- light.m1_front_right
|
||||
- light.main_slider
|
||||
- light.living_room
|
||||
entity_config:
|
||||
light.living_room_lights:
|
||||
name: Living Room Color Lights
|
||||
light.main_slider:
|
||||
name: Living Room Slider
|
||||
|
||||
#discovery:
|
||||
# This groups up lights but displays them as light.xxxx
|
||||
|
||||
@@ -21,7 +21,6 @@ Interior_Lights:
|
||||
Exterior_Lights:
|
||||
entities:
|
||||
- light.outdoor_bathroom
|
||||
- light.outdoor_pool_lights
|
||||
- light.outdoor_front_lights
|
||||
- group.landscaping
|
||||
- group.outdoor_seasonal
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
doors:
|
||||
name: Doors
|
||||
entities:
|
||||
- binary_sensor.hallway_linen
|
||||
- binary_sensor.hallway_pantry
|
||||
# - binary_sensor.kitchen_door
|
||||
- binary_sensor.MCU2_GPIO12 # Main Slider
|
||||
- binary_sensor.MCU3_Light # Alarm Door
|
||||
|
||||
@@ -2,6 +2,5 @@ motion:
|
||||
name: Motion Detectors
|
||||
entities:
|
||||
- binary_sensor.office_motion
|
||||
- binary_sensor.frontdoorbell_all_occupancy
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@ filter:
|
||||
- light.living_room_lights
|
||||
- light.office_lights
|
||||
- light.outdoor_front_lights
|
||||
- light.outdoor_pool_lights
|
||||
- light.upstairs_lights
|
||||
- light.upstairs_lamp
|
||||
- light.sink
|
||||
@@ -57,7 +56,6 @@ filter:
|
||||
|
||||
entity_config:
|
||||
camera.frontdoorbell:
|
||||
linked_motion_sensor: binary_sensor.frontdoorbell_all_occupancy
|
||||
video_codec: copy
|
||||
stream_source: rtsp://192.168.10.14:8554/frontdoorbell?mp4
|
||||
camera.poolcam:
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
- light.m1_back_right
|
||||
- light.m1_front_left
|
||||
- light.m1_front_right
|
||||
- light.main_slider
|
||||
|
||||
- platform: group
|
||||
name: Living Room Accents
|
||||
@@ -83,14 +82,6 @@
|
||||
- light.s3
|
||||
- light.s4
|
||||
|
||||
- platform: group
|
||||
name: Outdoor Pool Lights
|
||||
entities:
|
||||
- light.p1_front_left
|
||||
- light.p1_front_right
|
||||
- light.p1_back_left
|
||||
- light.p1_back_right
|
||||
|
||||
- platform: group
|
||||
name: Outdoor Front Lights
|
||||
entities:
|
||||
|
||||
@@ -11,7 +11,7 @@ group:
|
||||
entities:
|
||||
- switch.front_landscaping
|
||||
- switch.back_landscaping
|
||||
- switch.villaneri
|
||||
# - switch.villaneri
|
||||
#-------------------------------------------
|
||||
# Automation : Added to Sunset_ON
|
||||
# Automation : Added to Sunset_OFF
|
||||
|
||||
@@ -45,6 +45,8 @@ automation:
|
||||
entity_id:
|
||||
- group.interior_lights
|
||||
- group.exterior_lights
|
||||
- switch.kitchen_accent_2
|
||||
- switch.master_bathroom_accent_2
|
||||
- service: script.notify_engine
|
||||
data:
|
||||
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
||||
@@ -58,6 +60,8 @@ automation:
|
||||
entity_id:
|
||||
- group.interior_lights
|
||||
- group.exterior_lights
|
||||
- switch.kitchen_accent_2
|
||||
- switch.master_bathroom_accent_2
|
||||
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
@@ -69,6 +73,8 @@ automation:
|
||||
entity_id:
|
||||
- group.interior_lights
|
||||
- group.exterior_lights
|
||||
- switch.kitchen_accent_2
|
||||
- switch.master_bathroom_accent_2
|
||||
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
@@ -95,6 +101,127 @@ automation:
|
||||
who: 'parents'
|
||||
group: 'information'
|
||||
|
||||
- alias: "Shut down Docker hosts and camera PoE at 75% Powerwall"
|
||||
id: 25b3d3d8-92fa-454a-9f1c-6d3fd0f3af58
|
||||
description: "Protect battery by shutting down non-essentials when Powerwall drops below 75%"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.powerwall_charge
|
||||
below: 75
|
||||
for:
|
||||
minutes: 3
|
||||
action:
|
||||
- service: button.press
|
||||
target:
|
||||
entity_id:
|
||||
- button.qemu_docker2_101_shutdown
|
||||
- button.qemu_docker69_169_shutdown
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.poe_garage_port_3_poe
|
||||
- switch.poe_garage_port_4_poe
|
||||
- switch.poe_garage_port_5_poe
|
||||
- switch.poe_garage_port_6_poe
|
||||
|
||||
- alias: "Powerwall outage - Rheem WH off at night"
|
||||
id: d686f650-65ad-4cc6-8e27-8b5ee76b5338
|
||||
description: "During outages, turn off the water heater after sunset to protect battery"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
- platform: state
|
||||
entity_id: binary_sensor.powerwall_grid_status
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 1
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.powerwall_grid_status
|
||||
state: 'off'
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
- condition: sun
|
||||
before: sunrise
|
||||
action:
|
||||
- service: water_heater.set_operation_mode
|
||||
target:
|
||||
entity_id: water_heater.rheem_wh
|
||||
data:
|
||||
state: off
|
||||
|
||||
- alias: "Powerwall outage - Rheem WH heat pump after sunrise and 50%"
|
||||
id: 7b6e8bb0-7d0c-4e63-89cf-ff6e7811b579
|
||||
description: "During outages, restore water heater to heat pump once battery is healthy during daytime"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunrise
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.powerwall_charge
|
||||
above: 50
|
||||
for:
|
||||
minutes: 5
|
||||
- platform: state
|
||||
entity_id: binary_sensor.powerwall_grid_status
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 1
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.powerwall_grid_status
|
||||
state: 'off'
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.powerwall_charge
|
||||
above: 50
|
||||
- condition: sun
|
||||
after: sunrise
|
||||
before: sunset
|
||||
action:
|
||||
- service: water_heater.set_operation_mode
|
||||
target:
|
||||
entity_id: water_heater.rheem_wh
|
||||
data:
|
||||
state: heat_pump
|
||||
|
||||
- alias: "Notify to restore PoE ports when grid returns"
|
||||
id: 1ae8b5c5-8627-4a44-8c8a-5bf8ca5e1bf5
|
||||
description: "Prompt to turn PoE ports back on after outage shutdown steps"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.powerwall_grid_status
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
for:
|
||||
minutes: 10
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: switch.poe_garage_port_3_poe
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: switch.poe_garage_port_4_poe
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: switch.poe_garage_port_5_poe
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: switch.poe_garage_port_6_poe
|
||||
state: 'off'
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data:
|
||||
title: "Grid restored - turn PoE ports back on"
|
||||
value1: "Power is back. Remember to re-enable PoE ports 3-6 if cameras stayed offline."
|
||||
who: 'family'
|
||||
group: 'information'
|
||||
|
||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
|
||||
- alias: Turn off the Nest Thermostats during a Power Outage
|
||||
id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/892
|
||||
# https://www.home-assistant.io/integrations/econet/
|
||||
#-------------------------------------------
|
||||
# Powerwall outage control for Rheem WH lives in config/packages/powerwall.yaml
|
||||
|
||||
##############################################################################
|
||||
### Automations
|
||||
@@ -76,6 +77,22 @@ automation:
|
||||
data:
|
||||
value1: "The available hot water is now above 50%. Normal showering can resume. Gallons used today: {{sensor.phyn_daily_water_usage}}"
|
||||
|
||||
#-------------------------------------------
|
||||
# Available Rheem entities snapshot (for reference)
|
||||
# automation.rheem_water_heater_health_monitoring
|
||||
# automation.rheem_water_heater_hot_water_availability_alert
|
||||
# binary_sensor.rheem_wh_running
|
||||
# binary_sensor.rheem_wh_shutoff_valve
|
||||
# sensor.rheem_wh_alert_count
|
||||
# sensor.rheem_wh_available_hot_water
|
||||
# sensor.rheem_wh_compressor_health
|
||||
# sensor.rheem_wh_override_status
|
||||
# sensor.rheem_wh_power_usage_today
|
||||
# sensor.rheem_wh_running_state
|
||||
# sensor.rheem_wh_tank_health
|
||||
# sensor.rheem_wh_water_usage_today
|
||||
# sensor.rheem_wh_wifi_signal
|
||||
# water_heater.rheem_wh
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<svg width="68.5" height="20" viewBox="0 0 685 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.11.2">
|
||||
<title>2025.11.2</title>
|
||||
<linearGradient id="Fdmcs" x2="0" y2="100%">
|
||||
<svg width="68.5" height="20" viewBox="0 0 685 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.11.3">
|
||||
<title>2025.11.3</title>
|
||||
<linearGradient id="zqUaA" x2="0" y2="100%">
|
||||
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
||||
<stop offset="1" stop-opacity=".1"/>
|
||||
</linearGradient>
|
||||
<mask id="NvMYP"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
||||
<g mask="url(#NvMYP)">
|
||||
<mask id="kqsOC"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
||||
<g mask="url(#kqsOC)">
|
||||
<rect width="685" height="200" fill="#08C" x="0"/>
|
||||
<rect width="685" height="200" fill="url(#Fdmcs)"/>
|
||||
<rect width="685" height="200" fill="url(#zqUaA)"/>
|
||||
</g>
|
||||
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
||||
<text x="65" y="148" textLength="570" fill="#000" opacity="0.25">2025.11.2</text>
|
||||
<text x="55" y="138" textLength="570">2025.11.2</text>
|
||||
<text x="65" y="148" textLength="570" fill="#000" opacity="0.25">2025.11.3</text>
|
||||
<text x="55" y="138" textLength="570">2025.11.3</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"files.associations": {
|
||||
"*.yaml": "home-assistant"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user