arthurrump / esphome-opentherm

Create your own smart modulating thermostat using the OpenTherm component for ESPHome
BSD 2-Clause "Simplified" License
69 stars 37 forks source link

DIYLESS shield and temperature sensor #31

Open antonioste opened 6 months ago

antonioste commented 6 months ago

Hi, I'm use DIYLESS master shield. This shield have a temperature sensor connect to pin 14. How I can set it in yaml instead of HA sensor?

thanks

timdiels commented 5 months ago

Edit: My bad, misread your question, I don't use the DIYLESS bluetooth temperature sensor, or are you saying there's also another temp sensor directly connected on pin 14?

This is what I use for DIYLESS:

esp32:
  board: wemos_d1_mini32
  framework:
    type: arduino

opentherm:
  # The pin numbers I found in the diyless thermostat shield source code
  in_pin: 21
  out_pin: 22

# And you'll want to point to this fork instead as this repo is pretty much unmaintained and no longer works
esphome:
  name: boiler  # HA device id
  friendly_name: Boiler
  platformio_options:
    lib_deps:  # required by freebear-nc/esphome-opentherm
      - https://github.com/freebear-nc/opentherm_library.git

external_components:
  - source: github://freebear-nc/esphome-opentherm

...
timdiels commented 5 months ago

You probably already found this, but I would dig around in the ino to find out what it is exactly and configure the equivalent of that as a component in esphome, give it an id and then point opentherm to that id.