refactored
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2024-11-18 14:17:31 +01:00
parent 67ca83983b
commit f0b4017166
6 changed files with 211 additions and 281 deletions

47
env
View File

@ -1,36 +1,37 @@
export MQTT_BROKER="172.23.1.102"
export MQTT_PORT=1883
export MQTT_CLIENT_PREFIX="MyMQTTClient"
export MQTT_BOX_TOPIC_PREFIXES='{
"high_temp": "heating/config/high_temp/",
"cmd": "heating/command/"
export BOX_TOPIC_PREFIXES='{
"high_temp": "xheating/config/high_temp/",
"cmd": "xheating/command/"
}'
export MQTT_CENTRAL_TOPICS='{
"general_off": "heating/system/general_off",
"maintenance_mode": "heating/system/maintenance_mode",
"status": "heating/system/status"
export CENTRAL_TOPICS='{
"general_off": "xheating/system/general_off",
"maintenance_mode": "xheating/system/maintenance_mode",
"status": "xheating/system/status"
}'
export MQTT_STATUS_TOPIC="heating/status"
export CONTEXT_TOPIC_PREFIX='xheating/context/'
export STATUS_TOPIC="heating/status"
export OFF_TEMPERATURE="5.0"
export LOW_TEMPERATURE="15.0"
export DEFAULT_HIGH_TEMPERATURE="21.0"
export MAINTENANCE_TEMPERATURE="30.0"
export BOXES='{
"box1": {
"label": "living_room",
"windows": [
{ "topic": "window/living_room/street_side", "label": "street_side" },
{ "topic": "window/living_room/garden_side", "label": "garden_side" }
],
"output_topic": "output/living_room"
"living_room": {
"windows": {
"street_side": { "topic": "window/living_room/street_side", "converter": "max" },
"garden_side": { "topic": "window/living_room/garden_side", "converter": "max" }
},
"output_converter": "max",
"output_topic": "xoutput/living_room"
},
"box2": {
"label": "kitchen",
"windows": [
{ "topic": "window/kitchen/street_side", "label": "street_side" },
{ "topic": "window/kitchen/garden_side", "label": "garden_side" },
{ "topic": "window/kitchen/garden_door", "label": "garden_door" }
],
"output_topic": "output/kitchen"
"kitchen": {
"windows": {
"street_side": { "topic": "window/kitchen/street_side", "converter": "max" },
"garden_side": { "topic": "window/kitchen/garden_side", "converter": "max" },
"garden_door": { "topic": "window/kitchen/garden_door", "converter": "max" }
},
"output_converter": "max",
"output_topic": "xoutput/kitchen"
}
}'