new thermostat
This commit is contained in:
@ -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