{
  "$schema": "./mapping_schema.json",
  "brand": "Stiebel Eltron",
  "aliases": [
    "STIEBEL ELTRON",
    "Stiebel Eltron France"
  ],
  "source_files": [
    "FAB-DIS_STIEBEL_ELTRON_FRANCE_2027_V1.1.json",
    "FAB-DIS_STIEBEL_ELTRON_FRANCE_2027_V1.1_conforme.xlsx"
  ],

  "filters": {
    "include_families": [
      "FA", "FI", "FC", "FD", "FE"
    ],
    "exclude_keywords": [
      "convecteur", "sèche-mains", "radiateur direct", "poêle", "chaudière électrique directe"
    ],
    "include_keywords": [
      "pompe à chaleur", "pac", "air-eau", "air/eau", "géothermie", "géothermique",
      "thermodynamique", "ballon", "wpl", "hpa", "hpg", "wpf", "wpe", "wwk", "shp",
      "lwz", "lwa", "vrl-c", "hsbc", "sbp", "sbb", "circulateur", "régulation",
      "wpm", "isg", "tuyau", "anti-vibratoire", "tour hydraulique"
    ]
  },

  "category_rules": [
    {
      "target_category": "pac_air_eau",
      "priority": 10,
      "match": {
        "libelle_regex": "(?:air-eau|air/eau|hpa|wpl|hlr|set hpa|set wpl)"
      }
    },
    {
      "target_category": "pac_geothermie",
      "priority": 20,
      "match": {
        "libelle_regex": "(?:géothermi|géothermie|wpf|wpe|hpg|eau glycolée/eau)"
      }
    },
    {
      "target_category": "dhw_thermodynamic",
      "priority": 30,
      "match": {
        "libelle_regex": "(?:chauffe-eau thermodynamique|thermodynamique|wwk|shp)"
      }
    },
    {
      "target_category": "ventilation_double_flux",
      "priority": 40,
      "match": {
        "libelle_regex": "(?:double flux|double-flux|lwz|lwa|vrl-c|ventilation centralisée)"
      }
    },
    {
      "target_category": "regulation",
      "priority": 50,
      "match": {
        "libelle_regex": "(?:régulateur|gestionnaire|wpm|isg web|interface|fek|thermostat|passerelle|sonde)"
      }
    },
    {
      "target_category": "accessory",
      "priority": 99,
      "match": {
        "default": true
      }
    }
  ],

  "attribute_extractors": {
    "heating_power_kw": {
      "regex_patterns": [
        "(?:cal|chaud|heating)[^0-9]*([0-9]+[.,]?[0-9]*)\\s*kW",
        "([0-9]+[.,]?[0-9]*)\\s*kW\\s*(?:chaud|cal)",
        "([0-9]+[.,]?[0-9]*)\\s*kW",
        "(?:HPA-O|HPG-I|WPL|WPF|WPE)\\s*0?([0-9]{1,2})"
      ]
    },
    "cooling_power_kw": {
      "regex_patterns": [
        "(?:frig|froid|cooling)[^0-9]*([0-9]+[.,]?[0-9]*)\\s*kW",
        "([0-9]+[.,]?[0-9]*)\\s*kW\\s*(?:froid|frig)",
        "([0-9]+[.,]?[0-9]*)\\s*kW"
      ]
    },
    "tank_volume_liters": {
      "regex_patterns": [
        "([0-9]{2,4})\\s*(?:L|litres|l\\b)",
        "(?:WWK|SHP|SHP-I|HSBC|SBP|SBB)\\s*([0-9]{2,4})"
      ]
    },
    "refrigerant_type": {
      "regex_patterns": [
        "(R454C|R290|R32|R410A|R407C|R134a)"
      ],
      "normalize": {
        "r454c": "R454C",
        "r290": "R290",
        "r32": "R32",
        "r410a": "R410A",
        "r407c": "R407C"
      },
      "default": "R454C"
    },
    "power_supply": {
      "regex_patterns": [
        "(230\\s*V|400\\s*V|triphasé|triphasée|monophasé|monophasée|1~|3~|HC\\s*230|HC\\s*400)"
      ],
      "normalize": {
        "230 V": "230V_1P",
        "230V": "230V_1P",
        "HC 230": "230V_1P",
        "monophasé": "230V_1P",
        "monophasée": "230V_1P",
        "1~": "230V_1P",
        "400 V": "400V_3P",
        "400V": "400V_3P",
        "HC 400": "400V_3P",
        "triphasé": "400V_3P",
        "triphasée": "400V_3P",
        "3~": "400V_3P"
      },
      "default": "230V_1P"
    },
    "pricing": {
      "price_ht_field": "TARIFD",
      "price_ht_fallback_field": "TARIF",
      "currency": "EUR"
    }
  }
}
