mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
auto formatting
This commit is contained in:
@@ -143,11 +143,11 @@ void Boiler::register_mqtt_ha_config() {
|
|||||||
// create the config topics for Home Assistant MQTT Discovery
|
// create the config topics for Home Assistant MQTT Discovery
|
||||||
// for each of the ww elements
|
// for each of the ww elements
|
||||||
void Boiler::register_mqtt_ha_config_ww() {
|
void Boiler::register_mqtt_ha_config_ww() {
|
||||||
|
|
||||||
if (!Mqtt::connected()) {
|
if (!Mqtt::connected()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// ww
|
|
||||||
|
// ww
|
||||||
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWSelTemp), this->device_type(), "wWSelTemp", F_(degrees), F_(iconcruise));
|
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWSelTemp), this->device_type(), "wWSelTemp", F_(degrees), F_(iconcruise));
|
||||||
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWSetTemp), this->device_type(), "wWSetTemp", F_(degrees), F_(icontemperature));
|
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWSetTemp), this->device_type(), "wWSetTemp", F_(degrees), F_(icontemperature));
|
||||||
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWDisinfectionTemp), this->device_type(), "wWDisinfectionTemp", F_(degrees), F_(icontemperature));
|
Mqtt::register_mqtt_ha_sensor(nullptr, F_(mqtt_suffix_ww), F_(wWDisinfectionTemp), this->device_type(), "wWDisinfectionTemp", F_(degrees), F_(icontemperature));
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ void Mixer::device_info_web(JsonArray & root) {
|
|||||||
|
|
||||||
// fetch the values into a JSON document
|
// fetch the values into a JSON document
|
||||||
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc;
|
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc;
|
||||||
JsonObject json = doc.to<JsonObject>();
|
JsonObject json = doc.to<JsonObject>();
|
||||||
|
|
||||||
if (!export_values_format(Mqtt::Format::SINGLE, json)) {
|
if (!export_values_format(Mqtt::Format::SINGLE, json)) {
|
||||||
return; // empty
|
return; // empty
|
||||||
}
|
}
|
||||||
@@ -102,7 +103,8 @@ void Mixer::show_values(uuid::console::Shell & shell) {
|
|||||||
|
|
||||||
// fetch the values into a JSON document
|
// fetch the values into a JSON document
|
||||||
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc;
|
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc;
|
||||||
JsonObject json = doc.to<JsonObject>();
|
JsonObject json = doc.to<JsonObject>();
|
||||||
|
|
||||||
if (!export_values_format(Mqtt::Format::SINGLE, json)) {
|
if (!export_values_format(Mqtt::Format::SINGLE, json)) {
|
||||||
return; // empty
|
return; // empty
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,26 @@ class Thermostat : public EMSdevice {
|
|||||||
uint8_t get_mode(uint8_t flags) const;
|
uint8_t get_mode(uint8_t flags) const;
|
||||||
uint8_t get_mode_type(uint8_t flags) const;
|
uint8_t get_mode_type(uint8_t flags) const;
|
||||||
|
|
||||||
enum Mode : uint8_t { UNKNOWN, OFF, MANUAL, AUTO, DAY, NIGHT, HEAT, NOFROST, ECO, HOLIDAY, COMFORT, OFFSET, DESIGN, SUMMER, FLOWOFFSET, MINFLOW, MAXFLOW, ROOMINFLUENCE };
|
enum Mode : uint8_t {
|
||||||
|
UNKNOWN,
|
||||||
|
OFF,
|
||||||
|
MANUAL,
|
||||||
|
AUTO,
|
||||||
|
DAY,
|
||||||
|
NIGHT,
|
||||||
|
HEAT,
|
||||||
|
NOFROST,
|
||||||
|
ECO,
|
||||||
|
HOLIDAY,
|
||||||
|
COMFORT,
|
||||||
|
OFFSET,
|
||||||
|
DESIGN,
|
||||||
|
SUMMER,
|
||||||
|
FLOWOFFSET,
|
||||||
|
MINFLOW,
|
||||||
|
MAXFLOW,
|
||||||
|
ROOMINFLUENCE
|
||||||
|
};
|
||||||
|
|
||||||
// for sorting based on hc number
|
// for sorting based on hc number
|
||||||
friend inline bool operator<(const std::shared_ptr<HeatingCircuit> & lhs, const std::shared_ptr<HeatingCircuit> & rhs) {
|
friend inline bool operator<(const std::shared_ptr<HeatingCircuit> & lhs, const std::shared_ptr<HeatingCircuit> & rhs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user