changes
This commit is contained in:
parent
c502ce8f69
commit
21f49ae91b
10
Dockerfile
10
Dockerfile
@ -4,7 +4,9 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY src/requirements.txt .
|
COPY src/requirements.txt .
|
||||||
COPY src/main.py .
|
COPY src/main.py .
|
||||||
COPY src/message_processor.py .
|
COPY src/converters.py .
|
||||||
|
COPY src/config.py .
|
||||||
|
COPY src/box.py .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
addgroup -S appgroup && \
|
addgroup -S appgroup && \
|
||||||
@ -16,9 +18,9 @@ RUN \
|
|||||||
ENV MQTT_BROKER=""
|
ENV MQTT_BROKER=""
|
||||||
ENV MQTT_PORT=""
|
ENV MQTT_PORT=""
|
||||||
ENV MQTT_CLIENT_PREFIX=""
|
ENV MQTT_CLIENT_PREFIX=""
|
||||||
ENV MQTT_BOX_TOPIC_PREFIXES=""
|
ENV BOX_TOPIC_PREFIXES=""
|
||||||
ENV MQTT_CENTRAL_TOPICS=""
|
ENV CENTRAL_TOPICS=""
|
||||||
ENV MQTT_STATUS_TOPIC=""
|
ENV STATUS_TOPIC=""
|
||||||
ENV OFF_TEMPERATURE=""
|
ENV OFF_TEMPERATURE=""
|
||||||
ENV LOW_TEMPERATURE=""
|
ENV LOW_TEMPERATURE=""
|
||||||
ENV DEFAULT_HIGH_TEMPERATURE=""
|
ENV DEFAULT_HIGH_TEMPERATURE=""
|
||||||
|
@ -7,20 +7,20 @@ data:
|
|||||||
MQTT_BROKER: "emqx01-anonymous-cluster-internal.broker.svc.cluster.local"
|
MQTT_BROKER: "emqx01-anonymous-cluster-internal.broker.svc.cluster.local"
|
||||||
MQTT_PORT: "1883"
|
MQTT_PORT: "1883"
|
||||||
MQTT_CLIENT_PREFIX: "HeatingController"
|
MQTT_CLIENT_PREFIX: "HeatingController"
|
||||||
MQTT_BOX_TOPIC_PREFIXES: |
|
BOX_TOPIC_PREFIXES: |
|
||||||
{
|
{
|
||||||
"high_temp": "heating/config/high_temp/",
|
"high_temp": "heating/config/high_temp/",
|
||||||
"overwrite_window": "heating/overwrite_window/",
|
"overwrite_window": "heating/overwrite_window/",
|
||||||
"cmd": "heating/command/"
|
"cmd": "heating/command/"
|
||||||
}
|
}
|
||||||
MQTT_CENTRAL_TOPICS: |
|
CENTRAL_TOPICS: |
|
||||||
{
|
{
|
||||||
"general_off": "heating/system/general_off",
|
"general_off": "heating/system/general_off",
|
||||||
"maintenance_mode": "heating/system/maintenance_mode",
|
"maintenance_mode": "heating/system/maintenance_mode",
|
||||||
"status": "heating/system/status"
|
"status": "heating/system/status"
|
||||||
}
|
}
|
||||||
MQTT_STATUS_TOPIC: "heating/status"
|
STATUS_TOPIC: "heating/status"
|
||||||
MQTT_CONTEXT_TOPIC_PREFIX: "heating/context/"
|
CONTEXT_TOPIC_PREFIX: "heating/context/"
|
||||||
OFF_TEMPERATURE: "5.0"
|
OFF_TEMPERATURE: "5.0"
|
||||||
LOW_TEMPERATURE: "15.0"
|
LOW_TEMPERATURE: "15.0"
|
||||||
DEFAULT_HIGH_TEMPERATURE: "21.0"
|
DEFAULT_HIGH_TEMPERATURE: "21.0"
|
||||||
@ -28,71 +28,63 @@ data:
|
|||||||
BOXES: |
|
BOXES: |
|
||||||
{
|
{
|
||||||
"patty": {
|
"patty": {
|
||||||
"label": "patty",
|
"windows": {
|
||||||
"windows": [
|
"garden_right": { "topic": "homegear/instance1/plain/18/1/STATE", "label": "Garten rechts", "converter": "max" },
|
||||||
{ "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" }
|
||||||
{ "topic": "homegear/instance1/plain/22/1/STATE", "label": "Garten links", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/39/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/39/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"kueche": {
|
"kueche": {
|
||||||
"label": "kueche",
|
"windows": {
|
||||||
"windows": [
|
"garden_window": { "topic": "homegear/instance1/plain/37/1/STATE", "label": "Garten Fenster", "converter": "max" },
|
||||||
{ "topic": "homegear/instance1/plain/37/1/STATE", "label": "Garten Fenster", "converter": "max" },
|
"garden_door": { "topic": "homegear/instance1/plain/36/1/STATE", "label": "Garten Tuer", "converter": "max" },
|
||||||
{ "topic": "homegear/instance1/plain/36/1/STATE", "label": "Garten Tuer", "converter": "max" },
|
"street_right": { "topic": "homegear/instance1/plain/38/1/STATE", "label": "Strasse rechts", "converter": "max" },
|
||||||
{ "topic": "homegear/instance1/plain/38/1/STATE", "label": "Strasse rechts", "converter": "max" },
|
"street_left": { "topic": "homegear/instance1/plain/13/1/STATE", "label": "Strasse links", "converter": "max" }
|
||||||
{ "topic": "homegear/instance1/plain/13/1/STATE", "label": "Strasse links", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/40/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/40/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"bad_oben": {
|
"bad_oben": {
|
||||||
"label": "bad_oben",
|
"windows": {
|
||||||
"windows": [
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/41/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/41/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"schlafzimmer": {
|
"schlafzimmer": {
|
||||||
"label": "schlafzimmer",
|
"windows": {
|
||||||
"windows": [
|
"street": { "topic": "homegear/instance1/plain/52/1/STATE", "label": "Strasse", "converter": "max" }
|
||||||
{ "topic": "homegear/instance1/plain/52/1/STATE", "label": "Strasse", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/42/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/42/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"wolfgang": {
|
"wolfgang": {
|
||||||
"label": "wolfgang",
|
"windows": {
|
||||||
"windows": [
|
"garden": { "topic": "zigbee2mqtt/0x00158d008b3328da", "label": "Garten", "converter": "aqara" }
|
||||||
{ "topic": "zigbee2mqtt/0x00158d008b3328da", "label": "Garten", "converter": "aqara" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "zigbee2mqtt/0x540f57fffe7e3cfe/set",
|
"output_topic": "zigbee2mqtt/0x540f57fffe7e3cfe/set",
|
||||||
"output_converter": "brennenstuhl"
|
"output_converter": "brennenstuhl"
|
||||||
},
|
},
|
||||||
"esszimmer": {
|
"esszimmer": {
|
||||||
"label": "esszimmer",
|
"windows": {
|
||||||
"windows": [
|
"street_right": { "topic": "homegear/instance1/plain/26/1/STATE", "label": "Strasse rechts", "converter": "max" },
|
||||||
{ "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" }
|
||||||
{ "topic": "homegear/instance1/plain/27/1/STATE", "label": "Strasse links", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/45/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/45/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"wohnzimmer": {
|
"wohnzimmer": {
|
||||||
"label": "wohnzimmer",
|
"windows": {
|
||||||
"windows": [
|
"garden_right": { "topic": "homegear/instance1/plain/28/1/STATE", "label": "Garten rechts", "converter": "max" },
|
||||||
{ "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" }
|
||||||
{ "topic": "homegear/instance1/plain/29/1/STATE", "label": "Garten links", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/46/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/46/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
},
|
},
|
||||||
"bad_unten": {
|
"bad_unten": {
|
||||||
"label": "bad_unten",
|
"windows": }
|
||||||
"windows": [
|
"street": { "topic": "homegear/instance1/plain/44/1/STATE", "label": "Strasse", "converter": "max" }
|
||||||
{ "topic": "homegear/instance1/plain/44/1/STATE", "label": "Strasse", "converter": "max" }
|
},
|
||||||
],
|
|
||||||
"output_topic": "heating/homegear/instance1/set/48/1/SET_TEMPERATURE",
|
"output_topic": "heating/homegear/instance1/set/48/1/SET_TEMPERATURE",
|
||||||
"output_converter": "max"
|
"output_converter": "max"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user