1
0
ansible-home-assistant/configuration/configuration.yaml

503 lines
13 KiB
YAML
Raw Normal View History

2021-02-02 22:08:07 +00:00
# Configure a default setup of Home Assistant (frontend, api, etc)
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
2021-11-24 23:37:58 +00:00
ip_ban_enabled: false
login_attempts_threshold: 5
image:
input_boolean:
3d_printer_timelapse:
name: "3D printer timelapse"
icon: "mdi:camera-burst"
2022-04-29 21:51:42 +00:00
mute_doorbell:
name: "Mute doorbell"
icon: "mdi:bell-off"
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"
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"
input_text:
logbook:
network:
map:
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
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-07-25 23:11:07 +00:00
powercalc:
2021-02-02 22:08:07 +00:00
# Text to speech
tts:
- platform: google_translate
cache: true
base_url: http://192.168.60.100:8123
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-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
2022-07-29 18:46:27 +00:00
#zoneminder:
# - host: zoneminder.grondek.pl
# ssl: true
# verify_ssl: true
# path_zms: /zm/cgi-bin/nph-zms
# path: /zm/
#camera:
# - platform: zoneminder
2022-06-05 20:19:49 +00:00
# - platform: generic
# name: '3D Printer Camera'
# still_image_url: https://192.168.110.11:8554/currentpic.cgi
# stream_source: rtsp://192.168.110.11:8554/unicast
# rtsp_transport: udp
# verify_ssl: false
# scan_interval: 5
# - platform: generic
# name: 'Kitchen Direct'
# still_image_url: https://root:root@192.168.110.12/cgi-bin/currentpic.cgi
# stream_source: rtsp://192.168.110.12:8554/unicast
# rtsp_transport: udp
# verify_ssl: false
# scan_interval: 5
# - platform: generic
# name: 'Hallway Direct'
# still_image_url: https://192.168.110.13:8554/currentpic.cgi
# stream_source: rtsp://192.168.110.13:8554/unicast
# rtsp_transport: udp
# verify_ssl: false
# scan_interval: 5
2021-06-24 20:18:01 +00:00
2021-02-02 22:08:07 +00:00
influxdb:
host: 192.168.50.100
port: 8086
database: home-assistant
username: home-assistant
password: !secret influxdb_password
alarm_control_panel:
- platform: manual
2022-04-29 22:22:43 +00:00
name: Home Alarm
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
2021-04-19 10:27:01 +00:00
2021-04-03 20:55:49 +00:00
media_player:
2021-12-12 22:41:49 +00:00
- platform: androidtv
name: Bedroom ATV
device_class: androidtv
host: 192.168.60.17
adbkey: "/config/android/adbkey"
2021-04-03 20:55:49 +00:00
- platform: androidtv
name: nVidia Shield
device_class: androidtv
host: 192.168.60.18
adbkey: "/config/android/adbkey"
# exclude_unnamed_apps: true
apps:
com.google.android.leanbacklauncher: AndroidTV Launcher
com.netflix.ninja: Netflix
com.liskovsoft.smarttubetv.beta: SmartTube
tv.twitch.android.app: Twitch
org.mozilla.firefox: Firefox
com.tvp.vodtv.tv: TVP VOD
pl.redefine.ipla: IPLA
com.amazon.amazonvideo.livingroom: Prime Video
eu.hbogo.androidtv.production: HBO GO
com.formulaone.production: F1TV
2021-04-03 20:55:49 +00:00
state_detection_rules:
'com.netflix.ninja':
- 'media_session_state'
'com.amazon.amazonvideo.livingroom':
- 'media_session_state'
'eu.hbogo.androidtv.production':
- 'media_session_state'
2021-02-02 22:08:07 +00:00
spotify:
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
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:
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"
}
2021-04-19 20:48:45 +00:00
rest:
- scan_interval: 43200 # 12h
resource: 'https://warszawa19115.pl/harmonogramy-wywozu-odpadow?p_p_id=portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=ajaxResourceURL&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=1'
method: POST
payload: '_portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ_addressPointId=76748040'
headers:
Content-Type: 'application/x-www-form-urlencoded'
sensor:
- name: "Address"
value_template: "{{ value_json[0].adres }}"
- name: "Garbage Collection BIO"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[1].data }}"
json_attributes_path: "$.[0].harmonogramy.[1].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
- name: "Garbage Collection Metal & Plastics"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[2].data }}"
json_attributes_path: "$.[0].harmonogramy.[2].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
- name: "Garbage Collection Paper"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[3].data }}"
json_attributes_path: "$.[0].harmonogramy.[3].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
- name: "Garbage Collection Glass"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[4].data }}"
json_attributes_path: "$.[0].harmonogramy.[4].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
- name: "Garbage Collection Furniture"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[6].data }}"
json_attributes_path: "$.[0].harmonogramy.[6].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
- name: "Garbage Collection Mixed"
device_class: 'timestamp'
value_template: "{{ value_json[0].harmonogramy[7].data }}"
json_attributes_path: "$.[0].harmonogramy.[7].frakcja"
json_attributes:
- id_frakcja
- kod
- nazwa
- opis
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: "Sleep"
calendar: "Automations"
search: "Sleep"
- name: "Wakeup"
calendar: "Automations"
search: "Wakeup"
- name: "Caffeine free time"
calendar: "Automations"
search: "Caffeine free"
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:
- "2021 FIA Formula One World Championship Race Calendar"
2021-02-02 22:08:07 +00:00
ble_monitor:
# Xiaomi BT Sensors
decimals: 1
period: 60
log_spikes: False
use_median: False
2021-11-21 22:40:43 +00:00
active_scan: False
2022-02-07 18:20:23 +00:00
bt_interface: 'DC:A6:32:F6:63:C3'
2021-11-24 23:12:30 +00:00
report_unknown: False
discovery: False
2021-02-02 22:08:07 +00:00
devices:
- name: 'Toothbrush'
mac: '50:33:8b:1b:a1:9f'
2021-12-09 23:25:49 +00:00
- name: 'Bedroom sensor [BLE]'
2021-02-02 22:08:07 +00:00
mac: '58:2D:34:3B:67:B0'
- name: 'Filament Sensor'
mac: 'A4:C1:38:EC:AE:6B'
- name: 'Computer Cave sensor'
mac: 'A4:C1:38:05:3D:AF'
2021-12-09 23:25:49 +00:00
- name: 'Bathroom sensor [BLE]'
2021-02-02 22:08:07 +00:00
mac: 'A4:C1:38:49:30:DF'
- name: 'Rack sensor'
mac: 'A4:C1:38:5E:F8:84'
- name: 'Kettle'
mac: '7C:49:EB:30:61:CE'
- name: 'Thuja Plant 1'
2021-02-02 22:08:07 +00:00
mac: 'C4:7C:8D:6C:5B:25'
2021-12-09 23:25:49 +00:00
- name: 'Thuja Plant 2'
2021-08-22 16:01:53 +00:00
mac: 'C4:7C:8D:6C:9F:C6'
2021-12-09 23:25:49 +00:00
- name: 'Thuja Plant 3'
2021-08-22 16:01:53 +00:00
mac: 'C4:7C:8D:6C:9F:9B'
- name: 'Living Room Plant 1'
2021-02-19 23:20:58 +00:00
mac: 'C4:7C:8D:6C:59:D0'
2021-12-09 23:25:49 +00:00
- name: 'Living Room Plant 2'
mac: 'C4:7C:8D:6C:59:D5'
2021-04-17 10:36:02 +00:00
- name: 'Weight Scale'
mac: 'C8:47:8C:D9:6F:96'
- name: 'Freezer'
mac: 'A4:C1:38:67:C8:76'
2021-02-02 22:08:07 +00:00
sensor:
2021-05-04 10:39:18 +00:00
- platform: systemmonitor
resources:
- type: memory_use
- type: memory_free
- type: swap_use
- type: swap_free
- type: load_1m
- type: load_5m
- type: load_15m
- type: processor_use
- type: processor_temperature
- type: ipv4_address
arg: "eth0"
- type: ipv6_address
arg: "eth0"
- type: network_in
arg: "eth0"
- type: network_out
arg: "eth0"
- type: throughput_network_in
arg: "eth0"
- type: throughput_network_out
arg: "eth0"
- type: packets_in
arg: "eth0"
- type: packets_out
arg: "eth0"
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
source: sensor.3d_printer_power
- 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
2021-02-02 22:08:07 +00:00
binary_sensor:
2022-05-02 23:35:06 +00:00
- name: Hulk Ping
2021-02-02 22:08:07 +00:00
platform: ping
host: 192.168.50.21
2022-05-02 23:35:06 +00:00
- name: Banner Ping
platform: ping
host: 192.168.50.22
2021-02-02 22:08:07 +00:00
switch:
2022-06-06 00:06:44 +00:00
- platform: zoneminder
command_on: Modect
command_off: Monitor
# 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
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-05-13 22:51:12 +00:00
- platform: group
name: Office Blinds
entities:
- cover.office_blind_left
- cover.office_blind_right