apiVersion: v1
kind: ConfigMap
metadata:
  name: heating-controller-config
  namespace: homea
data:
  MQTT_BROKER: "emqx01-anonymous-cluster-internal.broker.svc.cluster.local"
  MQTT_PORT: "1883"
  MQTT_CLIENT_PREFIX: "HeatingController"
  BOX_TOPIC_PREFIXES: |
    {
      "high_temp": "heating/config/high_temp/",
      "overwrite_window": "heating/overwrite_window/",
      "cmd": "heating/command/"
    }
  CENTRAL_TOPICS: |
    {
      "general_off": "heating/system/general_off",
      "maintenance_mode": "heating/system/maintenance_mode",
      "status": "heating/system/status",
      "cmd": "heating/command/all"
    }
  STATUS_TOPIC: "heating/status"
  CONTEXT_TOPIC_PREFIX: "heating/context/"
  OFF_TEMPERATURE: "5.0"
  LOW_TEMPERATURE: "15.0"
  DEFAULT_HIGH_TEMPERATURE: "21.0"
  MAINTENANCE_TEMPERATURE: "30.0"
  BOXES: |
    {
      "patty": {
        "windows": { 
          "garden_right": { "topic": "homegear/instance1/plain/18/1/STATE", "label": "Garten rechts", "converter": "max" },
          "garden_left": { "topic": "homegear/instance1/plain/22/1/STATE", "label": "Garten links", "converter": "max" },
          "street": { "topic": "zigbee2mqtt/0x00158d000af457cf", "label": "Strasse", "converter": "aqara" }
        },
        "output_topic": "homegear/instance1/set/39/1/SET_TEMPERATURE",
        "output_converter": "max"
      },
      "kueche": {
        "windows": { 
          "garden_window": { "topic": "zigbee2mqtt/0x00158d008b332785", "label": "Garten Fenster", "converter": "aqara" },
          "garden_door": { "topic": "zigbee2mqtt/0x00158d008b332788", "label": "Garten Tuer", "converter": "aqara" },
          "street_right": { "topic": "zigbee2mqtt/0x00158d008b151803", "label": "Strasse rechts", "converter": "aqara" },
          "street_left": { "topic": "zigbee2mqtt/0x00158d008b331d0b", "label": "Strasse links", "converter": "aqara" }
        },
        "output_topic": "zigbee2mqtt/0x94deb8fffe2e5c06/set",
        "output_converter": "brennenstuhl"
      },
      "bad_oben": {
        "windows": { 
          "street": { "topic": "zigbee2mqtt/0x00158d008b333aec", "label": "Strasse links", "converter": "aqara" }
        },
        "output_topic": "homegear/instance1/set/41/1/SET_TEMPERATURE",
        "output_converter": "max"
      },
      "schlafzimmer": {
        "windows": { 
          "street": { "topic": "homegear/instance1/plain/52/1/STATE", "label": "Strasse", "converter": "max" }
        },
        "output_topic": "homegear/instance1/set/42/1/SET_TEMPERATURE",
        "output_converter": "max"
      },
      "wolfgang": {
        "windows": { 
          "garden": { "topic": "zigbee2mqtt/0x00158d008b3328da", "label": "Garten", "converter": "aqara" }
        },
        "output_topic": "zigbee2mqtt/0x540f57fffe7e3cfe/set",
        "output_converter": "brennenstuhl"
      },
      "esszimmer": {
        "windows": { 
          "street_right": { "topic": "homegear/instance1/plain/26/1/STATE", "label": "Strasse rechts", "converter": "max" },
          "street_left": { "topic": "homegear/instance1/plain/27/1/STATE", "label": "Strasse links", "converter": "max" }
        },
        "output_topic": "homegear/instance1/set/45/1/SET_TEMPERATURE",
        "output_converter": "max"
      },
      "wohnzimmer": {
        "windows": { 
          "garden_right": { "topic": "homegear/instance1/plain/28/1/STATE", "label": "Garten rechts", "converter": "max" },
          "garden_left": { "topic": "homegear/instance1/plain/29/1/STATE", "label": "Garten links", "converter": "max" }
        },
        "output_topic": "homegear/instance1/set/46/1/SET_TEMPERATURE",
        "output_converter": "max"
      },
      "bad_unten": {
        "windows": { 
          "street": { "topic": "homegear/instance1/plain/44/1/STATE", "label": "Strasse", "converter": "max" }
        },
        "output_topic": "homegear/instance1/set/48/1/SET_TEMPERATURE",
        "output_converter": "max"
      }
    }