mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-12 18:12:25 +00:00
Compare commits
4 Commits
d682517040
...
3721935082
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3721935082 | ||
|
|
10714a953b | ||
|
|
214657f4cc | ||
|
|
5071041fa3 |
@@ -41,7 +41,7 @@ logs:
|
|||||||
homeassistant.components.sensor.pi_hole: critical
|
homeassistant.components.sensor.pi_hole: critical
|
||||||
homeassistant.components.sensor.rest: info
|
homeassistant.components.sensor.rest: info
|
||||||
homeassistant.components.sensor.darksky: warn
|
homeassistant.components.sensor.darksky: warn
|
||||||
homeassistant.components.tplink.switch: error
|
homeassistant.components.tplink.button: error
|
||||||
homeassistant.components.unifi: error
|
homeassistant.components.unifi: error
|
||||||
homeassistant.components.device_tracker.unifi: error
|
homeassistant.components.device_tracker.unifi: error
|
||||||
homeassistant.components.switch.unifi: error
|
homeassistant.components.switch.unifi: error
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
#-------------------------------------------
|
######################################################################
|
||||||
# @CCOSTAN
|
# @CCOSTAN - Follow Me on X
|
||||||
|
# For more info visit https://www.vcloudinfo.com/click-here
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
# Proxmox Frigate Host - Nightly reboot schedule.
|
# -------------------------------------------------------------------
|
||||||
#-------------------------------------------
|
# Proxmox Host Automations - reboots and update alerts
|
||||||
|
# Nightly Frigate host reboot plus update repair issues.
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Notes: Creates HA repair issues when proxmox nodes report updates.
|
||||||
######################################################################
|
######################################################################
|
||||||
## Automates nightly reboot of the Frigate server via Proxmox API.
|
|
||||||
######################################################################
|
|
||||||
# More info: https://www.vcloudinfo.com/click-here
|
|
||||||
automation:
|
automation:
|
||||||
- alias: "Nightly Frigate Server Reboot"
|
- alias: "Nightly Frigate Server Reboot"
|
||||||
id: nightly_frigate_reboot
|
id: nightly_frigate_reboot
|
||||||
description: "Reboots the Frigate server every day at 5 AM"
|
description: "Reboots the Frigate server every day at 5 AM"
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: "05:00:00"
|
at: "05:00:00"
|
||||||
@@ -18,23 +20,39 @@ automation:
|
|||||||
- service: button.press
|
- service: button.press
|
||||||
target:
|
target:
|
||||||
entity_id: button.qemu_docker2_101_reboot
|
entity_id: button.qemu_docker2_101_reboot
|
||||||
mode: single
|
|
||||||
|
|
||||||
- alias: "Notify Carlo of Proxmox Updates"
|
- alias: "Proxmox Updates Repair Issues"
|
||||||
id: notify_carlo_proxmox_updates
|
id: proxmox_updates_repair
|
||||||
description: "Sends a notification to Carlo when there are updates available for the Proxmox hosts."
|
description: "Track repair issues when Proxmox hosts report updates."
|
||||||
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.node_proxmox02_updates_packages
|
|
||||||
to: 'on'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.node_proxmox1_updates_packages
|
entity_id: binary_sensor.node_proxmox1_updates_packages
|
||||||
to: 'on'
|
- platform: state
|
||||||
|
entity_id: binary_sensor.node_proxmox02_updates_packages
|
||||||
|
variables:
|
||||||
|
node_name: >
|
||||||
|
{% if 'proxmox1' in trigger.entity_id %}Proxmox1{% else %}Proxmox02{% endif %}
|
||||||
|
issue_id: >
|
||||||
|
{% if 'proxmox1' in trigger.entity_id %}
|
||||||
|
proxmox1_updates_available
|
||||||
|
{% else %}
|
||||||
|
proxmox02_updates_available
|
||||||
|
{% endif %}
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- choose:
|
||||||
data:
|
- conditions: "{{ trigger.to_state.state == 'on' }}"
|
||||||
who: carlo
|
sequence:
|
||||||
title: "Proxmox Updates Available"
|
- service: repairs.create
|
||||||
value1: "There are updates available for the Proxmox hosts. Please review and apply updates as needed."
|
data:
|
||||||
group: "information"
|
issue_id: "{{ issue_id }}"
|
||||||
mode: single
|
severity: warning
|
||||||
|
persistent: false
|
||||||
|
title: "{{ node_name }} has updates available"
|
||||||
|
description: >
|
||||||
|
{{ trigger.entity_id }} is ON, indicating pending updates on {{ node_name }}.
|
||||||
|
Apply updates in Proxmox, then reload this sensor to clear the issue.
|
||||||
|
default:
|
||||||
|
- service: repairs.remove
|
||||||
|
data:
|
||||||
|
issue_id: "{{ issue_id }}"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ sensor:
|
|||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- chime_level
|
- chime_level
|
||||||
|
|
||||||
switch:
|
button:
|
||||||
- platform: skybell
|
- platform: skybell
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
# - do_not_disturb
|
# - do_not_disturb
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#-------------------------------------------
|
|
||||||
# @CCOSTAN
|
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
||||||
###################################
|
|
||||||
## TPink compatible Devices - https://www.vcloudinfo.com/2018/12/how-to-waterproof-your-outdoor-smart.html
|
|
||||||
|
|
||||||
TPLink no longer needed as it was moved into the UI.
|
|
||||||
###################################
|
|
||||||
tplink:
|
|
||||||
# discovery: false
|
|
||||||
switch:
|
|
||||||
- host: 192.168.10.116
|
|
||||||
@@ -10,10 +10,8 @@ homeassistant:
|
|||||||
icon: mdi:monitor-multiple
|
icon: mdi:monitor-multiple
|
||||||
emulated_hue_
|
emulated_hue_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
switch:
|
button:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: computer_screens
|
name: computer_screens
|
||||||
state_topic: 'carlo-ultra/monitor/all/power/state'
|
state_topic: 'carlo-ultra/monitor/all/power/state'
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ light:
|
|||||||
use_random_color: true
|
use_random_color: true
|
||||||
fade_out_rate: 50
|
fade_out_rate: 50
|
||||||
|
|
||||||
switch:
|
button:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Basketball Status Lights
|
name: Basketball Status Lights
|
||||||
id: bb_on_lights_off
|
id: bb_on_lights_off
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<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">
|
<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>
|
<title>2025.11.3</title>
|
||||||
<linearGradient id="IZWFI" x2="0" y2="100%">
|
<linearGradient id="KbULv" x2="0" y2="100%">
|
||||||
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
||||||
<stop offset="1" stop-opacity=".1"/>
|
<stop offset="1" stop-opacity=".1"/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
<mask id="Xulhr"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
<mask id="Yenil"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
||||||
<g mask="url(#Xulhr)">
|
<g mask="url(#Yenil)">
|
||||||
<rect width="685" height="200" fill="#08C" x="0"/>
|
<rect width="685" height="200" fill="#08C" x="0"/>
|
||||||
<rect width="685" height="200" fill="url(#IZWFI)"/>
|
<rect width="685" height="200" fill="url(#KbULv)"/>
|
||||||
</g>
|
</g>
|
||||||
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
<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.3</text>
|
<text x="65" y="148" textLength="570" fill="#000" opacity="0.25">2025.11.3</text>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
Reference in New Issue
Block a user