new thermostat
This commit is contained in:
@ -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",
|
||||
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user