rsciriano / ESPHome-OpenTherm

Example of how to control an opentherm boiler with esphome
156 stars 44 forks source link

Use `id(opentherm)` to refer to custom component in example YAML #33

Closed gmta closed 1 year ago

gmta commented 1 year ago

Usage of id() for custom components is also referenced here: https://esphome.io/custom/custom_component.html

The firmware would crash for me if I directly referenced opentherm, since the switch would get initialized earlier than the custom component causing a nullptr dereference.