mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 10:44:29 +05:00
90 lines
1.7 KiB
C
90 lines
1.7 KiB
C
struct Settings {
|
|
bool debug = false;
|
|
// 0 - boiler, 1 - manual, 2 - ds18b20
|
|
byte outdoorTempSource = 0;
|
|
char hostname[80] = "opentherm";
|
|
|
|
struct {
|
|
char server[80];
|
|
int port = 1883;
|
|
char user[32];
|
|
char password[32];
|
|
char prefix[80] = "opentherm";
|
|
unsigned int interval = 5000;
|
|
} mqtt;
|
|
|
|
struct {
|
|
bool enable = true;
|
|
float target = 40.0f;
|
|
bool useEquitherm = false;
|
|
} emergency;
|
|
|
|
struct {
|
|
bool enable = true;
|
|
float target = 40.0f;
|
|
float hysteresis = 0.5f;
|
|
} heating;
|
|
|
|
struct {
|
|
bool enable = true;
|
|
byte target = 40;
|
|
} dhw;
|
|
|
|
struct {
|
|
bool enable = false;
|
|
float p_factor = 3;
|
|
float i_factor = 0.2f;
|
|
float d_factor = 0;
|
|
} pid;
|
|
|
|
struct {
|
|
bool enable = false;
|
|
float n_factor = 0.67f;
|
|
float k_factor = 1.0f;
|
|
float t_factor = 0.0f;
|
|
} equitherm;
|
|
|
|
} settings;
|
|
|
|
struct Variables {
|
|
struct {
|
|
bool enable = false;
|
|
byte regulator = 0;
|
|
} tuning;
|
|
|
|
struct {
|
|
bool otStatus = false;
|
|
bool emergency = false;
|
|
bool heating = false;
|
|
bool dhw = false;
|
|
bool flame = false;
|
|
bool fault = false;
|
|
bool diagnostic = false;
|
|
byte faultCode = 0;
|
|
} states;
|
|
|
|
struct {
|
|
float modulation = 0.0f;
|
|
float pressure = 0.0f;
|
|
} sensors;
|
|
|
|
struct {
|
|
float indoor = 0.0f;
|
|
float outdoor = 0.0f;
|
|
float heating = 0.0f;
|
|
float dhw = 0.0f;
|
|
} temperatures;
|
|
|
|
struct {
|
|
byte heatingMinTemp = 20;
|
|
byte heatingMaxTemp = 90;
|
|
byte heatingSetpoint = 0.0f;
|
|
byte dhwMinTemp = 30;
|
|
byte dhwMaxTemp = 60;
|
|
uint8_t slaveMemberIdCode;
|
|
uint8_t slaveType;
|
|
uint8_t slaveVersion;
|
|
uint8_t masterType;
|
|
uint8_t masterVersion;
|
|
} parameters;
|
|
} vars; |