hass improvements

This commit is contained in:
Ingolf Wagner 2020-12-20 01:33:24 +01:00
parent e885cdffd9
commit 5b2062f912
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 20 additions and 11 deletions

View file

@ -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
}}'';
};
};
heater_off = heater: {
service = "mqtt.publish";
data_template = {
topic = "zigbee2mqtt/${heater}/set"; # office
payload_template = ''{"system_mode":"off"}'';
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"}'';
# };
#};
hot = 22;
cold = 14;

View file

@ -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);
};