khenderick / esphome-opentherm

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

Default ch, dhw and otc enabled switches to enabled #20

Open aelking opened 3 months ago

aelking commented 3 months ago

I have tried to use

restore_mode: ALWAYS_ON on ch_enabled dhwenabled otc_active

but it doesn't seem to do anything.

switch:
  - platform: opentherm
    ch_enabled:
      name: "CH enabled"
      restore_mode: ALWAYS_ON
    dhw_enabled:
      name: "DHW enabled"
      restore_mode: ALWAYS_ON
    otc_active:
      name: "OTC active"
      restore_mode: ALWAYS_ON

Is this something that I am doing wrong, or is it something that needs to be implented?

khenderick commented 1 month ago

The restore_mode should be handled by ESPHome itself, it's as far as I know nothing that should be implemented in the component. What's the behavior you're seeing? They just never turn on after boot, or they briefly turn on and then immediately turn off again by themselves?