# configuration.yaml – Home Assistant OS # Version anonymisée — secrets externalisés dans secrets.yaml # ───────────────────────────────────────────── # CORE # ───────────────────────────────────────────── # Charge les intégrations par défaut (UI, historique, log, etc.) default_config: frontend: themes: !include_dir_merge_named themes automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml # ───────────────────────────────────────────── # HTTP – Proxy inverse Cloudflare # L'accès distant passe par le tunnel Cloudflared (sortant). # L'administration passe par WireGuard hébergé sur le serveur Proxmox. # ───────────────────────────────────────────── http: use_x_forwarded_for: true trusted_proxies: - 172.30.33.0/24 # Réseau interne add-on Cloudflared # Pas de WireGuard sur HAOS — le serveur VPN est sur le Proxmox (LXC dédié) # ───────────────────────────────────────────── # NOTIFICATIONS – Bot Telegram # ───────────────────────────────────────────── telegram_bot: - platform: polling api_key: !secret telegram_bot_token allowed_chat_ids: - !secret telegram_chat_user1 - !secret telegram_chat_user2 notify: - platform: telegram name: user1 chat_id: !secret telegram_chat_user1 - platform: telegram name: user2 chat_id: !secret telegram_chat_user2 # ───────────────────────────────────────────── # INPUT BOOLEANS – Switchs virtuels dashboard # ───────────────────────────────────────────── input_boolean: # Scènes lumière sunset_switch: name: Scène lumière ambiante initial: off led_bar_switch: name: Barre LED initial: off # Appareils IR ventilo_switch: name: Ventilateur initial: off diffuseur_switch: name: Diffuseur arômes initial: off # Alarme & Sécurité sirene_switch: name: Sirène initial: off camera_privacy_switch: name: Caméra privacy initial: off # Maître automatisations master_automatisations: name: Automatisations On/Off initial: on # ───────────────────────────────────────────── # SENSORS # ───────────────────────────────────────────── sensor: !include sensors.yaml # ───────────────────────────────────────────── # TEMPLATE – Switch caméra avec inversion privacy # Le switch HA représente l'état "caméra visible" # alors que l'entité physique est un switch "privacy" (logique inversée) # ───────────────────────────────────────────── template: - switch: - name: Caméra unique_id: camera_privacy_template state: "{{ is_state('switch.camera_privacy', 'off') }}" icon: > {% if is_state('switch.camera_privacy', 'off') %} mdi:cctv {% else %} mdi:cctv-off {% endif %} turn_on: - action: switch.turn_off target: entity_id: switch.camera_privacy turn_off: - action: switch.turn_on target: entity_id: switch.camera_privacy # ───────────────────────────────────────────── # HOMEKIT (optionnel) # Expose certaines entités vers Apple Home # ───────────────────────────────────────────── # homekit: # - name: HAOS Bridge # port: 21063 # filter: # include_domains: # - light # - switch # - climate # - alarm_control_panel