1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-09-29 20:04:13 +02:00

also fix Tcollector

This commit is contained in:
sjorsjuhmaniac 2021-04-04 21:53:20 +02:00
parent 3e79331885
commit 5107c3e3ab
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ typedef struct {
float Toutside = 0.0 ; // f8.8 Outside temperature (°C)
float Tret = 0.0 ; // f8.8 Return water temperature (°C)
float Tstorage = 0.0 ; // f8.8 Solar storage temperature (°C)
float Tcollector = 0.0 ; // f8.8 Solar collector temperature (°C)
int16_t Tcollector = 0.0 ; // s16 Solar collector temperature (°C)
float TflowCH2 = 0.0 ; // f8.8 Flow water temperature CH2 circuit (°C)
float Tdhw2 = 0.0 ; // f8.8 Domestic hot water temperature 2 (°C)
int16_t Texhaust = 0; // s16 Boiler exhaust temperature (°C)
@ -187,7 +187,7 @@ enum OpenThermMessageID {
OT_Toutside, // f8.8 Outside temperature (°C)
OT_Tret, // f8.8 Return water temperature (°C)
OT_Tstorage, // f8.8 Solar storage temperature (°C)
OT_Tcollector, // f8.8 Solar collector temperature (°C)
OT_Tcollector, // s16 Solar collector temperature (°C)
OT_TflowCH2, // f8.8 Flow water temperature CH2 circuit (°C)
OT_Tdhw2, // f8.8 Domestic hot water temperature 2 (°C)
OT_Texhaust, // s16 Boiler exhaust temperature (°C)
@ -291,7 +291,7 @@ enum OpenThermMessageID {
{ 27, OT_READ , ot_f88, "Toutside", "Outside temperature", "°C" },
{ 28, OT_READ , ot_f88, "Tret", "Return water temperature", "°C" },
{ 29, OT_READ , ot_f88, "Tstorage", "Solar storage temperature", "°C" },
{ 30, OT_READ , ot_f88, "Tcollector", "Solar collector temperature", "°C" },
{ 30, OT_READ , ot_s16, "Tcollector", "Solar collector temperature", "°C" },
{ 31, OT_READ , ot_f88, "TflowCH2", "Flow water temperature CH2 circuit", "°C" },
{ 32, OT_READ , ot_f88, "Tdhw2", "Domestic hot water temperature 2", "°C" },
{ 33, OT_READ , ot_s16, "Texhaust", "Boiler exhaust temperature", "°C" },

View File

@ -1017,7 +1017,7 @@ void processOTGW(const char *buf, int len){
case OT_Toutside: OTdataObject.Toutside = print_f88(); break;
case OT_Tret: OTdataObject.Tret = print_f88(); break;
case OT_Tstorage: OTdataObject.Tstorage = print_f88(); break;
case OT_Tcollector: OTdataObject.Tcollector = print_f88(); break;
case OT_Tcollector: OTdataObject.Tcollector = print_s16(); break;
case OT_TflowCH2: OTdataObject.TflowCH2 = print_f88(); break;
case OT_Tdhw2: OTdataObject.Tdhw2 = print_f88(); break;
case OT_Texhaust: OTdataObject.Texhaust = print_s16(); break;

View File

@ -76,7 +76,7 @@
%homeassistant%/sensor/%node_id%/Toutside/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Toutside", "device_class": "temperature", "name": "%hostname%_Outside_Temperature", "stat_t": "%mqtt_pub_topic%/Toutside", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Tret/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Tret", "device_class": "temperature", "name": "%hostname%_Return_water_temperature", "stat_t": "%mqtt_pub_topic%/Tret", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Tstorage/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Tstorage", "device_class": "temperature", "name": "%hostname%_Solar_storage_temperature", "stat_t": "%mqtt_pub_topic%/Tstorage", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Tcollector/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Tcollector", "device_class": "temperature", "name": "%hostname%_Solar_collector_temperature", "stat_t": "%mqtt_pub_topic%/Tcollector", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Tcollector/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Tcollector", "device_class": "temperature", "name": "%hostname%_Solar_collector_temperature", "stat_t": "%mqtt_pub_topic%/Tcollector", "unit_of_measurement": "°C", "value_template": "{{ value / 256 }}" }
%homeassistant%/sensor/%node_id%/TflowCH2/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-TflowCH2", "device_class": "temperature", "name": "%hostname%_Flow_water_temperature_CH2 cir.", "stat_t": "%mqtt_pub_topic%/TflowCH2", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Tdhw2/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Tdhw2", "device_class": "temperature", "name": "%hostname%_Domestic_hot_water_temperature_2", "stat_t": "%mqtt_pub_topic%/Tdhw2", "unit_of_measurement": "°C", "value_template": "{{ value }}" }
%homeassistant%/sensor/%node_id%/Texhaust/config , {"avty_t": "%mqtt_pub_topic%", "dev": {"identifiers": "%node_id%", "manufacturer": "Schelte Bron", "model": "otgw-nodo", "name": "OpenTherm Gateway (%hostname%)", "sw_version": "%version%"}, "uniq_id": "%node_id%-Texhaust", "device_class": "temperature", "name": "%hostname%_Boiler_exhaust_temperature", "stat_t": "%mqtt_pub_topic%/Texhaust", "unit_of_measurement": "°C", "value_template": "{{ value / 256 }}" }