khenderick / esphome-opentherm

OpenTherm support for ESPHome
MIT License
14 stars 4 forks source link

Plase add botton to send BLOR command #14

Closed skoblov closed 9 months ago

skoblov commented 9 months ago

BAXI bowlers neet BLOR comand to reset an error

Now I use template button with lambda, but it need to remove private: section from your header. It's better to include this button to component

khenderick commented 9 months ago

I've quickly added button for the two commands currently defined in the spec. However, I'm currently unable to test them out myself, can you give them a try and let me know whether they work?

You can test the new functionality by updating your configuration:

...

external_components:
  source: github://khenderick/esphome-opentherm@commands
  components: [opentherm]
  refresh: 0s

...

button:
  - platform: opentherm
    boiler_lo_reset:
      name: "Boiler lock-out reset"
    ch_water_filling:
      name: "CH water filling"
...
skoblov commented 9 months ago

I will test in 2 days, but code that I sent 100% working and have result as I expected

ananyevgv commented 9 months ago

The team leaves [D][opentherm:369]: Enqueued request: WRITE_DATA(4, 0x0100) [D][opentherm:369]: Enqueued request: WRITE_DATA(4, 0x0200) in order to understand whether the command passed or not , you need to add LB: Cmd-Response-Code

khenderick commented 9 months ago

I can't really process a response with a button, but I can look into this to at least log success/failure. Good idea, thanks.

@skoblov did you manage to validate whether sending the command at least works?

ananyevgv commented 9 months ago

image image

skoblov commented 9 months ago

I have tested BLOR fully, after an bowler error. It works as extected.