252 lines
5.5 KiB
YAML
252 lines
5.5 KiB
YAML
assist_pipeline:
|
|
config:
|
|
counter:
|
|
energy:
|
|
frontend:
|
|
history:
|
|
image:
|
|
input_boolean:
|
|
input_button:
|
|
input_datetime:
|
|
input_number:
|
|
input_select:
|
|
input_text:
|
|
logbook:
|
|
media_source:
|
|
mobile_app:
|
|
person:
|
|
schedule:
|
|
ssdp:
|
|
stream:
|
|
sun:
|
|
system_health:
|
|
tag:
|
|
timer:
|
|
webhook:
|
|
zeroconf:
|
|
zone:
|
|
|
|
http:
|
|
trusted_proxies:
|
|
- 10.149.0.0/16
|
|
use_x_forwarded_for: true
|
|
|
|
recorder:
|
|
db_url: postgresql://
|
|
db_max_retries: 100
|
|
purge_keep_days: 366
|
|
commit_interval: 0
|
|
|
|
homeassistant:
|
|
auth_providers:
|
|
- type: trusted_networks
|
|
trusted_networks:
|
|
- 172.31.1.81/32
|
|
- 172.31.1.244/32
|
|
trusted_users:
|
|
172.31.1.81:
|
|
- 03a8b3528f1145ab908e20ed5687d893
|
|
172.31.1.244:
|
|
- 03a8b3528f1145ab908e20ed5687d893
|
|
- type: homeassistant
|
|
allow_bypass_login: true
|
|
whitelist_external_dirs:
|
|
- /config
|
|
- /tmp
|
|
|
|
logger:
|
|
default: info
|
|
|
|
tts:
|
|
- platform: picotts
|
|
|
|
group: !include groups.yaml
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
shell_command: !include /run/config/shell-command.yaml
|
|
rest_command: !include /run/config/rest-command.yaml
|
|
|
|
lovelace:
|
|
mode: storage
|
|
#dashboards: !include dashboards.yaml
|
|
|
|
#mqtt: !include mqtt.yaml
|
|
|
|
light:
|
|
- platform: group
|
|
name: Basement Lights
|
|
entities:
|
|
- light.desk_lamp_1
|
|
- light.desk_lamp_2
|
|
- light.desk_lamp_3
|
|
- light.light_2
|
|
- light.light_3
|
|
- light.light_4
|
|
- light.light_5
|
|
- light.light_6
|
|
- light.light_7
|
|
|
|
notify:
|
|
- platform: group
|
|
name: mobile_apps_group
|
|
services:
|
|
- service: mobile_app_pixel_8
|
|
- service: mobile_app_pixel_6a_tab_jan_2024
|
|
- name: ntfy
|
|
platform: rest
|
|
method: POST_JSON
|
|
target_param_name: topic
|
|
title_param_name: title
|
|
message_param_name: message
|
|
resource: https://ntfy.pyrocufflink.net
|
|
- name: ntfy2
|
|
platform: ntfy
|
|
url: https://ntfy.pyrocufflink.net
|
|
default_topic: homeassistant
|
|
|
|
sensor:
|
|
- name: Rain last 24 hours
|
|
platform: statistics
|
|
entity_id: sensor.rain_gauge
|
|
unique_id: sensor.rain_last_24_hours
|
|
state_characteristic: change
|
|
max_age:
|
|
hours: 24
|
|
|
|
template:
|
|
- sensor:
|
|
- name: Apc1500 Load
|
|
device_class: power
|
|
unit_of_measurement: W
|
|
state: >-
|
|
{{ "%.1f" | format(
|
|
states('sensor.apc1500_load') | float / 100
|
|
* states('sensor.apc1500_nominal_real_power') | float
|
|
)
|
|
}}
|
|
|
|
- name: Apc1300 Load
|
|
device_class: power
|
|
unit_of_measurement: W
|
|
state: >-
|
|
{{ "%.1f" | format(
|
|
states('sensor.apc1300_load') | float / 100
|
|
* states('sensor.apc1300_nominal_real_power') | float
|
|
)
|
|
}}
|
|
|
|
cover:
|
|
- platform: template
|
|
covers:
|
|
garage_door_1:
|
|
device_class: garage
|
|
friendly_name: "Garage Door 1"
|
|
value_template: >-
|
|
{% if is_state('binary_sensor.garage_door_1_window_door_is_open', 'on') %}
|
|
open
|
|
{% else %}
|
|
closed
|
|
{% endif %}
|
|
open_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_3
|
|
close_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_3
|
|
icon_template: >-
|
|
{% if is_state('binary_sensor.garage_door_1_window_door_is_open', 'on') %}
|
|
mdi:garage-open
|
|
{% else %}
|
|
mdi:garage
|
|
{% endif %}
|
|
|
|
- platform: template
|
|
covers:
|
|
garage_door_2:
|
|
device_class: garage
|
|
friendly_name: "Garage Door 2"
|
|
value_template: >-
|
|
{% if is_state('binary_sensor.garage_door_2_window_door_is_open', 'on') %}
|
|
open
|
|
{% else %}
|
|
closed
|
|
{% endif %}
|
|
open_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_2_2
|
|
close_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_2_2
|
|
icon_template: >-
|
|
{% if is_state('binary_sensor.garage_door_2_window_door_is_open', 'on') %}
|
|
mdi:garage-open
|
|
{% else %}
|
|
mdi:garage
|
|
{% endif %}
|
|
|
|
- platform: template
|
|
covers:
|
|
garage_door_3:
|
|
device_class: garage
|
|
friendly_name: "Garage Door 3"
|
|
value_template: >-
|
|
{% if is_state('binary_sensor.garage_door_3_window_door_is_open', 'on') %}
|
|
open
|
|
{% else %}
|
|
closed
|
|
{% endif %}
|
|
open_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_2
|
|
close_cover:
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.garage_door_relay_2
|
|
icon_template: >-
|
|
{% if is_state('binary_sensor.garage_door_3_window_door_is_open', 'on') %}
|
|
mdi:garage-open
|
|
{% else %}
|
|
mdi:garage
|
|
{% endif %}
|
|
|
|
switch:
|
|
- platform: wake_on_lan
|
|
name: Rosalina
|
|
host: rosalina.pyrocufflink.blue
|
|
mac: 0c:9d:92:0e:3a:41
|
|
- platform: wake_on_lan
|
|
name: vmhost0
|
|
host: vmhost0.pyrocufflink.blue
|
|
mac: e0:d5:5e:a2:2e:1a
|
|
- platform: wake_on_lan
|
|
name: vmhost1
|
|
host: vmhost1.pyrocufflink.blue
|
|
mac: 18:c0:4d:90:4d:00
|
|
- platform: wake_on_lan
|
|
name: Toad
|
|
host: toad.pyrocufflink.blue
|
|
mac: 1c:1b:0d:0f:ad:df
|
|
- platform: wake_on_lan
|
|
name: Sonic
|
|
host: sonic.pyrocufflink.blue
|
|
mac: e0:d5:5e:6e:ad:ac
|
|
broadcast_address: 172.30.0.63
|
|
|
|
prometheus:
|
|
filter:
|
|
exclude_entity_globs:
|
|
- binary_sensor.node_14*
|
|
- binary_sensor.node_15*
|
|
|
|
calendar:
|
|
- platform: caldav
|
|
url: https://nextcloud.pyrocufflink.net/remote.php/dav/public-calendars/pSJDP6RYazMYPQxB?export
|
|
- platform: caldav
|
|
url: https://nextcloud.pyrocufflink.net/remote.php/dav/public-calendars/BZtERJTLi7rK27of?export
|