# Pace BMS add-on configuration helper
# Generated from current add-on options.
# Sensitive values are replaced with placeholders.
# Paste/edit these values in the Home Assistant add-on Configuration tab.

# ── BMS Connection ─────────────────────────────────────────────
bms_connection_mode: "Serial"
connection_type: "Serial"
bms_serial: "/dev/pacebms"
bms_baudrate: 9600
scan_interval: 5

# ── History & Live Data ─────────────────────────────────────────────
ui_data_source: "auto"
metrics_enabled: true
history_sample_seconds: 10
history_cell_sample_seconds: 30
history_retention_days: 90
history_event_retention_days: 365

# ── MQTT ─────────────────────────────────────────────
mqtt_enabled: true
mqtt_host: "172.16.13.31"
mqtt_port: 1883
mqtt_user: "YOUR_MQTT_USER"
mqtt_password: "YOUR_MQTT_PASSWORD"
mqtt_base_topic: "pacebms"
mqtt_ha_discovery: true
mqtt_ha_discovery_topic: "homeassistant"
mqtt_retain_state: true
state_force_republish_seconds: 300
warn_force_republish_seconds: 300

# ── Advanced ─────────────────────────────────────────────
debug_output: 0
zero_pad_number_cells: 2
zero_pad_number_packs: 2

# ── Telegram ─────────────────────────────────────────────
notify_enabled: false
telegram_bot_token: "YOUR_TELEGRAM_BOT_TOKEN"
telegram_chat_id: "YOUR_TELEGRAM_CHAT_ID"
notify_startup: true
notify_disconnect: true
notify_stale_data: true
notify_stale_recovery: true

# ── Notifications ─────────────────────────────────────────────
notify_soc_low: true
notify_soc_high: true
notify_soc_high_on_startup: false
notify_soh: true
notify_soh_on_startup: false
notify_warnings: true

# ── FET Notifications ─────────────────────────────────────────────
notify_fet: true
notify_ignore_charge_fet_off_when_full: true
notify_alert_discharge_fet_off: true
notify_fet_repeat_seconds: 3600

# ── Notification Thresholds ─────────────────────────────────────────────
notify_soc_low_thresholds: "50,25,10"
notify_soc_high_threshold: 98
notify_soc_high_reset: 95
notify_soh_threshold: 95
notify_retry_count: 3
notify_stale_data_seconds: 120
notify_stale_data_repeat_seconds: 1800
notify_warning_repeat_seconds: 1800
notify_warning_repeat_caution_seconds: 21600
notify_warning_repeat_warning_seconds: 3600
notify_warning_repeat_critical_seconds: 1800
notify_warning_clear_confirm_reads: 2

# ── Warning Detail ─────────────────────────────────────────────
notify_warning_detail_enabled: true
notify_include_highest_and_lowest_cell: true
notify_include_pack_voltage: true
notify_include_soc_soh: true

# ── Scheduled Reports ─────────────────────────────────────────────
notify_daily_summary: true
notify_daily_summary_time: "19:00"
notify_delta_report_time: "10:15"
notify_delta_window_start: "00:00"
notify_delta_window_end: "10:00"
daily_energy_current_deadband_a: 0.2

# ── Battery Profile & References ─────────────────────────────────────────────
battery_profile: "auto"
notify_bms_warning_policy: "user_reference_or_critical"
expected_cell_count: 0
expected_pack_count: 0
capacity_fallback_enabled: false
capacity_per_pack_ah: 0
notify_cell_high_warn_voltage: 4.2
notify_cell_low_warn_voltage: 3.0
notify_cell_delta_warn_mv: 100
notify_temp_high_warn_c: 55
notify_temp_low_warn_c: 0
notify_alert_cell_high_voltage: true
notify_alert_cell_low_voltage: true
notify_alert_cell_delta: true
notify_alert_pack_high_voltage: true
notify_alert_pack_low_voltage: true
notify_alert_temp_high: true
notify_alert_temp_low: true
notify_include_all_cells_above_threshold: true
notify_include_all_cells_below_threshold: true
notify_delta_report: true
