wichers / esphome-opentherm

Port of OpenTherm protocol to ESPHome.io firmware.
39 stars 16 forks source link

how can i change this for an esp8266 #9

Open hooijschuur opened 1 year ago

hooijschuur commented 1 year ago

i would like to use this with an esp8266 how can i change the code for that

hooijschuur commented 1 year ago

which esphome version do i have to choose i get compile errors ,also with the unaltered version

hooijschuur commented 1 year ago

Thank you for the quick response tried the code but for the new esphome i have to use the piio fork. and it worked thanks again

Op vr 6 jan. 2023 om 13:47 schreef wtschth @.***>:

Change opentherm.yaml, i assume you use a diyless opentherm board in that case a d1_mini

platform: ESP8266 board: d1_mini

Change new esp32::ArduinoInternalGPIOPin(); To new esphome::esp8266::ESP8266GPIOPin();

And set the right pins

climate:

  • platform: custom lambda: |- auto thermostat_in = new esphome::esp8266::ESP8266GPIOPin(); thermostat_in->set_pin(22); thermostat_in->pin_mode(gpio::FLAG_INPUT); auto thermostat_out = new esphome::esp8266::ESP8266GPIOPin(); thermostat_out->set_pin(21); thermostat_out->pin_mode(gpio::FLAG_OUTPUT); auto boiler_in = new esphome::esp8266::ESP8266GPIOPin(); boiler_in->set_pin(23); boiler_in->pin_mode(gpio::FLAG_INPUT); auto boiler_out = new esphome::esp8266::ESP8266GPIOPin(); boiler_out->set_pin(19);

— Reply to this email directly, view it on GitHub https://github.com/wichers/esphome-opentherm/issues/9#issuecomment-1373579702, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJR7TRZDBDK36RFGI63PPDWRAH7PANCNFSM6AAAAAATSPWHCY . You are receiving this because you authored the thread.Message ID: @.***>

aeryomenko commented 1 year ago

@hooijschuur there was one more issue for me with pins setup for D1 mini ESP8266 module. You can refer to PR #10

hooijschuur commented 1 year ago

Hoi thanks tried it but i do not get any data. when i use tasmota with opentherm i get set and view temps flame etc. but only for the boiler

aeryomenko commented 1 year ago

The sample config file for esp8266 works in my case: d1 mini board + opentherm slave/master shields from diyless.com. You can try to uncomment lines with debug output in processRequest/processResponse procedures. This can help with troubleshooting.

straaat commented 1 year ago

I got this to work on a D1 mini. Tried a S2 mini (ESP32-S2) before but that did not work for some reason.