khenderick/esphome-opentherm

Default ch, dhw and otc enabled switches to enabled

Opened this issue · 2 comments

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?

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?

esphome:
on_boot:
then:
- delay: 2s
- switch.turn_on: ch_2_enabled
- switch.turn_on: dhw_enabled
- switch.turn_on: ch_enabled
- switch.turn_on: otc_active
- number.set:
id: dhw_num
value: 54