update automations

This commit is contained in:
oskar-ha-root 2026-01-22 14:27:14 +01:00
parent 0302ef7418
commit 43d54f6703
7 changed files with 2848 additions and 62 deletions

11
.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
custom_components/**
*.log*
*.db*
.HA_VERSION
.ha_run.lock
.storage/
core
glances/
prometheus_node_exporter/
www/

View file

@ -406,6 +406,11 @@
hours: 0
minutes: 10
seconds: 0
- condition: device
type: is_off
device_id: 24de64bd6b33c91e5b13136abefb5306
entity_id: 0cf754a8ae10afd2be1dfc4986095c85
domain: switch
actions:
- type: turn_on
device_id: 41b47f2cf5f589d00c82e31bab378437
@ -707,6 +712,10 @@
- condition: state
entity_id: input_boolean.on_leave
state: 'off'
- condition: state
entity_id: input_boolean.movie_mode
state:
- 'off'
- type: is_not_occupied
condition: device
device_id: f490ccbb775bd7c5d936bfb067538aa5
@ -716,15 +725,6 @@
hours: 0
minutes: 15
seconds: 0
- type: is_not_occupied
condition: device
device_id: 66e998859b89cf23b000cc63e1ea9032
entity_id: 584e49486e9e6257cf0fdc764cce39c6
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
- type: is_not_occupied
condition: device
device_id: 5243fe178006af9adee15bacfc9bcadc
@ -736,8 +736,8 @@
seconds: 0
- type: is_not_occupied
condition: device
device_id: 441dcec55b364f4add736675e786a3c7
entity_id: 0a51f574cb49ac424c2e18a23eede114
device_id: 66e998859b89cf23b000cc63e1ea9032
entity_id: 584e49486e9e6257cf0fdc764cce39c6
domain: binary_sensor
for:
hours: 0
@ -770,6 +770,16 @@
hours: 0
minutes: 5
seconds: 0
- type: is_not_occupied
condition: device
device_id: 441dcec55b364f4add736675e786a3c7
entity_id: 0a51f574cb49ac424c2e18a23eede114
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
enabled: false
- condition: device
type: is_off
device_id: 24de64bd6b33c91e5b13136abefb5306
@ -779,6 +789,15 @@
hours: 0
minutes: 15
seconds: 0
- condition: device
type: is_off
device_id: ee4c386c52180c7b62ab5dcf466bf29a
entity_id: d64ce55f78c5b63d47c0dabeb64d645b
domain: switch
for:
hours: 0
minutes: 5
seconds: 0
- condition: not
conditions:
- condition: device
@ -800,6 +819,12 @@
minutes: 0
seconds: 5
actions:
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.sleep_mode
data: {}
enabled: true
- type: turn_off
device_id: 41b47f2cf5f589d00c82e31bab378437
entity_id: switch.tasmota
@ -826,12 +851,6 @@
device_id: 3ae84e7b8da1205247f68d24460fe60a
entity_id: fb369fa77f1002883f224eb57fedf290
domain: switch
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.sleep_mode
data: {}
enabled: false
mode: single
- id: '1703104763868'
alias: Turn OFF Heli sufit
@ -1042,41 +1061,14 @@
entity_id: input_boolean.sleep_mode
state:
- 'off'
- condition: state
entity_id: input_boolean.night_mode
state:
- 'off'
- condition: state
entity_id: input_boolean.passive_mode
state:
- 'off'
- condition: device
type: is_off
device_id: 09b3f10c7ccb155f4e636ea80426a5a3
entity_id: 9da021c8350628869cc5f36bc282f760
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
- condition: device
type: is_off
device_id: 7e3315293a049e4790df57aefe22a8a9
entity_id: 9b91efceaa3e5cb4e569845913aa1d04
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
- condition: device
type: is_off
device_id: 3ae84e7b8da1205247f68d24460fe60a
entity_id: fb369fa77f1002883f224eb57fedf290
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
- condition: state
entity_id: input_boolean.movie_mode
state:
- 'off'
actions:
- type: turn_on
device_id: 09b3f10c7ccb155f4e636ea80426a5a3
@ -2497,6 +2489,10 @@
at: 08:32:00
weekday:
- sat
- trigger: time
at: 09:00:00
weekday:
- sun
conditions:
- condition: state
entity_id: input_boolean.on_leave
@ -2506,11 +2502,6 @@
state:
- 'on'
actions:
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.sleep_mode
data: {}
- type: turn_on
device_id: 7d930a7e75050bd061e0389d60a653fe
entity_id: a0f0efeef06fa0808c8a7d0ec6e3909a
@ -3189,6 +3180,11 @@
option: tv
target:
entity_id: input_select.current_player
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.movie_mode
data: {}
else:
- alias: else nth or else none
if:
@ -3255,6 +3251,11 @@
option: none
target:
entity_id: input_select.current_player
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.movie_mode
data: {}
- alias: if chrome cast 4k playing
if:
- condition: device
@ -3269,6 +3270,11 @@
option: chrome-cast-salon
target:
entity_id: input_select.current_player
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.movie_mode
data: {}
enabled: false
mode: single
- id: '1764338460727'
@ -4127,7 +4133,7 @@
action: rest_command.ntfy_send
mode: single
- id: '1768945218810'
alias: Turn OFF sleep mode at sunrise
alias: Turn OFF night mode at sunrise
description: ''
triggers:
- trigger: sun
@ -4138,7 +4144,7 @@
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.sleep_mode
entity_id: input_boolean.night_mode
data: {}
mode: single
- id: '1768946230585'
@ -4230,7 +4236,7 @@
data: {}
mode: single
- id: '1768989504100'
alias: Nicht lights in Lazienka (Pralnia) on sleep_mode
alias: Night lights in Lazienka (Pralnia) on sleep_mode
description: ''
triggers:
- type: occupied
@ -4243,10 +4249,6 @@
entity_id: input_boolean.on_leave
state:
- 'off'
- condition: state
entity_id: input_boolean.passive_mode
state:
- 'off'
- condition: state
entity_id: input_boolean.sleep_mode
state:
@ -4287,7 +4289,7 @@
data: {}
mode: single
- id: '1768991054862'
alias: stop night_mode at 6:30
alias: stop sleep mode at 6:30
description: ''
triggers:
- trigger: time
@ -4297,6 +4299,6 @@
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.night_mode
entity_id: input_boolean.sleep_mode
data: {}
mode: single

2752
automations.yaml.oka_backup Normal file

File diff suppressed because it is too large Load diff

View file

@ -88,6 +88,8 @@ group:
garmin:
name: Garmin
entities:
- sensor.thtuyabalkon_temperature
- sensor.thsalon_temperature
- switch.tasmota
- switch.sufit2switchsalon
- switch.sufit3switchsalon
@ -96,6 +98,7 @@ group:
# - switch.tasmota_9
# - switch.tasmota_3
- input_boolean.sleep_mode
- input_boolean.movie_mode
- scene.Film
sensor:

5
esphome/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml

1
id_ed25519.pub Normal file
View file

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOrk9JUxkdqbjRr30V4T//fZB67QFaGjxL7oxSqwhRFa root@core-ssh

12
push_to_git.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
#git pull
#read -rp "Kontynuować? [y/n]: " yn && [[ "$yn" == "y" ]] || exit 1
git add .
git status
read -rp "Kontynuować? [y/n]: " yn && [[ "$yn" == "y" ]] || exit 1
git commit -m 'update automations' && git pull