feat: added more OT polled IDs & reformat code

* ID79 - exhaust CO2
* ID84 - exhaust fan speed
* ID85 - supply fan speed
* ID29 - solar storage temp
* ID30 - solar collector temp
* ID35 - boiler fan speed setpoint & actual
This commit is contained in:
Yurii
2024-11-14 23:02:46 +03:00
parent 34eabca64a
commit 0d71a674b6
8 changed files with 582 additions and 248 deletions

View File

@@ -215,7 +215,7 @@ Sensors::Settings sensorsSettings[SENSORS_AMOUNT] = {
{
true,
"Power",
Sensors::Purpose::CURRENT_POWER,
Sensors::Purpose::POWER,
Sensors::Type::OT_CURRENT_POWER,
}
};
@@ -288,7 +288,6 @@ struct Variables {
bool connected = false;
bool flame = false;
float pressure = 0.0f;
float exhaustTemp = 0.0f;
float heatExchangerTemp = 0.0f;
struct {
@@ -313,6 +312,23 @@ struct Variables {
float max = 0.0f;
} power;
struct {
float temp = 0.0f;
uint16_t co2 = 0;
uint16_t fanSpeed = 0;
} exhaust;
struct {
float storage = 0.0f;
float collector = 0.0f;
} solar;
struct {
uint8_t setpoint = 0;
uint8_t current = 0;
uint16_t supply = 0;
} fanSpeed;
struct {
bool active = false;
bool enabled = false;