auto-update-daily-20260202
  1# Example Home Assistant configuration.yaml additions
  2# Copy relevant sections to your actual Home Assistant configuration
  3
  4# Enable YAML dashboard mode
  5lovelace:
  6  mode: yaml
  7  # Optionally add custom resources (HACS cards)
  8  resources:
  9    # Uncomment and install via HACS:
 10    # - url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
 11    #   type: module
 12    # - url: /hacsfiles/button-card/button-card.js
 13    #   type: module
 14
 15# RESTful sensors for service status monitoring
 16# These use HTTP ping to check if services are available
 17
 18rest:
 19  # Jellyfin
 20  - resource: https://jellyfin.sbr.pm/health
 21    scan_interval: 60
 22    binary_sensor:
 23      - name: "Jellyfin Status"
 24        value_template: "{{ value_json.status == 'Healthy' or value == 'OK' }}"
 25        device_class: connectivity
 26
 27  # Immich
 28  - resource: https://immich.sbr.pm/api/server-info/ping
 29    scan_interval: 60
 30    binary_sensor:
 31      - name: "Immich Status"
 32        value_template: "{{ value_json.res == 'pong' or is_state('binary_sensor.immich_status', 'on') }}"
 33        device_class: connectivity
 34
 35  # Transmission
 36  - resource: https://transmission.sbr.pm
 37    scan_interval: 60
 38    binary_sensor:
 39      - name: "Transmission Status"
 40        value_template: "{{ true if value else false }}"
 41        device_class: connectivity
 42
 43  # Sonarr
 44  - resource: https://sonarr.sbr.pm/api/v3/health
 45    scan_interval: 60
 46    headers:
 47      X-Api-Key: !secret sonarr_api_key
 48    binary_sensor:
 49      - name: "Sonarr Status"
 50        value_template: "{{ is_state('binary_sensor.sonarr_status', 'on') or value }}"
 51        device_class: connectivity
 52
 53  # Radarr
 54  - resource: https://radarr.sbr.pm/api/v3/health
 55    scan_interval: 60
 56    headers:
 57      X-Api-Key: !secret radarr_api_key
 58    binary_sensor:
 59      - name: "Radarr Status"
 60        value_template: "{{ is_state('binary_sensor.radarr_status', 'on') or value }}"
 61        device_class: connectivity
 62
 63  # Prowlarr
 64  - resource: https://prowlarr.sbr.pm/api/v1/health
 65    scan_interval: 60
 66    headers:
 67      X-Api-Key: !secret prowlarr_api_key
 68    binary_sensor:
 69      - name: "Prowlarr Status"
 70        value_template: "{{ is_state('binary_sensor.prowlarr_status', 'on') or value }}"
 71        device_class: connectivity
 72
 73  # Grafana
 74  - resource: https://grafana.sbr.pm/api/health
 75    scan_interval: 120
 76    binary_sensor:
 77      - name: "Grafana Status"
 78        value_template: "{{ value_json.database == 'ok' or is_state('binary_sensor.grafana_status', 'on') }}"
 79        device_class: connectivity
 80
 81  # Traefik
 82  - resource: https://traefik.sbr.pm/api/overview
 83    scan_interval: 60
 84    binary_sensor:
 85      - name: "Traefik Status"
 86        value_template: "{{ value or is_state('binary_sensor.traefik_status', 'on') }}"
 87        device_class: connectivity
 88
 89# Alternative: Use the ping integration for simple connectivity checks
 90# This is simpler but only checks if the host responds to ping
 91binary_sensor:
 92  - platform: ping
 93    name: "Rhea Server"
 94    host: rhea.home
 95    count: 2
 96    scan_interval: 60
 97
 98  - platform: ping
 99    name: "Sakhalin Server"
100    host: sakhalin.home
101    count: 2
102    scan_interval: 60
103
104  - platform: ping
105    name: "Aion Server"
106    host: aion.home
107    count: 2
108    scan_interval: 60
109
110  - platform: ping
111    name: "Athena Server"
112    host: athena.home
113    count: 2
114    scan_interval: 60
115
116  - platform: ping
117    name: "Demeter Server"
118    host: demeter.home
119    count: 2
120    scan_interval: 60
121
122# Notifications via ntfy.sh
123notify:
124  - name: ntfy_homelab
125    platform: rest
126    resource: https://ntfy.sbr.pm/homelab
127    method: POST_JSON
128    headers:
129      Title: "Home Assistant"
130    message_param_name: message
131
132# Optional: Sonarr/Radarr integrations via HACS
133# Install "Sonarr Upcoming Media" and "Radarr Upcoming Media" from HACS
134# Then configure:
135# sonarr_upcoming_media:
136#   api_key: !secret sonarr_api_key
137#   host: sonarr.sbr.pm
138#   port: 443
139#   ssl: true
140#   days: 7
141
142# radarr_upcoming_media:
143#   api_key: !secret radarr_api_key
144#   host: radarr.sbr.pm
145#   port: 443
146#   ssl: true
147#   days: 7
148
149# Optional: System monitor for local HA server
150sensor:
151  - platform: systemmonitor
152    resources:
153      - type: disk_use_percent
154        arg: /
155      - type: memory_use_percent
156      - type: processor_use
157      - type: last_boot