Initial configuration with split config files and without .storage. Files with secrets excluded and ignored.
This commit is contained in:
commit
c82f4aba25
1
.HA_VERSION
Normal file
1
.HA_VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
2021.8.8
|
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
automations_webhooks.yaml
|
||||||
|
spotify.yaml
|
||||||
|
calendars.yaml
|
||||||
|
esphome/common/secrets.yaml
|
||||||
|
esphome/secrets.yaml
|
||||||
|
secrets.yaml
|
||||||
|
.shopping_list.json
|
||||||
|
tts/
|
||||||
|
media/
|
||||||
|
home-assistant.log
|
||||||
|
|
302
automations.yaml
Normal file
302
automations.yaml
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
- id: '1623153060369'
|
||||||
|
alias: Licht bei Sonnenuntergang einschalten
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: sun
|
||||||
|
event: sunset
|
||||||
|
offset: '-1:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_pct: 20
|
||||||
|
kelvin: 4300
|
||||||
|
transition: 2
|
||||||
|
target:
|
||||||
|
device_id:
|
||||||
|
- 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
||||||
|
- c64e7c3dcda7f1c23e456959f2c60f39
|
||||||
|
- service: wled.effect
|
||||||
|
target:
|
||||||
|
device_id:
|
||||||
|
- c64e7c3dcda7f1c23e456959f2c60f39
|
||||||
|
- 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
||||||
|
data:
|
||||||
|
effect: Solid
|
||||||
|
palette: Default
|
||||||
|
- condition: state
|
||||||
|
state: 'on'
|
||||||
|
entity_id: media_player.lg_webos_smart_tv
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
device_id: 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
data:
|
||||||
|
transition: 2
|
||||||
|
mode: single
|
||||||
|
- id: '1623224198352'
|
||||||
|
alias: TV Anti-Reflexion
|
||||||
|
description: Schaltet Wohnzimmer hinten Ambient Light aus, um Reflexionen im TV
|
||||||
|
zu verhindern.
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: media_player.lg_webos_smart_tv
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
device_id: 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
data:
|
||||||
|
transition: 2
|
||||||
|
mode: single
|
||||||
|
- id: '1623350724195'
|
||||||
|
alias: Zonenbenachrichtigung
|
||||||
|
description: 'Debug: Präsenzerkennung'
|
||||||
|
use_blueprint:
|
||||||
|
path: homeassistant/notify_leaving_zone.yaml
|
||||||
|
input:
|
||||||
|
person_entity: person.marcus_scholz
|
||||||
|
zone_entity: zone.home
|
||||||
|
notify_device: aec5a678d24922386b4db1d68e3e6997
|
||||||
|
- id: '1623526683767'
|
||||||
|
alias: Licht bei Sonnenaufgang ausschalten
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: sun
|
||||||
|
event: sunrise
|
||||||
|
offset: '+1:00'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- kuche
|
||||||
|
- wohnzimmer
|
||||||
|
- schlafzimmer
|
||||||
|
data:
|
||||||
|
transition: 2
|
||||||
|
mode: single
|
||||||
|
- id: '1623673821789'
|
||||||
|
alias: Gute Nacht!
|
||||||
|
description: Schalte alles (außer Schlafzimmer) aus, sobald das Schlaftracking startet.
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_text.sleep_as_android
|
||||||
|
to: sleep_tracking_started
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: media_player.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- wohnzimmer
|
||||||
|
entity_id:
|
||||||
|
- media_player.lg_webos_smart_tv
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- wohnzimmer
|
||||||
|
- kuche
|
||||||
|
- schlafzimmer
|
||||||
|
- service: notify.mobile_app_j9110
|
||||||
|
data:
|
||||||
|
message: Gute Nacht!
|
||||||
|
mode: single
|
||||||
|
- id: '1623868115464'
|
||||||
|
alias: 420!
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: time
|
||||||
|
at: '16:20'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: notify.mobile_app_j9110
|
||||||
|
data:
|
||||||
|
message: Lodere es, Lustknabe!
|
||||||
|
title: SechszehnZwanzig
|
||||||
|
mode: single
|
||||||
|
- id: '1623911524804'
|
||||||
|
alias: TV Anti-Reflexion (undo)
|
||||||
|
description: Schaltet Wohnzimmer hinten Ambient Light wieder ein, wenn vorne auch
|
||||||
|
(noch) eingeschaltet ist.
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: media_player.lg_webos_smart_tv
|
||||||
|
to: 'off'
|
||||||
|
from: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: device
|
||||||
|
type: is_on
|
||||||
|
device_id: 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
domain: light
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
transition: 2
|
||||||
|
target:
|
||||||
|
device_id: 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
mode: single
|
||||||
|
- id: '1623941937228'
|
||||||
|
alias: Licht im Schlafzimmer zur Schlafenszeit einschalten
|
||||||
|
description: Bei Beginn der empfohlenen Schlafenszeit.
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_text.sleep_as_android
|
||||||
|
to: time_to_bed_alarm_alert
|
||||||
|
for: 00:05:00
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
area_id: schlafzimmer
|
||||||
|
mode: single
|
||||||
|
- id: '1623954512941'
|
||||||
|
alias: Licht im Schlafzimmer zum Aufwachen einschalten
|
||||||
|
description: Nach der Alarmquittierung
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_text.sleep_as_android
|
||||||
|
to: alarm_alert_start
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 30
|
||||||
|
milliseconds: 0
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
area_id: schlafzimmer
|
||||||
|
data: {}
|
||||||
|
- service: cast.show_lovelace_view
|
||||||
|
data:
|
||||||
|
entity_id: media_player.ccsz
|
||||||
|
dashboard_path: lovelace-test
|
||||||
|
mode: single
|
||||||
|
- id: '1624820688449'
|
||||||
|
alias: 'Anruf: Beim Klingeln grün blinken'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.fritz_box_7490_call_monitor_telefonbuch
|
||||||
|
to: ringing
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.j9110_phone_state
|
||||||
|
to: ringing
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: wled_last_state
|
||||||
|
snapshot_entities:
|
||||||
|
- light.wohnzimmer_vorne
|
||||||
|
- light.wohnzimmer_hinten
|
||||||
|
- light.lichterkette_kuche
|
||||||
|
- service: scene.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: scene.grun_blinken
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- service: scene.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: scene.wled_last_state
|
||||||
|
mode: single
|
||||||
|
- id: '1625481640348'
|
||||||
|
alias: 'Anruf: Beim Telefonieren Musik pausieren'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.fritz_box_7490_call_monitor_telefonbuch
|
||||||
|
to: talking
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.j9110_phone_state
|
||||||
|
to: talking
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: media_last_state
|
||||||
|
snapshot_entities:
|
||||||
|
- media_player.wohnzimmer_main
|
||||||
|
- media_player.lg_webos_smart_tv
|
||||||
|
- media_player.ccze
|
||||||
|
- media_player.spotify_marcus_scholz
|
||||||
|
- media_player.xboxonex
|
||||||
|
- service: media_player.media_pause
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- schlafzimmer
|
||||||
|
- wohnzimmer
|
||||||
|
- wait_for_trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.j9110_phone_state
|
||||||
|
to: idle
|
||||||
|
from: talking
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.fritz_box_7490_call_monitor_telefonbuch
|
||||||
|
to: idle
|
||||||
|
from: talking
|
||||||
|
- service: scene.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- scene.media_last_state
|
||||||
|
mode: single
|
||||||
|
- id: '1628972104416'
|
||||||
|
alias: Raumduft nach einer Stunde wieder ausschalten
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: device
|
||||||
|
type: turned_on
|
||||||
|
device_id: 5a08ac4c3b3893b540a9934fa92dccfa
|
||||||
|
entity_id: switch.flur_raumduft
|
||||||
|
domain: switch
|
||||||
|
for:
|
||||||
|
hours: 1
|
||||||
|
minutes: 0
|
||||||
|
seconds: 0
|
||||||
|
milliseconds: 0
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- type: turn_off
|
||||||
|
device_id: 5a08ac4c3b3893b540a9934fa92dccfa
|
||||||
|
entity_id: switch.flur_raumduft
|
||||||
|
domain: switch
|
||||||
|
mode: single
|
||||||
|
- id: '1628972885682'
|
||||||
|
alias: Raumduft zum Aufstehen einschalten
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_text.sleep_as_android
|
||||||
|
to: sleep_tracking_stopped
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.marcus_scholz
|
||||||
|
state: home
|
||||||
|
action:
|
||||||
|
- type: turn_on
|
||||||
|
device_id: 5a08ac4c3b3893b540a9934fa92dccfa
|
||||||
|
entity_id: switch.flur_raumduft
|
||||||
|
domain: switch
|
||||||
|
mode: single
|
182
automations_wled.yaml
Normal file
182
automations_wled.yaml
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
- id: '1623363801312'
|
||||||
|
alias: 'WLED: Effekt setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_select.wled_effect
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.effect
|
||||||
|
data:
|
||||||
|
effect: '{{ states("input_select.wled_effect") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
- id: '1623864502536'
|
||||||
|
alias: 'WLED: Effekt auf Dropdown setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: effect
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: '{{ state_attr("light.wohnzimmer_vorne", "effect") }}'
|
||||||
|
entity_id: input_select.wled_effect
|
||||||
|
mode: single
|
||||||
|
- id: '1623864934997'
|
||||||
|
alias: 'WLED: Intensität setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_number.wled_intensitat
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.effect
|
||||||
|
data:
|
||||||
|
intensity: '{{ states("input_number.wled_intensitat") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
max: 10
|
||||||
|
- id: '1623864972691'
|
||||||
|
alias: 'WLED: Intensität auf Slider setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: intensity
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_number.set_value
|
||||||
|
entity_id: input_number.wled_intensitat
|
||||||
|
data:
|
||||||
|
value: '{{ state_attr("light.wohnzimmer_vorne", "intensity") }}'
|
||||||
|
mode: single
|
||||||
|
- id: '1623865002108'
|
||||||
|
alias: 'WLED: Palette setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_select.wled_palette
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.effect
|
||||||
|
data:
|
||||||
|
palette: '{{ states("input_select.wled_palette") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
- id: '1623865798656'
|
||||||
|
alias: 'WLED: Palette auf Dropdown setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: palette
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: '{{ state_attr("light.wohnzimmer_vorne", "palette") }}'
|
||||||
|
entity_id: input_select.wled_palette
|
||||||
|
mode: single
|
||||||
|
- id: '1623865850796'
|
||||||
|
alias: 'WLED: Preset auf Dropdown setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: preset
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: '{{ state_attr("light.wohnzimmer_vorne", "preset") }}'
|
||||||
|
entity_id: input_select.wled_preset
|
||||||
|
mode: single
|
||||||
|
- id: '1623865875507'
|
||||||
|
alias: 'WLED: Reverse setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.wled_reverse
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.effect
|
||||||
|
data:
|
||||||
|
reverse: '{{ states("input_boolean.wled_reverse") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
- id: '1623865911962'
|
||||||
|
alias: 'WLED: Geschwindigkeit setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_number.wled_speed
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.effect
|
||||||
|
data:
|
||||||
|
speed: '{{ states("input_number.wled_speed") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
- id: '1623865945083'
|
||||||
|
alias: 'WLED: Geschwindigkeit auf Slider setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: speed
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_number.set_value
|
||||||
|
data:
|
||||||
|
value: '{{ state_attr("light.wohnzimmer_vorne", "speed") }}'
|
||||||
|
entity_id: input_number.wled_speed
|
||||||
|
mode: single
|
||||||
|
- id: '1623865972915'
|
||||||
|
alias: 'WLED: Helligkeit setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_number.wled_brightness
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness: '{{ states("input_number.wled_brightness") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
||||||
|
- id: '1623866010324'
|
||||||
|
alias: 'WLED: Helligkeit auf Slider setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.wohnzimmer_vorne
|
||||||
|
attribute: brightness
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: input_number.set_value
|
||||||
|
data:
|
||||||
|
value: '{{ state_attr("light.wohnzimmer_vorne", "brightness") }}'
|
||||||
|
entity_id: input_number.wled_brightness
|
||||||
|
mode: single
|
||||||
|
- id: '1624477474112'
|
||||||
|
alias: 'WLED: Preset setzen'
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_select.wled_preset
|
||||||
|
for: 00:00:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: wled.preset
|
||||||
|
data:
|
||||||
|
preset: '{{ states("input_select.wled_preset") }}'
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten
|
||||||
|
mode: single
|
54
blueprints/automation/homeassistant/motion_light.yaml
Normal file
54
blueprints/automation/homeassistant/motion_light.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
blueprint:
|
||||||
|
name: Motion-activated Light
|
||||||
|
description: Turn on a light when motion is detected.
|
||||||
|
domain: automation
|
||||||
|
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
||||||
|
input:
|
||||||
|
motion_entity:
|
||||||
|
name: Motion Sensor
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
domain: binary_sensor
|
||||||
|
device_class: motion
|
||||||
|
light_target:
|
||||||
|
name: Light
|
||||||
|
selector:
|
||||||
|
target:
|
||||||
|
entity:
|
||||||
|
domain: light
|
||||||
|
no_motion_wait:
|
||||||
|
name: Wait time
|
||||||
|
description: Time to leave the light on after last motion is detected.
|
||||||
|
default: 120
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 0
|
||||||
|
max: 3600
|
||||||
|
unit_of_measurement: seconds
|
||||||
|
|
||||||
|
# If motion is detected within the delay,
|
||||||
|
# we restart the script.
|
||||||
|
mode: restart
|
||||||
|
max_exceeded: silent
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: !input motion_entity
|
||||||
|
from: "off"
|
||||||
|
to: "on"
|
||||||
|
|
||||||
|
action:
|
||||||
|
- alias: "Turn on the light"
|
||||||
|
service: light.turn_on
|
||||||
|
target: !input light_target
|
||||||
|
- alias: "Wait until there is no motion from device"
|
||||||
|
wait_for_trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: !input motion_entity
|
||||||
|
from: "on"
|
||||||
|
to: "off"
|
||||||
|
- alias: "Wait the number of seconds that has been set"
|
||||||
|
delay: !input no_motion_wait
|
||||||
|
- alias: "Turn off the light"
|
||||||
|
service: light.turn_off
|
||||||
|
target: !input light_target
|
44
blueprints/automation/homeassistant/notify_leaving_zone.yaml
Normal file
44
blueprints/automation/homeassistant/notify_leaving_zone.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
blueprint:
|
||||||
|
name: Zone Notification
|
||||||
|
description: Send a notification to a device when a person leaves a specific zone.
|
||||||
|
domain: automation
|
||||||
|
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml
|
||||||
|
input:
|
||||||
|
person_entity:
|
||||||
|
name: Person
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
domain: person
|
||||||
|
zone_entity:
|
||||||
|
name: Zone
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
domain: zone
|
||||||
|
notify_device:
|
||||||
|
name: Device to notify
|
||||||
|
description: Device needs to run the official Home Assistant app to receive notifications.
|
||||||
|
selector:
|
||||||
|
device:
|
||||||
|
integration: mobile_app
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: !input person_entity
|
||||||
|
|
||||||
|
variables:
|
||||||
|
zone_entity: !input zone_entity
|
||||||
|
# This is the state of the person when it's in this zone.
|
||||||
|
zone_state: "{{ states[zone_entity].name }}"
|
||||||
|
person_entity: !input person_entity
|
||||||
|
person_name: "{{ states[person_entity].name }}"
|
||||||
|
|
||||||
|
condition:
|
||||||
|
condition: template
|
||||||
|
value_template: "{{ trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
|
||||||
|
|
||||||
|
action:
|
||||||
|
- alias: "Notify that a person has left the zone"
|
||||||
|
domain: mobile_app
|
||||||
|
type: notify
|
||||||
|
device_id: !input notify_device
|
||||||
|
message: "{{ person_name }} has left {{ zone_state }}"
|
@ -0,0 +1,84 @@
|
|||||||
|
blueprint:
|
||||||
|
name: Confirmable Notification
|
||||||
|
description: >-
|
||||||
|
A script that sends an actionable notification with a confirmation before
|
||||||
|
running the specified action.
|
||||||
|
domain: script
|
||||||
|
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
|
||||||
|
input:
|
||||||
|
notify_device:
|
||||||
|
name: Device to notify
|
||||||
|
description: Device needs to run the official Home Assistant app to receive notifications.
|
||||||
|
selector:
|
||||||
|
device:
|
||||||
|
integration: mobile_app
|
||||||
|
title:
|
||||||
|
name: "Title"
|
||||||
|
description: "The title of the button shown in the notification."
|
||||||
|
default: ""
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
message:
|
||||||
|
name: "Message"
|
||||||
|
description: "The message body"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
confirm_text:
|
||||||
|
name: "Confirmation Text"
|
||||||
|
description: "Text to show on the confirmation button"
|
||||||
|
default: "Confirm"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
confirm_action:
|
||||||
|
name: "Confirmation Action"
|
||||||
|
description: "Action to run when notification is confirmed"
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action:
|
||||||
|
dismiss_text:
|
||||||
|
name: "Dismiss Text"
|
||||||
|
description: "Text to show on the dismiss button"
|
||||||
|
default: "Dismiss"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
dismiss_action:
|
||||||
|
name: "Dismiss Action"
|
||||||
|
description: "Action to run when notification is dismissed"
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action:
|
||||||
|
|
||||||
|
mode: restart
|
||||||
|
|
||||||
|
sequence:
|
||||||
|
- alias: "Set up variables"
|
||||||
|
variables:
|
||||||
|
action_confirm: "{{ 'CONFIRM_' ~ context.id }}"
|
||||||
|
action_dismiss: "{{ 'DISMISS_' ~ context.id }}"
|
||||||
|
- alias: "Send notification"
|
||||||
|
domain: mobile_app
|
||||||
|
type: notify
|
||||||
|
device_id: !input notify_device
|
||||||
|
title: !input title
|
||||||
|
message: !input message
|
||||||
|
data:
|
||||||
|
actions:
|
||||||
|
- action: "{{ action_confirm }}"
|
||||||
|
title: !input confirm_text
|
||||||
|
- action: "{{ action_dismiss }}"
|
||||||
|
title: !input dismiss_text
|
||||||
|
- alias: "Awaiting response"
|
||||||
|
wait_for_trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: mobile_app_notification_action
|
||||||
|
event_data:
|
||||||
|
action: "{{ action_confirm }}"
|
||||||
|
- platform: event
|
||||||
|
event_type: mobile_app_notification_action
|
||||||
|
event_data:
|
||||||
|
action: "{{ action_dismiss }}"
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ wait.trigger.event.data.action == action_confirm }}"
|
||||||
|
sequence: !input confirm_action
|
||||||
|
- conditions: "{{ wait.trigger.event.data.action == action_dismiss }}"
|
||||||
|
sequence: !input dismiss_action
|
54
configuration.yaml
Normal file
54
configuration.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||||
|
default_config:
|
||||||
|
|
||||||
|
# Enable SSL/TLS
|
||||||
|
http:
|
||||||
|
server_port: 443
|
||||||
|
ssl_certificate: /ssl/fullchain.pem
|
||||||
|
ssl_key: /ssl/privkey.pem
|
||||||
|
|
||||||
|
# Text to speech
|
||||||
|
tts:
|
||||||
|
- platform: google_translate
|
||||||
|
|
||||||
|
# Include modules
|
||||||
|
group: !include groups.yaml
|
||||||
|
automation: !include automations.yaml
|
||||||
|
automation wled: !include automations_wled.yaml
|
||||||
|
automation webhooks: !include automations_webhooks.yaml
|
||||||
|
script: !include scripts.yaml
|
||||||
|
scene: !include scenes.yaml
|
||||||
|
|
||||||
|
# Enable additional integrations
|
||||||
|
# Enable 'wake_on_lan' intrgration
|
||||||
|
wake_on_lan:
|
||||||
|
# Configure LG WebOS TV integration
|
||||||
|
webostv: !include webostv.yaml
|
||||||
|
|
||||||
|
# Enable customizations
|
||||||
|
homeassistant:
|
||||||
|
customize: !include customize.yaml
|
||||||
|
|
||||||
|
# Spotify
|
||||||
|
spotify: !include spotify.yaml
|
||||||
|
|
||||||
|
# Additional sensors
|
||||||
|
sensor: !include sensors.yaml
|
||||||
|
|
||||||
|
# Template sensors
|
||||||
|
template:
|
||||||
|
- sensor:
|
||||||
|
- name: "Line Power Total"
|
||||||
|
unit_of_measurement: "W"
|
||||||
|
icon: mdi:flash
|
||||||
|
state: >
|
||||||
|
{% set phase_a = states('sensor.line_power_channel_a_power') | float %}
|
||||||
|
{% set phase_b = states('sensor.line_power_channel_b_power') | float %}
|
||||||
|
{% set phase_c = states('sensor.line_power_channel_c_power') | float %}
|
||||||
|
{{ (phase_a + phase_b + phase_c) | round(1) }}
|
||||||
|
|
||||||
|
# calendar integration
|
||||||
|
calendar: !include calendars.yaml
|
||||||
|
|
||||||
|
# DB-recorder configuration
|
||||||
|
recorder: !include recorder.yaml
|
2
customize.yaml
Normal file
2
customize.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
media_player.wohnzimmer_main:
|
||||||
|
icon: mdi:audio-video
|
10
esphome/.gitignore
vendored
Normal file
10
esphome/.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# 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/
|
||||||
|
**/.pioenvs/
|
||||||
|
**/.piolibdeps/
|
||||||
|
**/lib/
|
||||||
|
**/src/
|
||||||
|
**/platformio.ini
|
||||||
|
/secrets.yaml
|
42
esphome/aussensensor.yaml
Normal file
42
esphome/aussensensor.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
name: aussensensor
|
||||||
|
platform: ESP32
|
||||||
|
board: nodemcu-32s
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "Voltage-legacy"
|
||||||
|
password: !secret voltage_legacy_psk
|
||||||
|
use_address: aussensensor.home
|
||||||
|
power_save_mode: high
|
||||||
|
fast_connect: on
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Aussensensor Fallback Hotspot"
|
||||||
|
password: !secret fallback_psk
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
|
||||||
|
ota:
|
||||||
|
password: !secret ota
|
||||||
|
|
||||||
|
# DHT22 sensor
|
||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
model: dht22
|
||||||
|
pin: 25
|
||||||
|
temperature:
|
||||||
|
name: "Temperatur außen"
|
||||||
|
humidity:
|
||||||
|
name: "Luftfeuchtigkeit außen"
|
||||||
|
update_interval: 60s
|
||||||
|
# WiFi signal strength
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "WiFi Signalstärke"
|
||||||
|
update_interval: 60s
|
6
esphome/aussensensor/partitions.csv
Normal file
6
esphome/aussensensor/partitions.csv
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
nvs, data, nvs, 0x009000, 0x005000,
|
||||||
|
otadata, data, ota, 0x00e000, 0x002000,
|
||||||
|
app0, app, ota_0, 0x010000, 0x1C0000,
|
||||||
|
app1, app, ota_1, 0x1D0000, 0x1C0000,
|
||||||
|
eeprom, data, 0x99, 0x390000, 0x001000,
|
||||||
|
spiffs, data, spiffs, 0x391000, 0x00F000
|
|
157
esphome/sleepingroom.yaml
Normal file
157
esphome/sleepingroom.yaml
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
esphome:
|
||||||
|
name: sleepingroom
|
||||||
|
platform: ESP32
|
||||||
|
board: nodemcu-32s
|
||||||
|
|
||||||
|
# Dirty hack, because on_value_range does not trigger green if sensor
|
||||||
|
# value is within green range on boot.
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- output.set_level:
|
||||||
|
id: led_green
|
||||||
|
level: 58%
|
||||||
|
- output.set_level:
|
||||||
|
id: led_red
|
||||||
|
level: 0%
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: co2_warn
|
||||||
|
state: "grün"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "Voltage-legacy"
|
||||||
|
password: !secret voltage_legacy_psk
|
||||||
|
use_address: sleepingroom.home
|
||||||
|
power_save_mode: high
|
||||||
|
fast_connect: on
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Schlafzimmer Fallback Hotspot"
|
||||||
|
password: !secret fallback_psk
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
password: !secret api
|
||||||
|
|
||||||
|
# Enable over-the-air updates
|
||||||
|
ota:
|
||||||
|
password: !secret ota
|
||||||
|
|
||||||
|
# Initialize I²C
|
||||||
|
i2c:
|
||||||
|
- id: bus_a
|
||||||
|
sda: 13
|
||||||
|
scl: 16
|
||||||
|
scan: true
|
||||||
|
|
||||||
|
# Initialize LEDC GPIOs
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
pin: GPIO17
|
||||||
|
id: led_red
|
||||||
|
- platform: ledc
|
||||||
|
pin: GPIO18
|
||||||
|
id: led_green
|
||||||
|
|
||||||
|
# Create text sensor to represent CO2 LED warn state (somewhat redundant)
|
||||||
|
text_sensor:
|
||||||
|
- platform: template
|
||||||
|
name: "Schlafzimmer CO2 Warnstufe"
|
||||||
|
id: co2_warn
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
# WiFi signal strength
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "WiFi Signalstärke"
|
||||||
|
update_interval: 60s
|
||||||
|
# SCD30 CO2 + Temperature + Humidity Sensor
|
||||||
|
# • Luftqualität Kategorie 1: die LEDs leuchten grün (bis 800 ppm)
|
||||||
|
# • Luftqualität Kategorie 2: die LEDs leuchten gelb (900-1200 ppm)
|
||||||
|
# • Luftqualität Kategorie 3: die LEDs leuchten orange (1200 bis 1600ppm)
|
||||||
|
# • Luftqualität Kategorie 4: die LEDs leuchten rot (ab 1600ppm)
|
||||||
|
- platform: scd30
|
||||||
|
i2c_id: bus_a
|
||||||
|
co2:
|
||||||
|
name: "Schlafzimmer CO2"
|
||||||
|
id: co2_value
|
||||||
|
accuracy_decimals: 1
|
||||||
|
on_value_range:
|
||||||
|
- above: 380
|
||||||
|
below: 800
|
||||||
|
then:
|
||||||
|
- output.set_level:
|
||||||
|
id: led_green
|
||||||
|
level: 58%
|
||||||
|
- output.set_level:
|
||||||
|
id: led_red
|
||||||
|
level: 0%
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: co2_warn
|
||||||
|
state: "grün"
|
||||||
|
- above: 800
|
||||||
|
below: 1200
|
||||||
|
then:
|
||||||
|
- output.set_level:
|
||||||
|
id: led_green
|
||||||
|
level: 58%
|
||||||
|
- output.set_level:
|
||||||
|
id: led_red
|
||||||
|
level: 80%
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: co2_warn
|
||||||
|
state: "gelb"
|
||||||
|
- above: 1200
|
||||||
|
below: 1600
|
||||||
|
then:
|
||||||
|
- output.set_level:
|
||||||
|
id: led_green
|
||||||
|
level: 50%
|
||||||
|
- output.set_level:
|
||||||
|
id: led_red
|
||||||
|
level: 100%
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: co2_warn
|
||||||
|
state: "orange"
|
||||||
|
- above: 1600
|
||||||
|
then:
|
||||||
|
- output.set_level:
|
||||||
|
id: led_green
|
||||||
|
level: 0%
|
||||||
|
- output.set_level:
|
||||||
|
id: led_red
|
||||||
|
level: 100%
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: co2_warn
|
||||||
|
state: "rot"
|
||||||
|
temperature:
|
||||||
|
name: "Schlafzimmer Temperatur"
|
||||||
|
accuracy_decimals: 2
|
||||||
|
humidity:
|
||||||
|
name: "Schlafzimmer Luftfeuchtigkeit"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
# SCD30 temp sensor is a bit off
|
||||||
|
temperature_offset: 1.5 °C
|
||||||
|
ambient_pressure_compensation: 1
|
||||||
|
automatic_self_calibration: True
|
||||||
|
address: 0x61
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: bmp280
|
||||||
|
i2c_id: bus_a
|
||||||
|
temperature:
|
||||||
|
name: "Schlafzimmer Temperatur alt"
|
||||||
|
oversampling: 16x
|
||||||
|
pressure:
|
||||||
|
name: "Schlafzimmer Luftdruck"
|
||||||
|
address: 0x76
|
||||||
|
update_interval: 60s
|
||||||
|
|
||||||
|
script:
|
||||||
|
- id: startup_animation
|
||||||
|
then:
|
||||||
|
- delay: 5s
|
||||||
|
-
|
6
esphome/sleepingroom/partitions.csv
Normal file
6
esphome/sleepingroom/partitions.csv
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
nvs, data, nvs, 0x009000, 0x005000,
|
||||||
|
otadata, data, ota, 0x00e000, 0x002000,
|
||||||
|
app0, app, ota_0, 0x010000, 0x1C0000,
|
||||||
|
app1, app, ota_1, 0x1D0000, 0x1C0000,
|
||||||
|
eeprom, data, 0x99, 0x390000, 0x001000,
|
||||||
|
spiffs, data, spiffs, 0x391000, 0x00F000
|
|
321
glances/glances.conf
Normal file
321
glances/glances.conf
Normal file
@ -0,0 +1,321 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Globals Glances parameters
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
[global]
|
||||||
|
# Does Glances should check if a newer version is available on PyPI ?
|
||||||
|
check_update=false
|
||||||
|
# History size (maximum number of values)
|
||||||
|
# Default glances history size to 0
|
||||||
|
# https://github.com/hassio-addons/addon-glances/issues/61
|
||||||
|
# https://github.com/nicolargo/glances/issues/1341
|
||||||
|
history_size=0
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# User interface
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
[outputs]
|
||||||
|
# Theme name for the Curses interface: black or white
|
||||||
|
curse_theme=black
|
||||||
|
# Limit the number of processes to display in the WebUI
|
||||||
|
max_processes_display=30
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# plugins
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
[quicklook]
|
||||||
|
# Define CPU, MEM and SWAP thresholds in %
|
||||||
|
cpu_careful=50
|
||||||
|
cpu_warning=70
|
||||||
|
cpu_critical=90
|
||||||
|
mem_careful=50
|
||||||
|
mem_warning=70
|
||||||
|
mem_critical=90
|
||||||
|
swap_careful=50
|
||||||
|
swap_warning=70
|
||||||
|
swap_critical=90
|
||||||
|
|
||||||
|
[cpu]
|
||||||
|
# Default values if not defined: 50/70/90 (except for iowait)
|
||||||
|
user_careful=50
|
||||||
|
user_warning=70
|
||||||
|
user_critical=90
|
||||||
|
#user_log=False
|
||||||
|
#user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
|
||||||
|
system_careful=50
|
||||||
|
system_warning=70
|
||||||
|
system_critical=90
|
||||||
|
steal_careful=50
|
||||||
|
steal_warning=70
|
||||||
|
steal_critical=90
|
||||||
|
#steal_log=True
|
||||||
|
# I/O wait percentage should be lower than 1/# (Logical CPU cores)
|
||||||
|
# Leave commented to just use the default config (1/#-20% / 1/#-10% / 1/#)
|
||||||
|
#iowait_careful=30
|
||||||
|
#iowait_warning=40
|
||||||
|
#iowait_critical=50
|
||||||
|
# Context switch limit (core / second)
|
||||||
|
# Leave commented to just use the default config (critical is 50000*# (Logical CPU cores)
|
||||||
|
#ctx_switches_careful=10000
|
||||||
|
#ctx_switches_warning=12000
|
||||||
|
#ctx_switches_critical=14000
|
||||||
|
|
||||||
|
[percpu]
|
||||||
|
# Define CPU thresholds in %
|
||||||
|
# Default values if not defined: 50/70/90
|
||||||
|
user_careful=50
|
||||||
|
user_warning=70
|
||||||
|
user_critical=90
|
||||||
|
iowait_careful=50
|
||||||
|
iowait_warning=70
|
||||||
|
iowait_critical=90
|
||||||
|
system_careful=50
|
||||||
|
system_warning=70
|
||||||
|
system_critical=90
|
||||||
|
|
||||||
|
[gpu]
|
||||||
|
# Default processor values if not defined: 50/70/90
|
||||||
|
proc_careful=50
|
||||||
|
proc_warning=70
|
||||||
|
proc_critical=90
|
||||||
|
# Default memory values if not defined: 50/70/90
|
||||||
|
mem_careful=50
|
||||||
|
mem_warning=70
|
||||||
|
mem_critical=90
|
||||||
|
|
||||||
|
[mem]
|
||||||
|
# Define RAM thresholds in %
|
||||||
|
# Default values if not defined: 50/70/90
|
||||||
|
careful=50
|
||||||
|
#careful_action_repeat=echo {{percent}} >> /tmp/memory.alert
|
||||||
|
warning=70
|
||||||
|
critical=90
|
||||||
|
|
||||||
|
[memswap]
|
||||||
|
# Define SWAP thresholds in %
|
||||||
|
# Default values if not defined: 50/70/90
|
||||||
|
careful=50
|
||||||
|
warning=70
|
||||||
|
critical=90
|
||||||
|
|
||||||
|
[load]
|
||||||
|
# Define LOAD thresholds
|
||||||
|
# Value * number of cores
|
||||||
|
# Default values if not defined: 0.7/1.0/5.0 per number of cores
|
||||||
|
# Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
|
||||||
|
# http://www.linuxjournal.com/article/9001
|
||||||
|
careful=0.7
|
||||||
|
warning=1.0
|
||||||
|
critical=5.0
|
||||||
|
#log=False
|
||||||
|
|
||||||
|
[network]
|
||||||
|
# Default bitrate thresholds in % of the network interface speed
|
||||||
|
# Default values if not defined: 70/80/90
|
||||||
|
rx_careful=70
|
||||||
|
rx_warning=80
|
||||||
|
rx_critical=90
|
||||||
|
tx_careful=70
|
||||||
|
tx_warning=80
|
||||||
|
tx_critical=90
|
||||||
|
# Define the list of hidden network interfaces (comma-separated regexp)
|
||||||
|
#hide=docker.*,lo
|
||||||
|
# WLAN 0 alias
|
||||||
|
#wlan0_alias=Wireless IF
|
||||||
|
# It is possible to overwrite the bitrate thresholds per interface
|
||||||
|
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
|
||||||
|
#wlan0_rx_careful=4000000
|
||||||
|
#wlan0_rx_warning=5000000
|
||||||
|
#wlan0_rx_critical=6000000
|
||||||
|
#wlan0_rx_log=True
|
||||||
|
#wlan0_tx_careful=700000
|
||||||
|
#wlan0_tx_warning=900000
|
||||||
|
#wlan0_tx_critical=1000000
|
||||||
|
#wlan0_tx_log=True
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
# Define the list of hidden wireless network interfaces (comma-separated regexp)
|
||||||
|
hide=lo,docker.*
|
||||||
|
# Define SIGNAL thresholds in db (lower is better...)
|
||||||
|
# Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength
|
||||||
|
careful=-65
|
||||||
|
warning=-75
|
||||||
|
critical=-85
|
||||||
|
|
||||||
|
[diskio]
|
||||||
|
# Define the list of hidden disks (comma-separated regexp)
|
||||||
|
#hide=sda2,sda5,loop.*
|
||||||
|
hide=loop.*
|
||||||
|
# Alias for sda1
|
||||||
|
#sda1_alias=IntDisk
|
||||||
|
|
||||||
|
[fs]
|
||||||
|
# Define the list of hidden file system (comma-separated regexp)
|
||||||
|
#hide=/boot.*
|
||||||
|
# Define filesystem space thresholds in %
|
||||||
|
# Default values if not defined: 50/70/90
|
||||||
|
# It is also possible to define per mount point value
|
||||||
|
# Example: /_careful=40
|
||||||
|
careful=50
|
||||||
|
warning=70
|
||||||
|
critical=90
|
||||||
|
# Allow additional file system types (comma-separated FS type)
|
||||||
|
#allow=zfs
|
||||||
|
|
||||||
|
[folders]
|
||||||
|
# Define a folder list to monitor
|
||||||
|
# The list is composed of items (list_#nb <= 10)
|
||||||
|
# An item is defined by:
|
||||||
|
# * path: absolute path
|
||||||
|
# * careful: optional careful threshold (in MB)
|
||||||
|
# * warning: optional warning threshold (in MB)
|
||||||
|
# * critical: optional critical threshold (in MB)
|
||||||
|
folder_1_path=/config
|
||||||
|
folder_1_careful=4096
|
||||||
|
folder_1_warning=8196
|
||||||
|
folder_1_critical=12228
|
||||||
|
folder_2_path=/share
|
||||||
|
folder_2_careful=4096
|
||||||
|
folder_2_warning=8196
|
||||||
|
folder_2_critical=12228
|
||||||
|
folder_3_path=/backup
|
||||||
|
folder_3_careful=4096
|
||||||
|
folder_3_warning=8196
|
||||||
|
folder_3_critical=12228
|
||||||
|
folder_4_path=/media
|
||||||
|
folder_4_careful=4096
|
||||||
|
folder_4_warning=8196
|
||||||
|
folder_4_critical=12228
|
||||||
|
|
||||||
|
[sensors]
|
||||||
|
# Sensors core thresholds (in Celsius...)
|
||||||
|
# Default values if not defined: 60/70/80
|
||||||
|
temperature_core_careful=60
|
||||||
|
temperature_core_warning=70
|
||||||
|
temperature_core_critical=80
|
||||||
|
# Temperatures threshold in °C for hddtemp
|
||||||
|
# Default values if not defined: 45/52/60
|
||||||
|
temperature_hdd_careful=45
|
||||||
|
temperature_hdd_warning=52
|
||||||
|
temperature_hdd_critical=60
|
||||||
|
# Battery threshold in %
|
||||||
|
battery_careful=80
|
||||||
|
battery_warning=90
|
||||||
|
battery_critical=95
|
||||||
|
# Sensors alias
|
||||||
|
#temp1_alias=Motherboard 0
|
||||||
|
#temp2_alias=Motherboard 1
|
||||||
|
#core 0_alias=CPU Core 0
|
||||||
|
#core 1_alias=CPU Core 1
|
||||||
|
|
||||||
|
[processlist]
|
||||||
|
# Define CPU/MEM (per process) thresholds in %
|
||||||
|
# Default values if not defined: 50/70/90
|
||||||
|
cpu_careful=50
|
||||||
|
cpu_warning=70
|
||||||
|
cpu_critical=90
|
||||||
|
mem_careful=50
|
||||||
|
mem_warning=70
|
||||||
|
mem_critical=90
|
||||||
|
#
|
||||||
|
# Nice priorities range from -20 to 19.
|
||||||
|
# Configure nice levels using a comma separated list.
|
||||||
|
#
|
||||||
|
# Nice: Example 1, non-zero is warning (default behavior)
|
||||||
|
nice_warning=-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
|
||||||
|
#
|
||||||
|
# Nice: Example 2, low priority processes escalate from careful to critical
|
||||||
|
#nice_careful=1,2,3,4,5,6,7,8,9
|
||||||
|
#nice_warning=10,11,12,13,14
|
||||||
|
#nice_critical=15,16,17,18,19
|
||||||
|
|
||||||
|
[ports]
|
||||||
|
# Ports scanner plugin configuration
|
||||||
|
# Interval in second between two scans
|
||||||
|
refresh=30
|
||||||
|
# Set the default timeout (in second) for a scan (can be overwritten in the scan list)
|
||||||
|
timeout=3
|
||||||
|
# If port_default_gateway is True, add the default gateway on top of the scan list
|
||||||
|
port_default_gateway=True
|
||||||
|
#
|
||||||
|
# Define the scan list (1 < x < 255)
|
||||||
|
# port_x_host (name or IP) is mandatory
|
||||||
|
# port_x_port (TCP port number) is optional (if not set, use ICMP)
|
||||||
|
# port_x_description is optional (if not set, define to host:port)
|
||||||
|
# port_x_timeout is optional and overwrite the default timeout value
|
||||||
|
# port_x_rtt_warning is optional and defines the warning threshold in ms
|
||||||
|
#
|
||||||
|
#port_1_host=192.168.0.1
|
||||||
|
#port_1_port=80
|
||||||
|
#port_1_description=Home Box
|
||||||
|
#port_1_timeout=1
|
||||||
|
#port_2_host=www.free.fr
|
||||||
|
#port_2_description=My ISP
|
||||||
|
#port_3_host=www.google.com
|
||||||
|
#port_3_description=Internet ICMP
|
||||||
|
#port_3_rtt_warning=1000
|
||||||
|
#port_4_description=Internet Web
|
||||||
|
#port_4_host=www.google.com
|
||||||
|
#port_4_port=80
|
||||||
|
#port_4_rtt_warning=1000
|
||||||
|
#
|
||||||
|
# Define Web (URL) monitoring list (1 < x < 255)
|
||||||
|
# web_x_url is the URL to monitor (example: http://my.site.com/folder)
|
||||||
|
# web_x_description is optional (if not set, define to URL)
|
||||||
|
# web_x_timeout is optional and overwrite the default timeout value
|
||||||
|
# web_x_rtt_warning is optional and defines the warning respond time in ms (approximatively)
|
||||||
|
#
|
||||||
|
#web_1_url=https://blog.nicolargo.com
|
||||||
|
#web_1_description=My Blog
|
||||||
|
#web_1_rtt_warning=3000
|
||||||
|
#web_2_url=https://github.com
|
||||||
|
#web_3_url=http://www.google.fr
|
||||||
|
#web_3_description=Google Fr
|
||||||
|
#web_4_url=https://blog.nicolargo.com/nonexist
|
||||||
|
#web_4_description=Intranet
|
||||||
|
|
||||||
|
[docker]
|
||||||
|
# Thresholds for CPU and MEM (in %)
|
||||||
|
cpu_careful=50
|
||||||
|
cpu_warning=70
|
||||||
|
cpu_critical=90
|
||||||
|
mem_careful=20
|
||||||
|
mem_warning=50
|
||||||
|
mem_critical=70
|
||||||
|
#
|
||||||
|
# Per container thresholds
|
||||||
|
#containername_cpu_careful=10
|
||||||
|
#containername_cpu_warning=20
|
||||||
|
#containername_cpu_critical=30
|
||||||
|
#
|
||||||
|
# By default, Glances only display running containers
|
||||||
|
# Set the following key to True to display all containers
|
||||||
|
all=False
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Client/server
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
[serverlist]
|
||||||
|
# Define the static servers list
|
||||||
|
#server_1_name=localhost
|
||||||
|
#server_1_alias=My local PC
|
||||||
|
#server_1_port=61209
|
||||||
|
#server_2_name=localhost
|
||||||
|
#server_2_port=61235
|
||||||
|
#server_3_name=192.168.0.17
|
||||||
|
#server_3_alias=Another PC on my network
|
||||||
|
#server_3_port=61209
|
||||||
|
#server_4_name=pasbon
|
||||||
|
#server_4_port=61237
|
||||||
|
|
||||||
|
[passwords]
|
||||||
|
# Define the passwords list
|
||||||
|
# Syntax: host=password
|
||||||
|
# Where: host is the hostname
|
||||||
|
# password is the clear password
|
||||||
|
# Additionally (and optionally) a default password could be defined
|
||||||
|
#localhost=abc
|
||||||
|
#default=defaultpassword
|
0
groups.yaml
Normal file
0
groups.yaml
Normal file
BIN
image/5fedb57f4aec74efb42840acd1a05380/512x512
Normal file
BIN
image/5fedb57f4aec74efb42840acd1a05380/512x512
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
image/5fedb57f4aec74efb42840acd1a05380/original
Normal file
BIN
image/5fedb57f4aec74efb42840acd1a05380/original
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
20
recorder.yaml
Normal file
20
recorder.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
db_url: !secret ha_recorder_dburl
|
||||||
|
# Commit to db only every X seconds
|
||||||
|
commit_interval: 10
|
||||||
|
# Delete events and states older than 2 weeks
|
||||||
|
auto_purge: true
|
||||||
|
purge_keep_days: 14
|
||||||
|
# exclude:
|
||||||
|
# domains:
|
||||||
|
# - automation
|
||||||
|
# - updater
|
||||||
|
# entity_globs:
|
||||||
|
# - sensor.weather_*
|
||||||
|
# entities:
|
||||||
|
# - sun.sun # Don't record sun data
|
||||||
|
# - sensor.date
|
||||||
|
# - fritzbox Connection Uptime
|
||||||
|
# - fritzbox Device Uptime
|
||||||
|
# event_types:
|
||||||
|
# - call_service # Don't record service calls
|
||||||
|
|
1447
scenes.yaml
Normal file
1447
scenes.yaml
Normal file
File diff suppressed because it is too large
Load Diff
21
scripts.yaml
Normal file
21
scripts.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
'1624956558905':
|
||||||
|
alias: 'WLED: Zufälliger Effekt'
|
||||||
|
sequence:
|
||||||
|
- service: wled.effect
|
||||||
|
target:
|
||||||
|
entity_id: light.wohnzimmer_hinten, light.wohnzimmer_vorne, light.lichterkette_kuche
|
||||||
|
data:
|
||||||
|
effect: '{{ state_attr(''light.wohnzimmer_hinten'', ''effect_list'') | random
|
||||||
|
}}'
|
||||||
|
mode: single
|
||||||
|
icon: mdi:firework
|
||||||
|
'1624970147971':
|
||||||
|
alias: 'WLED: Zufällige Palette'
|
||||||
|
sequence:
|
||||||
|
- service: wled.effect
|
||||||
|
target:
|
||||||
|
entity_id: light.wohnzimmer_vorne, light.wohnzimmer_hinten, light.lichterkette_kuche
|
||||||
|
data:
|
||||||
|
palette: '{{ range(0,55) | random }}'
|
||||||
|
mode: single
|
||||||
|
icon: mdi:palette
|
12
sensors.yaml
Normal file
12
sensors.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Raspberry Pi CPU temp
|
||||||
|
- platform: command_line
|
||||||
|
name: "CPU Temp"
|
||||||
|
command: "cat /sys/class/thermal/thermal_zone0/temp"
|
||||||
|
unit_of_measurement: "°C"
|
||||||
|
value_template: "{{ value | multiply(0.001) | round(1) }}"
|
||||||
|
# Moon Phases
|
||||||
|
- platform: moon
|
||||||
|
# DWD weather warnings
|
||||||
|
- platform: dwd_weather_warnings
|
||||||
|
name: "DWD Unwetterwarnungen"
|
||||||
|
region_name: "Münster-Süd"
|
BIN
webostv.conf
Normal file
BIN
webostv.conf
Normal file
Binary file not shown.
8
webostv.yaml
Normal file
8
webostv.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
host: 192.168.122.15
|
||||||
|
#other settings
|
||||||
|
turn_on_action:
|
||||||
|
service: wake_on_lan.send_magic_packet
|
||||||
|
data:
|
||||||
|
mac: a8-23-fe-5d-4c-f8
|
||||||
|
broadcast_address: 192.168.122.255
|
Loading…
Reference in New Issue
Block a user