1
0
ansible-home-assistant/roles/config/files/configuration.yaml

435 lines
10 KiB
YAML
Raw Normal View History

2021-02-02 22:08:07 +00:00
# Configure a default setup of Home Assistant (frontend, api, etc)
alert: !include alert.yaml
2021-12-18 12:34:17 +00:00
automation: !include automations.yaml
#cloud:
config:
counter:
dhcp:
energy:
frontend:
2022-05-13 22:54:57 +00:00
themes: !include_dir_merge_named themes
2022-04-29 17:55:03 +00:00
homeassistant:
customize: !include customize.yaml
history:
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.50.100
- 192.168.50.101
- 192.168.50.102
- 192.168.50.103
2021-12-14 15:09:31 +00:00
- 192.168.50.104
2024-02-10 01:38:20 +00:00
- 192.168.50.151
2021-11-24 23:37:58 +00:00
ip_ban_enabled: false
login_attempts_threshold: 5
input_boolean:
3d_printer_timelapse:
name: "3D printer timelapse"
icon: "mdi:camera-burst"
2023-07-02 20:05:33 +00:00
daily_coffee:
name: "Daily - coffee drank"
icon: "mdi:coffee"
guests_at_home:
name: "Guests at home"
icon: "mdi:account-group"
2022-11-27 14:18:48 +00:00
intercom_button:
name: "Intercom button helper"
icon: "mdi:door-closed-lock"
2023-10-04 21:48:17 +00:00
meal_alert:
name: "Meal alert"
icon: "mdi:silverware-fork-knife"
meal_helper:
name: "Meal helper"
icon: "mdi:silverware-fork-knife"
2022-04-29 21:51:42 +00:00
pc_caffeine:
name: "PC Caffeine"
icon: "mdi:desktop-tower-monitor"
pc_sleeping:
name: "PC sleeping"
icon: "mdi:desktop-tower-monitor"
sleep_mode:
name: "Sleep mode"
icon: "mdi:weather-night"
2022-06-05 23:27:38 +00:00
vacation_mode:
name: "Vacation mode"
icon: "mdi:beach"
2022-04-29 17:55:03 +00:00
vacuum_office:
name: "Vacuum Office"
icon: "mdi:chair-rolling"
vacuum_living_room:
name: "Vacuum Living room"
icon: "mdi:sofa"
vacuum_table_area:
name: "Vacuum Table area"
icon: "mdi:table-furniture"
vacuum_kitchen:
name: "Vacuum Kitchen"
icon: "mdi:pot-mix"
vacuum_hallway:
name: "Vacuum Hallway"
icon: "mdi:foot-print"
vacuum_bedroom:
name: "Vacuum Bedroom"
icon: "mdi:bed-empty"
vacuum_bathroom:
name: "Vacuum Bathroom"
icon: "mdi:shower"
2022-04-29 21:51:42 +00:00
vacuum_vacuumed_today:
name: "Vacuumed today"
icon: "mdi:robot-vacuum"
washing_machine_done:
name: "Washing machine done"
icon: "mdi:washing-machine"
2023-09-07 19:49:15 +00:00
washing_clothes_dry:
name: "Washing clothes dry"
icon: "mdi:hanger"
put_laundry_away:
name: "Put laundry away"
icon: "mdi:tshirt-crew"
input_datetime:
2022-04-29 21:51:42 +00:00
alarm:
name: "Alarm time"
icon: "mdi:bell-sleep"
has_date: true
has_time: true
day_mode:
name: "Day mode time"
icon: "mdi:weather-sunset"
has_date: false
has_time: true
sleep_mode:
name: "Sleep mode time"
icon: "mdi:weather-night"
has_date: false
has_time: true
input_number:
2022-04-29 21:51:42 +00:00
power_price:
name: "Power Price"
icon: "mdi:transmission-tower"
min: 0
max: 2
step: 0.01
unit_of_measurement: zł/kWh
input_select:
home_mode:
name: Home mode
options:
- Day
- Night
- Party
- Away
icon: "mdi:home"
2023-04-25 15:53:20 +00:00
music_service:
name: Music service
options:
- Spotify
- Apple Music
tv_select:
name: TV Select for ATV
icon: mdi:android
options:
- remote.bedroom_atv
- remote.shield
input_text:
2022-08-08 21:56:35 +00:00
bathroom_playlist:
name: Bathroom playlist
icon: "mdi:folder-music-outline"
logbook:
network:
media_source:
mobile_app:
my:
person:
2021-12-06 22:31:28 +00:00
python_script:
2021-08-22 19:50:38 +00:00
recorder:
2022-06-24 00:09:10 +00:00
db_url: !secret mysql_url
2023-06-06 11:23:02 +00:00
purge_keep_days: 365
scene: !include scenes.yaml
script: !include scripts.yaml
ssdp:
stream:
sun:
system_health:
#tag:
timer:
webhook:
zeroconf:
zone:
2021-08-22 19:50:38 +00:00
2022-11-13 23:38:19 +00:00
#powercalc:
2022-07-25 23:11:07 +00:00
2021-02-02 22:08:07 +00:00
# Text to speech
tts:
group: !include groups.yaml
zha:
2022-07-27 20:52:24 +00:00
custom_quirks_path: /config/zha_custom_quirks
2021-02-02 22:08:07 +00:00
zigpy_config:
network:
channel: 15
ota:
2021-04-08 10:06:40 +00:00
ikea_provider: true
2021-02-02 22:08:07 +00:00
ledvance_provider: true
2022-07-25 23:11:17 +00:00
otau_directory: /config/ota
2021-02-02 22:08:07 +00:00
2021-06-15 07:32:51 +00:00
ios:
actions:
2022-11-13 23:39:19 +00:00
- name: "Intercom button"
background_color: "#000000"
label:
text: "Intercom button"
color: "#ffffff"
icon:
icon: door-closed-lock
color: "#ffffff"
2022-04-19 22:38:52 +00:00
- name: "Door Lock Toggle"
2021-06-15 07:32:51 +00:00
background_color: "#000000"
label:
text: "Door Lock"
2022-04-02 01:00:35 +00:00
color: "#ffffff"
2021-06-15 07:32:51 +00:00
icon:
icon: lock-open
color: "#ffffff"
2022-04-02 01:00:35 +00:00
- name: "Good Night"
background_color: "#000000"
label:
text: "Good Night"
color: "#9e9e9e"
icon:
icon: weather-night
color: "#9e9e9e"
- name: "Good Morning"
background_color: "#000000"
label:
text: "Good Morning"
color: "#ff9800"
icon:
icon: weather-sunny
color: "#ff9800"
- name: "Leave Home"
background_color: "#000000"
label:
text: "Leave Home"
color: "#ffffff"
icon:
icon: home-export-outline
color: "#ffffff"
- name: "Arrive Home"
background_color: "#000000"
label:
text: "Arrive Home"
color: "#ffffff"
icon:
icon: home-import-outline
color: "#ffffff"
2021-06-15 07:32:51 +00:00
influxdb:
host: 192.168.50.100
port: 8086
database: home-assistant
username: home-assistant
password: !secret influxdb_password
2021-02-02 22:08:07 +00:00
alarm_control_panel:
- platform: manual
2022-04-29 22:22:43 +00:00
name: Home Alarm
2024-07-31 17:59:47 +00:00
code: !secret alarm_code
2022-04-29 22:22:43 +00:00
delay_time: 30
arming_time: 30
trigger_time: 120
2021-02-02 22:08:07 +00:00
2021-04-19 10:27:01 +00:00
notify:
- platform: nfandroidtv
name: Shield
host: 192.168.60.18
color: black
2021-09-23 23:06:10 +00:00
- platform: sms
name: sms_notification
recipient: !secret phone_number
2023-05-30 19:27:27 +00:00
- name: hulk
platform: rest
method: POST_JSON
resource: !secret webhook_url
message_param_name: message
title_param_name: title
2021-04-19 10:27:01 +00:00
2021-02-02 22:08:07 +00:00
shell_command:
2022-02-07 17:41:11 +00:00
pc_poweroff: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@192.168.50.21 sudo /sbin/poweroff'
pc_suspend: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@192.168.50.21 sudo /usr/sbin/pm-suspend'
2021-02-02 22:08:07 +00:00
rest_command:
2024-01-21 22:42:40 +00:00
pikvm_login:
url: "http://192.168.1.5/logon.cgi"
method: POST
content_type: "application/x-www-form-urlencoded"
# payload: "username=admin&password=YOUR_PASSWORD_HERE&cpassword=&logon=Login"
payload: !secret switch_login_payload
pikvm_power_on:
url: "http://192.168.1.5/poe_port_config.cgi"
method: POST
content_type: "application/x-www-form-urlencoded"
payload: "name_pstate=2&name_ppriority=2&name_ppowerlimit=1&name_ppowerlimit2=&sel_6=1&applay=Apply"
pikvm_power_off:
url: "http://192.168.1.5/poe_port_config.cgi"
method: POST
content_type: "application/x-www-form-urlencoded"
payload: "name_pstate=1&name_ppriority=2&name_ppowerlimit=1&name_ppowerlimit2=&sel_6=1&applay=Apply"
octoprint_connect:
url: 'http://192.168.50.6:5000/api/connection'
method: post
content_type: 'application/json'
headers:
X-Api-Key: !secret octoprint_api_key
payload: |
{
"command": "connect"
}
waste_collection_schedule:
sources:
- name: warszawa19115_pl
args:
geolocation_id: 76748040
2021-04-19 20:48:45 +00:00
rest:
2021-07-18 20:04:56 +00:00
calendar:
- platform: caldav
url: https://cloud.grondek.pl/remote.php/dav
username: pgrondek
password: !secret nextcloud_token
custom_calendars:
- name: "Wakeup"
calendar: "Automations"
search: "Wakeup"
2023-08-28 21:56:44 +00:00
- name: "Daily"
calendar: "Automations"
search: "Daily"
2021-12-12 22:42:21 +00:00
- platform: caldav
url: https://cloud.grondek.pl/remote.php/dav
username: pgrondek
password: !secret nextcloud_token
calendars:
2023-04-08 21:12:14 +00:00
- "Formula 1"
2021-02-02 22:08:07 +00:00
sensor:
2021-08-22 17:52:06 +00:00
# Power
2021-08-26 14:22:53 +00:00
- platform: integration
name: "3D printer energy Total"
unit_prefix: k
unit_time: h
2022-08-04 10:39:40 +00:00
source: sensor.3d_printer_electric_consumption_w
2022-08-03 11:01:53 +00:00
- platform: integration
source: sensor.rack_outlet_electrical_measurement
name: "Rack outlet energy Total"
unit_prefix: k
unit_time: h
2021-08-26 14:22:53 +00:00
- platform: integration
name: "Printer energy Total"
unit_prefix: k
unit_time: h
source: sensor.printer_power
2021-08-22 17:52:06 +00:00
- platform: integration
name: "Washing machine energy Total"
unit_prefix: k
unit_time: h
source: sensor.washing_machine_electrical_measurement
2021-08-24 14:34:17 +00:00
- platform: integration
name: "Computer energy Total"
unit_prefix: k
unit_time: h
source: sensor.computer_outlet_electrical_measurement
2024-08-21 01:08:09 +00:00
# template for the IKEA TVOC
- platform: template
sensors:
ikea_of_sweden_vindstyrka_tvoc:
friendly_name: "IKEA of Sweden VINDSTYRKA TVOC"
unit_of_measurement: "TVOC index"
icon_template: mdi:weather-dust
value_template: ""
2022-11-13 23:38:19 +00:00
# # Powercalc
# - platform: powercalc
# create_group: Kitchen lights
# include:
# area: Kitchen
# - platform: powercalc
# create_group: Bedroom lights
# entities:
# - entity_id: light.bedroom_1
# - entity_id: light.bedroom_2
# - entity_id: light.bed_lamp_left
# - entity_id: light.bed_lamp_right
# - entity_id: light.bed_lightstrip
2021-02-02 22:08:07 +00:00
switch:
2022-06-06 00:06:44 +00:00
# Wake On LAN
2021-02-15 00:01:13 +00:00
- platform: wake_on_lan
2022-05-02 13:26:43 +00:00
name: 'Hulk WoL'
2021-02-15 00:01:13 +00:00
mac: '24:4b:fe:05:e2:8b'
2022-05-03 09:17:36 +00:00
broadcast_address: 192.168.50.254
2023-12-04 01:20:01 +00:00
- platform: wake_on_lan
name: 'Thor WoL'
mac: '5c:1b:f4:e4:52:11'
broadcast_address: 192.168.50.254
2024-01-21 22:42:40 +00:00
- platform: template
switches:
pikvm_poe:
turn_on:
- service: rest_command.pikvm_login
- service: rest_command.pikvm_power_on
turn_off:
- service: rest_command.pikvm_login
- service: rest_command.pikvm_power_off
2021-02-15 00:01:13 +00:00
2021-05-31 21:34:16 +00:00
cover:
- platform: group
name: Bedroom Blinds
entities:
- cover.bedroom_blind_left
- cover.bedroom_blind_right
- platform: group
2021-10-11 18:15:50 +00:00
name: Dining Blinds
2021-05-31 21:34:16 +00:00
entities:
2021-10-11 18:15:50 +00:00
- cover.dining_blind_left
2022-01-06 12:01:04 +00:00
- cover.dining_blind_middle
2021-10-11 18:15:50 +00:00
- cover.dining_blind_right
2022-11-09 17:59:31 +00:00
- cover.dining_blind_back
2022-05-13 22:51:12 +00:00
- platform: group
name: Office Blinds
entities:
- cover.office_blind_left
- cover.office_blind_right
2024-05-07 21:44:30 +00:00
plant:
citrus:
sensors:
temperature: sensor.citrus_sensor_temperature
moisture: sensor.citrus_sensor_moisture
brightness: sensor.citrus_sensor_illuminance
conductivity: sensor.citrus_sensor_conductivity
battery: sensor.citrus_sensor_battery
min_moisture: 30
max_moisture: 50
2024-08-22 20:23:02 +00:00
calamondin:
sensors:
temperature: sensor.calamondin_temperature
moisture: sensor.calamondin_moisture
brightness: sensor.calamondin_illuminance
conductivity: sensor.calamondin_conductivity
battery: sensor.calamondin_battery
min_moisture: 30
max_moisture: 50
2024-05-10 11:37:47 +00:00
coffee:
sensors:
temperature: sensor.coffee_plant_sensor_temperature
moisture: sensor.coffee_plant_sensor_moisture
brightness: sensor.coffee_plant_sensor_illuminance
conductivity: sensor.coffee_plant_sensor_conductivity
battery: sensor.coffee_plant_sensor_battery
min_moisture: 30
max_moisture: 50
2024-08-21 01:08:09 +00:00
zha_toolkit: