phha / vitowifi_esphome

An esphome custom component for Viessmann heaters
MIT License
8 stars 3 forks source link

ESP8266 #1

Open BornTKill opened 4 years ago

BornTKill commented 4 years ago

Dear,

Following my previous message https://gist.github.com/phha/f9a17811b2256a28d9a00b11680b3b5d, I upload the firmware in my nodemcu v2 but have to adapt this :

Comment out in optolink.h RX2 and TX2 pin definition and replace VitoWifi.setup(&Serial2, RX2,TX2) with VitoWifi.setup(&Serial) (upload failed before)

I have changed VitoWiFi_setProtocol(KW) to VitoWiFi_setProtocol(P300) because I have a vitodens 200 with vitotronic 200.

What is you heater model ? How can I debug because I have no log through esphome dashboard.

INFO Reading configuration config/viessman.yaml... INFO Starting log output from viessman.local using esphome API INFO Connecting to viessman.local:6053 (192.168.0.37) INFO Successfully connected to viessman.local [14:01:52][I][app:100]: ESPHome version 1.14.4 compiled on Jun 25 2020, 13:47:07

[14:01:52][C][wifi:283]: SSID: 'Borny_G6K_WiFi'[redacted] [14:01:52][C][wifi:284]: IP Address: 192.168.0.37 [14:01:52][C][wifi:286]: BSSID: 70:56:81:CB:25:83[redacted]

b'[14:01:52][C][wifi:291]: Signal strength: -78 dB \xe2\x96\x82\xe2\x96\x84\xe2\x96\x86\xe2\x96\x88\' [14:01:52][C][wifi:295]: Channel: 1 [14:01:52][C][wifi:296]: Subnet: 255.255.255.0 [14:01:52][C][wifi:297]: Gateway: 192.168.0.254 [14:01:52][C][wifi:298]: DNS1: 192.168.0.101

[14:01:52][C][logger:176]: Level: DEBUG [14:01:52][C][logger:177]: Log Baud Rate: 115200 [14:01:52][C][logger:178]: Hardware UART: UART0 [14:01:52][C][captive_portal:169]: Captive Portal: [14:01:52][C][ota:029]: Over-The-Air Updates: [14:01:52](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [14:01:52](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [14:01:52](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)

Thank you again.

deviant-aut commented 3 years ago

I also Tried to get this running on esp8266 with the KW protocol. I wasnt successful... How can I get the logger to use ESP_LOGD?

Any help wouldbbe appreciated.

Bojkas1985 commented 2 years ago

Hi, did it manage to run on esp8266? I commented on RX and TX, replaced VitoWifi.setup (& Serial2, RX2, TX2) with VitoWifi.setup (& Serial) and changed the protocol to P300, but it gives me an error. I work on the original code, but I would like to get it via ESPhome.

Thank you Ivica

Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1.html PLATFORM: Espressif 8266 (2.6.2) > WEMOS D1 R1 HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

HaJoHe commented 2 years ago

Hi, it runs here on a NodeMCU without troubles. I do all stuff with esphome dashboard 2021.10.0b2 running in a podman container on a BananaPI.

esphome: name: ${device} platform: ESP8266 board: nodemcuv2 includes:

logger: hardware_uart: UART1 #maybe it's a good idea, not to run logger and the interface on the same interface

Bojkas1985 commented 2 years ago

Dear @HaJoHe can you share your code viessmann.yaml and optolink.h? I'm so screwed. I don't know how to see my previous post with the problem src\optolink\optolink.h:160:3: error: 'VitoWifi' was not declared in this scope VitoWifi.setup(&Serial);

HaJoHe commented 2 years ago

Hello, please find my files enclosed.... Good luck

files.zip