diff --git a/components/daikin_rotex_can/texts.cpp b/components/daikin_rotex_can/texts.cpp index d00e2fb..3efaaa3 100644 --- a/components/daikin_rotex_can/texts.cpp +++ b/components/daikin_rotex_can/texts.cpp @@ -3,11 +3,19 @@ namespace esphome { namespace daikin_rotex_can { +LogFilterText::LogFilterText() { + this->publish_state(""); +} + void LogFilterText::control(const std::string &value) { this->publish_state(value); Utils::g_log_filter = value; } +CustomRequestText::CustomRequestText() { + this->publish_state(""); +} + void CustomRequestText::control(const std::string &value) { this->publish_state(value); this->parent_->custom_request(value); diff --git a/components/daikin_rotex_can/texts.h b/components/daikin_rotex_can/texts.h index 61fa0f2..83499dc 100644 --- a/components/daikin_rotex_can/texts.h +++ b/components/daikin_rotex_can/texts.h @@ -8,13 +8,13 @@ namespace daikin_rotex_can { class LogFilterText : public text::Text, public Parented { public: - LogFilterText() = default; + LogFilterText(); protected: void control(const std::string &value) override; }; class CustomRequestText : public text::Text, public Parented { public: - CustomRequestText() = default; + CustomRequestText(); protected: void control(const std::string &value) override; }; diff --git a/examples/full.yaml b/examples/full.yaml index e77f12a..bdfc80c 100644 --- a/examples/full.yaml +++ b/examples/full.yaml @@ -4,10 +4,9 @@ esphome: platformio_options: build_unflags: - "-std=gnu++11" - - "-fno-exceptions" + - "-fno-rtti" build_flags: - "-std=gnu++17" - - "-fexceptions" esp32: board: esp32-s3-devkitc-1 @@ -52,6 +51,8 @@ daikin_rotex_can: canbus_id: can_bus log_filter: name: "Log Filter" + custom_request: + name: "Custom Request" entities: bypass_valve: name: "BPV" @@ -134,4 +135,4 @@ daikin_rotex_can: thermal_power: name: "Thermische Leistung" total_energy_produced: - name: "Erzeugte Energie Gesamt" \ No newline at end of file + name: "Erzeugte Energie Gesamt"