actual configs
This commit is contained in:
parent
232fa97778
commit
b21e7549c5
4246
automations.yaml
Normal file
4246
automations.yaml
Normal file
File diff suppressed because it is too large
Load diff
144
configuration.yaml
Normal file
144
configuration.yaml
Normal file
|
|
@ -0,0 +1,144 @@
|
||||||
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||||
|
default_config:
|
||||||
|
|
||||||
|
http:
|
||||||
|
use_x_forwarded_for: true
|
||||||
|
trusted_proxies:
|
||||||
|
- 192.168.31.0/24
|
||||||
|
- 172.18.0.0/24
|
||||||
|
- 172.19.0.0/24
|
||||||
|
- 172.22.0.0/24
|
||||||
|
- 172.20.0.0/24
|
||||||
|
- 172.21.0.0/24
|
||||||
|
- 172.23.0.0/24
|
||||||
|
- 172.17.0.0/24
|
||||||
|
|
||||||
|
# Text to speech
|
||||||
|
tts:
|
||||||
|
- platform: google_translate
|
||||||
|
|
||||||
|
group: !include groups.yaml
|
||||||
|
automation: !include automations.yaml
|
||||||
|
script: !include scripts.yaml
|
||||||
|
scene: !include scenes.yaml
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
namespace: hass
|
||||||
|
|
||||||
|
rest_command:
|
||||||
|
piplayer_reboot:
|
||||||
|
url: "http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot"
|
||||||
|
method: GET
|
||||||
|
piplayer_shutdown:
|
||||||
|
url: "http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown"
|
||||||
|
method: GET
|
||||||
|
|
||||||
|
ntfy_send:
|
||||||
|
url: "https://ntfy.sh/Tf5qhbkt303HboYwkava9xRb9wRLjx5z-ha"
|
||||||
|
method: post
|
||||||
|
headers:
|
||||||
|
Title: "Home Assistant"
|
||||||
|
Priority: "5"
|
||||||
|
Tags: home,warning
|
||||||
|
payload: "{{ message }}"
|
||||||
|
|
||||||
|
send_temperature_to_magicmirror:
|
||||||
|
url: "http://192.168.31.19:8080/remote-temperature"
|
||||||
|
method: post
|
||||||
|
headers:
|
||||||
|
Content-Type: "application/json"
|
||||||
|
payload: >
|
||||||
|
{
|
||||||
|
"sensorId": "{{ sensor_id }}",
|
||||||
|
"temp": {{ states(temperature_sensor) | float | round(1) }},
|
||||||
|
"humidity": {{ states(humidity_sensor) | float | round(1) }}
|
||||||
|
}
|
||||||
|
# payload: >
|
||||||
|
# {
|
||||||
|
# "sensorId": "2",
|
||||||
|
# "temp": {{ states('sensor.0xa4c138331d161fd6_temperature') | float | round(1) }},
|
||||||
|
# "humidity": {{ states('sensor.0xa4c138331d161fd6_humidity') | float | round(1) }}
|
||||||
|
# }
|
||||||
|
|
||||||
|
input_number:
|
||||||
|
jasnosc_led_nad_duzym_blatem:
|
||||||
|
name: Jasność maksymalna Ledów nad duzym blatem
|
||||||
|
min: 0
|
||||||
|
max: 75
|
||||||
|
step: 5
|
||||||
|
icon: mdi:brightness-6
|
||||||
|
jasnosc_listwy_led_nad_duzym_blatem:
|
||||||
|
name: Jasność maksymalna listwy Led nad duzym blatem
|
||||||
|
min: 0
|
||||||
|
max: 90
|
||||||
|
step: 5
|
||||||
|
icon: mdi:brightness-6
|
||||||
|
|
||||||
|
shell_command:
|
||||||
|
piplayer_reboot: 'curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot'
|
||||||
|
piplayer_shutdown: 'curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown'
|
||||||
|
|
||||||
|
logger:
|
||||||
|
default: warning
|
||||||
|
# logs:
|
||||||
|
# homeassistant.components.rest_command: debug
|
||||||
|
# homeassistant.components.shell_command: debug
|
||||||
|
|
||||||
|
group:
|
||||||
|
garmin:
|
||||||
|
name: Garmin
|
||||||
|
entities:
|
||||||
|
- switch.tasmota
|
||||||
|
- switch.sufit2switchsalon
|
||||||
|
- switch.sufit3switchsalon
|
||||||
|
# - switch.tasmota_8
|
||||||
|
# - switch.tasmota_12
|
||||||
|
# - switch.tasmota_9
|
||||||
|
# - switch.tasmota_3
|
||||||
|
- input_boolean.sleep_mode
|
||||||
|
- scene.Film
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: owntracks_last_location
|
||||||
|
resource: http://192.168.31.5:8083/api/0/last?user=owntracksusr&device=oskar&fields=tst,tid,addr,topic,isotst,lat,lon,addr
|
||||||
|
method: GET
|
||||||
|
scan_interval: 60 # odświeżanie co 60 sekund
|
||||||
|
value_template: "{{ value_json.lat }},{{ value_json.lon }}"
|
||||||
|
json_attributes:
|
||||||
|
- addr
|
||||||
|
- lat
|
||||||
|
- lon
|
||||||
|
- tst
|
||||||
|
|
||||||
|
notify:
|
||||||
|
- name: email_notification
|
||||||
|
platform: smtp
|
||||||
|
server: smtp.gmail.com
|
||||||
|
port: 587
|
||||||
|
timeout: 15
|
||||||
|
sender: "oskar.kapala-haos@gmail.com"
|
||||||
|
encryption: starttls
|
||||||
|
username: "oskar.kapala@gmail.com"
|
||||||
|
password: !secret email_password
|
||||||
|
recipient:
|
||||||
|
- "oskar.kapala@gmail.com"
|
||||||
|
sender_name: "Home Assistant"
|
||||||
|
|
||||||
|
device_tracker:
|
||||||
|
- platform: bluetooth_le_tracker
|
||||||
|
interval_seconds: 30
|
||||||
|
consider_home: 180
|
||||||
|
track_new_devices: true
|
||||||
|
|
||||||
|
device_tracker:
|
||||||
|
- platform: owntracks
|
||||||
|
max_gps_accuracy: 200
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: statistics
|
||||||
|
name: thtuyalazienka_humidity_stats_5min
|
||||||
|
entity_id: sensor.thtuyalazienka_humidity
|
||||||
|
state_characteristic: change
|
||||||
|
max_age:
|
||||||
|
minutes: 5
|
||||||
0
groups.yaml
Normal file
0
groups.yaml
Normal file
2692
known_devices.yaml
Normal file
2692
known_devices.yaml
Normal file
File diff suppressed because it is too large
Load diff
293
scenes.yaml
Normal file
293
scenes.yaml
Normal file
|
|
@ -0,0 +1,293 @@
|
||||||
|
- id: '1730724373818'
|
||||||
|
name: Film
|
||||||
|
entities:
|
||||||
|
sensor.4buttonswitch_4buttonswitch_action:
|
||||||
|
action:
|
||||||
|
battery: 100
|
||||||
|
last_seen: '2025-10-18T13:46:11.226Z'
|
||||||
|
linkquality: 54
|
||||||
|
operation_mode: event
|
||||||
|
voltage: 3000
|
||||||
|
icon: mdi:gesture-double-tap
|
||||||
|
friendly_name: 4buttonswitch Action
|
||||||
|
state: unknown
|
||||||
|
sensor.4buttonswitch_4buttonswitch_battery:
|
||||||
|
state_class: measurement
|
||||||
|
action:
|
||||||
|
battery: 100
|
||||||
|
last_seen: '2025-10-18T13:46:11.226Z'
|
||||||
|
linkquality: 54
|
||||||
|
operation_mode: event
|
||||||
|
voltage: 3000
|
||||||
|
unit_of_measurement: '%'
|
||||||
|
device_class: battery
|
||||||
|
friendly_name: 4buttonswitch Battery
|
||||||
|
state: '100'
|
||||||
|
select.4buttonswitch_operation_mode:
|
||||||
|
options:
|
||||||
|
- command
|
||||||
|
- event
|
||||||
|
action:
|
||||||
|
battery: 100
|
||||||
|
last_seen: '2025-10-18T13:46:11.226Z'
|
||||||
|
linkquality: 54
|
||||||
|
operation_mode: event
|
||||||
|
voltage: 3000
|
||||||
|
icon: mdi:tune
|
||||||
|
friendly_name: 4buttonswitch Operation mode
|
||||||
|
state: event
|
||||||
|
switch.tasmota_3:
|
||||||
|
icon: mdi:television
|
||||||
|
friendly_name: Zasilanie TV
|
||||||
|
state: 'on'
|
||||||
|
switch.tasmota_tasmota2:
|
||||||
|
icon: mdi:disc
|
||||||
|
friendly_name: Media inne
|
||||||
|
state: 'on'
|
||||||
|
switch.tasmota_tasmota3:
|
||||||
|
icon: mdi:gamepad
|
||||||
|
friendly_name: pigry
|
||||||
|
state: 'off'
|
||||||
|
switch.sufit2switchsalon:
|
||||||
|
last_seen: '2025-10-18T13:44:42.420Z'
|
||||||
|
linkquality: 54
|
||||||
|
power_on_behavior:
|
||||||
|
update:
|
||||||
|
installed_version: 4110
|
||||||
|
latest_version: 4110
|
||||||
|
state: idle
|
||||||
|
update_available: false
|
||||||
|
friendly_name: Salon 2
|
||||||
|
state: 'off'
|
||||||
|
switch.sufit3switchsalon:
|
||||||
|
last_seen: '2025-10-18T13:44:46.038Z'
|
||||||
|
linkquality: 48
|
||||||
|
power_on_behavior:
|
||||||
|
update:
|
||||||
|
installed_version: 4110
|
||||||
|
latest_version: 4110
|
||||||
|
state: idle
|
||||||
|
update_available: false
|
||||||
|
friendly_name: Salon 3
|
||||||
|
state: 'off'
|
||||||
|
switch.tasmota_12:
|
||||||
|
icon: mdi:led-strip-variant
|
||||||
|
friendly_name: Lampki na półce
|
||||||
|
state: 'on'
|
||||||
|
switch.tasmota_8:
|
||||||
|
icon: mdi:pine-tree
|
||||||
|
friendly_name: Choinka
|
||||||
|
state: unavailable
|
||||||
|
switch.tasmota:
|
||||||
|
icon: mdi:lightbulb
|
||||||
|
friendly_name: Światło nad kuchnią
|
||||||
|
state: 'off'
|
||||||
|
light.ledtv:
|
||||||
|
effect_list:
|
||||||
|
- blink
|
||||||
|
- breathe
|
||||||
|
- okay
|
||||||
|
- channel_change
|
||||||
|
- finish_effect
|
||||||
|
- stop_effect
|
||||||
|
- colorloop
|
||||||
|
- stop_colorloop
|
||||||
|
supported_color_modes:
|
||||||
|
- xy
|
||||||
|
effect:
|
||||||
|
color_mode: xy
|
||||||
|
brightness: 125
|
||||||
|
hs_color:
|
||||||
|
- 48
|
||||||
|
- 1.961
|
||||||
|
rgb_color:
|
||||||
|
- 255
|
||||||
|
- 254
|
||||||
|
- 250
|
||||||
|
xy_color:
|
||||||
|
- 0.326
|
||||||
|
- 0.333
|
||||||
|
color:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
color_power_on_behavior: previous
|
||||||
|
do_not_disturb: true
|
||||||
|
last_seen: '2025-10-18T13:51:28.877Z'
|
||||||
|
linkquality: 72
|
||||||
|
friendly_name: ledTV
|
||||||
|
supported_features: 44
|
||||||
|
state: 'on'
|
||||||
|
icon: mdi:movie
|
||||||
|
metadata:
|
||||||
|
light.ledtv:
|
||||||
|
entity_only: true
|
||||||
|
- id: '1759327012226'
|
||||||
|
name: Oczyszczacze i Nawilzacze ON
|
||||||
|
entities:
|
||||||
|
switch.zhimi_mc2_c369_alarm:
|
||||||
|
alarm:
|
||||||
|
friendly_name: Mi Air Purifier 2H Alarm
|
||||||
|
state: unknown
|
||||||
|
switch.zhimi_mc2_c369_physical_control_locked:
|
||||||
|
physical_controls_locked: false
|
||||||
|
friendly_name: Mi Air Purifier 2H Physical Control Locked
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mc2_c369_switch_status:
|
||||||
|
air_purifier.on: true
|
||||||
|
friendly_name: Mi Air Purifier 2H Air Purifier Switch Status
|
||||||
|
state: 'on'
|
||||||
|
fan.zhimi_mc2_c369_air_purifier:
|
||||||
|
preset_modes:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
percentage: 0
|
||||||
|
percentage_step: 33.333333333333336
|
||||||
|
preset_mode: Auto
|
||||||
|
speed_list:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
air_purifier.mode: 0
|
||||||
|
air_purifier.fan_level: 0
|
||||||
|
air_purifier.on: true
|
||||||
|
friendly_name: Mi Air Purifier 2H Air Purifier
|
||||||
|
supported_features: 57
|
||||||
|
state: 'on'
|
||||||
|
switch.zhimi_mb3_af95_alarm:
|
||||||
|
alarm: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Alarm
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mb3_af95_physical_control_locked:
|
||||||
|
physical_controls_locked: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Physical Control Locked
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mb3_af95_switch_status:
|
||||||
|
air_purifier.on: true
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Air Purifier Power
|
||||||
|
state: 'on'
|
||||||
|
number.zhimi_mb3_af95_favorite_fan_level:
|
||||||
|
min: 0
|
||||||
|
max: 14
|
||||||
|
step: 1
|
||||||
|
mode: auto
|
||||||
|
motor_speed.favorite_fan_level: 14
|
||||||
|
friendly_name: Mi Air Purifier 3/3H favorite-fan-level
|
||||||
|
state: '14'
|
||||||
|
fan.zhimi_mb3_af95_air_purifier:
|
||||||
|
preset_modes:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
- None
|
||||||
|
percentage: 0
|
||||||
|
percentage_step: 33.333333333333336
|
||||||
|
preset_mode: Auto
|
||||||
|
speed_list:
|
||||||
|
- Level1
|
||||||
|
- Level2
|
||||||
|
- Level3
|
||||||
|
air_purifier.mode: 0
|
||||||
|
air_purifier.fan_level: 1
|
||||||
|
air_purifier.on: true
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Air Purifier
|
||||||
|
supported_features: 57
|
||||||
|
state: 'on'
|
||||||
|
switch.chuangmi_hmi206_4879_switch:
|
||||||
|
switch.on: true
|
||||||
|
friendly_name: Gniazdko Xiaomi Switch
|
||||||
|
state: 'on'
|
||||||
|
switch.tasmota_4:
|
||||||
|
icon: mdi:air-purifier
|
||||||
|
friendly_name: Oczyszczacz i nawilżacz
|
||||||
|
state: 'on'
|
||||||
|
switch.tasmota_5:
|
||||||
|
icon: mdi:air-humidifier
|
||||||
|
friendly_name: Nawilżacz
|
||||||
|
state: 'on'
|
||||||
|
metadata: {}
|
||||||
|
- id: '1759327069117'
|
||||||
|
name: Oczyszczacze i Nawilzacze OFF
|
||||||
|
entities:
|
||||||
|
switch.zhimi_mc2_c369_alarm:
|
||||||
|
alarm:
|
||||||
|
friendly_name: Mi Air Purifier 2H Alarm
|
||||||
|
state: unknown
|
||||||
|
switch.zhimi_mc2_c369_physical_control_locked:
|
||||||
|
physical_controls_locked: false
|
||||||
|
friendly_name: Mi Air Purifier 2H Physical Control Locked
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mc2_c369_switch_status:
|
||||||
|
air_purifier.on: false
|
||||||
|
friendly_name: Mi Air Purifier 2H Air Purifier Switch Status
|
||||||
|
state: 'off'
|
||||||
|
fan.zhimi_mc2_c369_air_purifier:
|
||||||
|
preset_modes:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
percentage: 0
|
||||||
|
percentage_step: 33.333333333333336
|
||||||
|
preset_mode: Auto
|
||||||
|
speed_list:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
air_purifier.mode: 0
|
||||||
|
air_purifier.fan_level: 0
|
||||||
|
air_purifier.on: false
|
||||||
|
friendly_name: Mi Air Purifier 2H Air Purifier
|
||||||
|
supported_features: 57
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mb3_af95_alarm:
|
||||||
|
alarm: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Alarm
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mb3_af95_physical_control_locked:
|
||||||
|
physical_controls_locked: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Physical Control Locked
|
||||||
|
state: 'off'
|
||||||
|
switch.zhimi_mb3_af95_switch_status:
|
||||||
|
air_purifier.on: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Air Purifier Power
|
||||||
|
state: 'off'
|
||||||
|
number.zhimi_mb3_af95_favorite_fan_level:
|
||||||
|
min: 0
|
||||||
|
max: 14
|
||||||
|
step: 1
|
||||||
|
mode: auto
|
||||||
|
motor_speed.favorite_fan_level: 14
|
||||||
|
friendly_name: Mi Air Purifier 3/3H favorite-fan-level
|
||||||
|
state: '14'
|
||||||
|
fan.zhimi_mb3_af95_air_purifier:
|
||||||
|
preset_modes:
|
||||||
|
- Auto
|
||||||
|
- Sleep
|
||||||
|
- Favorite
|
||||||
|
- None
|
||||||
|
percentage: 0
|
||||||
|
percentage_step: 33.333333333333336
|
||||||
|
preset_mode: Auto
|
||||||
|
speed_list:
|
||||||
|
- Level1
|
||||||
|
- Level2
|
||||||
|
- Level3
|
||||||
|
air_purifier.mode: 0
|
||||||
|
air_purifier.fan_level: 1
|
||||||
|
air_purifier.on: false
|
||||||
|
friendly_name: Mi Air Purifier 3/3H Air Purifier
|
||||||
|
supported_features: 57
|
||||||
|
state: 'off'
|
||||||
|
switch.chuangmi_hmi206_4879_switch:
|
||||||
|
switch.on: true
|
||||||
|
friendly_name: Gniazdko Xiaomi Switch
|
||||||
|
state: 'off'
|
||||||
|
switch.tasmota_4:
|
||||||
|
icon: mdi:air-purifier
|
||||||
|
friendly_name: Oczyszczacz i nawilżacz
|
||||||
|
state: 'off'
|
||||||
|
switch.tasmota_5:
|
||||||
|
icon: mdi:air-humidifier
|
||||||
|
friendly_name: Nawilżacz
|
||||||
|
state: 'off'
|
||||||
|
metadata: {}
|
||||||
45
scripts.yaml
Normal file
45
scripts.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
turn_on_pigry:
|
||||||
|
sequence:
|
||||||
|
- type: turn_on
|
||||||
|
device_id: 24de64bd6b33c91e5b13136abefb5306
|
||||||
|
entity_id: 5f738065e2d6c1c244a33fea4a8b4aaa
|
||||||
|
domain: switch
|
||||||
|
alias: turn_on_pigry
|
||||||
|
description: ''
|
||||||
|
'1766773638272':
|
||||||
|
sequence:
|
||||||
|
- action: automation.trigger
|
||||||
|
metadata: {}
|
||||||
|
target:
|
||||||
|
entity_id: automation.set_all_heaters_to_auto
|
||||||
|
data:
|
||||||
|
skip_condition: true
|
||||||
|
alias: Set all heaters to auto script
|
||||||
|
description: ''
|
||||||
|
notify_email_ntfy:
|
||||||
|
alias: notify_email_ntfy
|
||||||
|
description: ''
|
||||||
|
fields:
|
||||||
|
title:
|
||||||
|
description: Tytuł powiadomienia
|
||||||
|
example: Alarm
|
||||||
|
message:
|
||||||
|
description: Treść powiadomienia
|
||||||
|
example: Wykryto ruch w salonie
|
||||||
|
sequence:
|
||||||
|
- action: rest_command.ntfy_send
|
||||||
|
data:
|
||||||
|
message: "{% if title is defined and title|length > 0 %}\n {{ title }}: {{
|
||||||
|
message }}\n{% else %}\n {{ message }}\n{% endif %}"
|
||||||
|
- choose:
|
||||||
|
- conditions: '{{ title is defined and title|length > 0 }}'
|
||||||
|
sequence:
|
||||||
|
- action: notify.email_notification
|
||||||
|
data:
|
||||||
|
title: '{{ title }}'
|
||||||
|
message: '{{ message }}'
|
||||||
|
default:
|
||||||
|
- action: notify.email_notification
|
||||||
|
data:
|
||||||
|
title: '{{ message }}'
|
||||||
|
message: ''
|
||||||
6
secrets.yaml
Normal file
6
secrets.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
# Use this file to store secrets like usernames and passwords.
|
||||||
|
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
|
||||||
|
some_password: welcome
|
||||||
|
|
||||||
|
email_password: xsvt waxs ztey wgvz
|
||||||
Loading…
Reference in a new issue