new thermostat
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-11-12 18:03:46 +01:00
parent ad0b2a5d99
commit 67ca83983b
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -6,10 +6,11 @@ import json
CONVERTERS = {
"target_temperature_output": {
"max": lambda x: x["output_temperature"],
"brennenstuhl": lambda x: json.dumps({"current_heating_setpoint":x["output_temperature"]}),
},
"window_contact_input": {
"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',
}
}