Skip to content

Commit

Permalink
Merge pull request #60 from echavet:echavet/issue56
Browse files Browse the repository at this point in the history
Logger spam if unable to connect to the heatpump
  • Loading branch information
echavet authored Mar 12, 2024
2 parents ee9b393 + 1507954 commit c5888de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ hp-preflash.yml
hp-seb.yaml
secrets.yaml
components/.DS_Store
esp01-clim.yaml
esp32-clim-chambres.yaml
hp-sejour.yaml
6 changes: 3 additions & 3 deletions components/cn105/hp_writings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ void CN105Climate::writePacket(uint8_t* packet, int length, bool checkIsActive)

} else {
ESP_LOGW(TAG, "could not write as asked, because UART is not connected");
this->disconnectUART();
this->setupUART();
this->sendFirstConnectionPacket();
// this->disconnectUART();
// this->setupUART();
// this->sendFirstConnectionPacket();

ESP_LOGW(TAG, "delaying packet writing because we need to reconnect first...");
this->set_timeout("write", 500, [this, packet, length]() { this->writePacket(packet, length); });
Expand Down
10 changes: 5 additions & 5 deletions hp-sejour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ esp8266:



# mqtt:
# broker: homeassistant.local
# username: heatpumpSejour
# password: !secret mqtt_password
# discovery: true
mqtt:
broker: home-io.local
username: heatpumpSejour
password: !secret mqtt_password
discovery: true



Expand Down

0 comments on commit c5888de

Please sign in to comment.