2 Commits

Author SHA1 Message Date
67ca83983b new thermostat
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-11-12 18:03:46 +01:00
ad0b2a5d99 fix config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-11-12 12:37:18 +01:00
2 changed files with 5 additions and 4 deletions

View File

@ -65,10 +65,10 @@ data:
"wolfgang": { "wolfgang": {
"label": "wolfgang", "label": "wolfgang",
"windows": [ "windows": [
{ "topic": "homegear/instance1/plain/24/1/STATE", "label": "Garten", "converter": "aqara" } { "topic": "zigbee2mqtt/0x00158d008b3328da", "label": "Garten", "converter": "aqara" }
], ],
"output_topic": "heating/homegear/instance1/set/43/1/SET_TEMPERATURE", "output_topic": "zigbee2mqtt/0x540f57fffe7e3cfe/set",
"output_converter": "max" "output_converter": "brennenstuhl"
}, },
"esszimmer": { "esszimmer": {
"label": "esszimmer", "label": "esszimmer",

View File

@ -6,10 +6,11 @@ import json
CONVERTERS = { CONVERTERS = {
"target_temperature_output": { "target_temperature_output": {
"max": lambda x: x["output_temperature"], "max": lambda x: x["output_temperature"],
"brennenstuhl": lambda x: json.dumps({"current_heating_setpoint":x["output_temperature"]}),
}, },
"window_contact_input": { "window_contact_input": {
"max": lambda x: 'closed' if (x.lower() in ('false', 'close', 'closed')) else 'open', "max": lambda x: 'closed' if (x.lower() in ('false', 'close', 'closed')) else 'open',
"aqara": lambda x: 'closed' if json.loads(x)["contact"] else 'open' "aqara": lambda x: 'closed' if json.loads(x)["contact"] else 'open',
} }
} }