diff --git a/configuration.yaml b/configuration.yaml new file mode 100644 index 0000000..78fd554 --- /dev/null +++ b/configuration.yaml @@ -0,0 +1,128 @@ +homeassistant: + name: Home + latitude: !secret home_latitude + longitude: !secret home_longitude + elevation: !secret home_elevation + unit_system: metric + time_zone: !secret home_timezone + packages: !include_dir_named packages + + allowlist_external_dirs: + - / # Add this if it isn't already there + customize_glob: + sensor.*_total_chores: + friendly_name: "Total Chores" + +# Loads default set of integrations. Do not remove. +default_config: + +# Text to speech +tts: + - platform: google_translate + +automation: !include automations.yaml +script: !include scripts.yaml +#scene: !include scenes.yaml +input_select: !include input_select.yaml +input_boolean: !include input_boolean.yaml +input_number: !include input_number.yaml +sensor: !include sensors.yaml +counter: !include counter.yaml +input_datetime: !include input_datetime.yaml +input_text: !include input_text.yaml +rest_command: !include rest_commands.yaml + +# ========== MODERN TEMPLATE CONFIGURATION ========== +# Migrated from legacy binary_sensor platform: template syntax +# Old file: binary_sensors.yaml (can be deleted after verifying migration works) +template: !include templates.yaml + +# ========== REMOVED - LEGACY SYNTAX ========== +# binary_sensor: !include binary_sensors.yaml # REMOVED - migrated to template: above + +notify: + - platform: file + name: chorelog + filename: chorelog.csv + timestamp: False + - platform: group + name: family + services: + - service: mobile_app_jess_iphone + - service: mobile_app_angelrose_iphone + +frontend: + themes: + main: + fc-small-font-size: "32px" + +python_script: + +shell_command: + generate_chore_summary: "python3 /config/python_scripts/chore_log_summary.py" + +recorder: + db_url: mysql://homeassistant:23Pinkpr!ncesses@core-mariadb/homeassistant + purge_keep_days: 5 + include: + domains: + - automation + - input_boolean + - input_text + - sensor + - binary_sensor + - script + entity_globs: + - "counter.chores_completed_*" + - "input_boolean.task_*" + - "sensor.last_chore_*" + - "sensor.*_consumption" + - "sensor.*_power" + - "sensor.dishwasher_*" + - "sensor.washingmachine_*" + - "sensor.clothesdrier_*" + - "sensor.cr10_*" + - "sensor.server_*" + # Add device blocking entities to recorder + - "input_boolean.*_blocked" + - "input_boolean.*_mac_changed" + - "input_text.*_mac" + - "sensor.*_detected_mac" + - "sensor.*_blocked" + - "sensor.*_network_status" + - "binary_sensor.ping_*" + +http: + use_x_forwarded_for: true + trusted_proxies: + - 10.0.0.55 # Add the IP address of the proxy server + - 172.16.0.0/12 # You may also provide the subnet mask + - 127.0.0.1 + server_port: 8123 + ip_ban_enabled: true + login_attempts_threshold: 5 + +light: + - platform: group + name: "Lounge Lights" + entities: + - light.rgb_lounge_front_left + - light.rgb_lounge_front_right + - light.rgb_lounge_rear_left + - light.rgb_lounge_rear_right + +# ========== ZONE DEFINITIONS ========== +zone: + - name: Home + latitude: !secret home_latitude + longitude: !secret home_longitude + radius: 100 + icon: mdi:home + +# ========== LOGGER CONFIGURATION ========== +logger: + default: info + logs: + homeassistant.components.rest_command: debug + homeassistant.components.ping: info + custom_components.tplink_router: debug