diff --git a/compose.homeassistant.yaml b/compose.homeassistant.yaml index 07a4e3f..aead836 100644 --- a/compose.homeassistant.yaml +++ b/compose.homeassistant.yaml @@ -1,7 +1,7 @@ services: homeassistant: container_name: homeassistant - image: homeassistant/home-assistant:2025.1.2 + image: homeassistant/home-assistant:2026.2.0 network_mode: host privileged: true restart: unless-stopped diff --git a/homeassistant/.gitignore b/homeassistant/.gitignore index e6a8238..635434f 100644 --- a/homeassistant/.gitignore +++ b/homeassistant/.gitignore @@ -9,4 +9,4 @@ secrets.yaml tts www home-assistant-340618-840b2cb7a8a4.json - +.ha* diff --git a/homeassistant/configuration.yaml b/homeassistant/configuration.yaml index 9cd8579..ac7569c 100644 --- a/homeassistant/configuration.yaml +++ b/homeassistant/configuration.yaml @@ -13,11 +13,14 @@ api: http: use_x_forwarded_for: true trusted_proxies: - # - 172.18.0.32 - - 172.0.0.0/8 + - 0.0.0.0/0 + +homeassistant: + auth_providers: + - type: homeassistant ltss: - db_url: postgresql://homeassistant:homeassistant@host:6543/homeassistant + db_url: !secret ltss_db_url chunk_time_interval: 2592000000000 include: entity_globs: @@ -51,26 +54,28 @@ google_assistant: - BRIGHT_LIGHTS - ENTRY_LIGHTS -lastfm_scrobbler: - API_KEY: !secret lastfm_scrobbler_API_KEY - API_SECRET: !secret lastfm_scrobbler_API_SECRET - SESSION_KEY: !secret lastfm_scrobbler_SESSION_KEY - media_players: - - media_player.kantoor - - media_player.versterker - - media_player.woonkamer_tv - scrobble_percentage: 25 # The default value is 1 if this line is omitted. +# auth_header: +# allow_bypass_login: true +# # username_header: X-Forwarded-Preferred-Username +# username_header: X-Homeassistant-User +# debug: true -auth_header: - allow_bypass_login: true - # username_header: X-Forwarded-Preferred-Username - username_header: X-Homeassistant-User - debug: true +openid: + client_id: !secret openid_client_id + client_secret: !secret openid_client_secret + configure_url: !secret openid_configure_url + username_field: "preferred_username" + scope: "openid profile email" + block_login: false + trusted_ips: + - "192.168.2.0/24" + - "127.0.0.0/8" + - "172.0.0.0/8" + openid_text: "Login with Authentik" + create_user: true logger: default: info - logs: - custom_components.auth_header: debug input_number: test_outdoor: @@ -111,9 +116,6 @@ template: device_class: temperature state: "{{ states('input_number.test_indoor_2') }}" -mqtt: - sensor: !include mqtt.yaml - sems2mqtt: broker: host broker_user: !secret sems_broker_user diff --git a/homeassistant/mqtt.yaml b/homeassistant/mqtt.yaml deleted file mode 100644 index 7f1ab28..0000000 --- a/homeassistant/mqtt.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- object_id: mqtt_borgmatic_test - unique_id: mqtt_borgmatic_test - state_topic: "borgmatic/stats/test" - unit_of_measurement: "?"