mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
move HA climate to mqtt
This commit is contained in:
@@ -96,14 +96,6 @@ class Thermostat : public EMSdevice {
|
||||
return Helpers::hasValue(selTemp);
|
||||
}
|
||||
|
||||
bool ha_climate_created() {
|
||||
return ha_climate_created_;
|
||||
}
|
||||
|
||||
void ha_climate_created(bool ha_climate_created) {
|
||||
ha_climate_created_ = ha_climate_created;
|
||||
}
|
||||
|
||||
uint8_t get_mode() const;
|
||||
uint8_t get_mode_type() const;
|
||||
|
||||
@@ -142,7 +134,6 @@ class Thermostat : public EMSdevice {
|
||||
private:
|
||||
uint8_t hc_num_; // heating circuit number 1..10
|
||||
uint8_t model_; // the model type
|
||||
bool ha_climate_created_; // if we need to create the HA climate control
|
||||
};
|
||||
|
||||
static std::string mode_tostring(uint8_t mode);
|
||||
@@ -298,12 +289,8 @@ class Thermostat : public EMSdevice {
|
||||
std::shared_ptr<Thermostat::HeatingCircuit> heating_circuit(std::shared_ptr<const Telegram> telegram);
|
||||
std::shared_ptr<Thermostat::HeatingCircuit> heating_circuit(const uint8_t hc_num);
|
||||
|
||||
void publish_ha_config_hc(std::shared_ptr<Thermostat::HeatingCircuit> hc);
|
||||
void register_device_values_hc(std::shared_ptr<Thermostat::HeatingCircuit> hc);
|
||||
|
||||
bool thermostat_ha_cmd(const char * message, uint8_t hc_num);
|
||||
void add_ha_climate(std::shared_ptr<HeatingCircuit> hc);
|
||||
|
||||
void process_RCOutdoorTemp(std::shared_ptr<const Telegram> telegram);
|
||||
void process_IBASettings(std::shared_ptr<const Telegram> telegram);
|
||||
void process_RCTime(std::shared_ptr<const Telegram> telegram);
|
||||
|
||||
Reference in New Issue
Block a user