hass improvements
This commit is contained in:
parent
e885cdffd9
commit
5b2062f912
2 changed files with 20 additions and 11 deletions
|
@ -414,19 +414,20 @@ in {
|
|||
service = "mqtt.publish";
|
||||
data_template = {
|
||||
topic = "zigbee2mqtt/${heater}/set"; # office
|
||||
payload_template = ''
|
||||
{"system_mode":"auto","current_heating_setpoint":${
|
||||
toString temperatur
|
||||
}}'';
|
||||
payload_template = builtins.toJSON {
|
||||
system_mode = "auto";
|
||||
current_heating_setpoint = toString temperatur;
|
||||
eurotronic_host_flags.window_open = false;
|
||||
};
|
||||
};
|
||||
heater_off = heater: {
|
||||
service = "mqtt.publish";
|
||||
data_template = {
|
||||
topic = "zigbee2mqtt/${heater}/set"; # office
|
||||
payload_template = ''{"system_mode":"off"}'';
|
||||
};
|
||||
};
|
||||
#heater_off = heater: {
|
||||
# service = "mqtt.publish";
|
||||
# data_template = {
|
||||
# topic = "zigbee2mqtt/${heater}/set"; # office
|
||||
# payload_template = ''{"system_mode":"off"}'';
|
||||
# };
|
||||
#};
|
||||
|
||||
hot = 22;
|
||||
cold = 14;
|
||||
|
|
|
@ -64,6 +64,14 @@ in {
|
|||
device_class = "temperature";
|
||||
value_template = "{{ value_json.local_temperature }}";
|
||||
}
|
||||
{
|
||||
platform = "mqtt";
|
||||
name = "pi_heating_demand_${name}";
|
||||
state_topic = "zigbee2mqtt/${name}";
|
||||
availability_topic = "zigbee2mqtt/bridge/state";
|
||||
unit_of_measurement = "%";
|
||||
value_template = "{{ value_json.pi_heating_demand }}";
|
||||
}
|
||||
]) allDevices);
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue