change show_info to read of json, updates to use HA MQTT Discovery

This commit is contained in:
proddy
2020-10-03 16:34:06 +02:00
parent 7020b41f55
commit eb98caa87a
9 changed files with 744 additions and 460 deletions

View File

@@ -107,7 +107,8 @@ class Thermostat : public EMSdevice {
static uuid::log::Logger logger_;
void add_commands();
bool export_values(uint8_t mqtt_format, JsonObject & doc);
bool export_values_main(JsonObject & doc);
bool export_values_hc(uint8_t mqtt_format, JsonObject & doc);
// specific thermostat characteristics, stripping the option bits at pos 6 and 7
inline uint8_t model() const {
@@ -122,7 +123,7 @@ class Thermostat : public EMSdevice {
std::string datetime_; // date and time stamp
bool changed_ = false;
bool changed_ = false;
// Installation parameters
uint8_t ibaMainDisplay_ =