Extra cover to cover mix


Caution. Extra cover to cover mix doesn’t have hardware protection. You do it at your own risk. We are not responsible for any damage you made.

We’re going to assume that you’d want to add extra cover and OUT_17 is UP direction and OUT_18 is DOWN direction. It’ll work if you have our package version 1.6.0 or newer.

In standard cover mix configuration you’d have packages as follow:

packages:
  internals_packages:
    url: https://github.com/boneIO-eu/esphome
    ref: v1.6.0
    files: [
        'devices/buzzer.yaml',
        'devices/serial_no.yaml',
        'devices_v0_7/display.yaml',
        'devices_v0_7/i2c.yaml',
        'devices_v0_7-v0_9/ina219.yaml',
        'devices_v0_7-v0_9/lm75b.yaml',
        'devices_v0_7-v0_9/pcf.yaml',
        'boards/cover/out01_02.yaml',
        'boards/cover/out03_04.yaml',
        'boards/cover/out05_06.yaml',
        'boards/cover/out07_08.yaml',
        'boards/cover/out09_10.yaml',
        'boards/cover/out11_12.yaml',
        'boards/cover/out13_14.yaml',
        'boards/cover/out15_16.yaml',
        'boards/output/out17_18.yaml',
        'boards/output/out19_20.yaml',
        'boards/output/out21_22.yaml',
        'boards/output/out23_24.yaml',
        'boards/output/out25_26.yaml',
        'boards/output/out27_28.yaml',
        'boards/output/out29_30.yaml',
        'boards/output/out31_32.yaml',
        # 'devices_v0_7-v0_9/one_wire.yaml',
      ]

Replace this line:

'boards/output/out17_18.yaml',

to

'boards/cover/out17_18.yaml',

In the end it would look like this:

packages:
  internals_packages:
    url: https://github.com/boneIO-eu/esphome
    ref: v1.6.0
    files: [
        'devices/buzzer.yaml',
        'devices/serial_no.yaml',
        'devices_v0_7/display.yaml',
        'devices_v0_7/i2c.yaml',
        'devices_v0_7-v0_9/ina219.yaml',
        'devices_v0_7-v0_9/lm75b.yaml',
        'devices_v0_7-v0_9/pcf.yaml',
        'boards/cover/out01_02.yaml',
        'boards/cover/out03_04.yaml',
        'boards/cover/out05_06.yaml',
        'boards/cover/out07_08.yaml',
        'boards/cover/out09_10.yaml',
        'boards/cover/out11_12.yaml',
        'boards/cover/out13_14.yaml',
        'boards/cover/out15_16.yaml',
        'boards/cover/out17_18.yaml',
        'boards/output/out19_20.yaml',
        'boards/output/out21_22.yaml',
        'boards/output/out23_24.yaml',
        'boards/output/out25_26.yaml',
        'boards/output/out27_28.yaml',
        'boards/output/out29_30.yaml',
        'boards/output/out31_32.yaml',
        # 'devices_v0_7-v0_9/one_wire.yaml',
      ]

Now in the bottom you’d need to copy cover section for those outputs from Cover file eg https://github.com/boneIO-eu/esphome/blob/main/boneio-cover_v0_7.yaml

Lines you’re interested in are:

- platform: time_based
  name: 'Cover 09'
  id: cover_09
  open_action:
    - switch.turn_off: cover_close_09_out18
    - switch.turn_on: cover_open_09_out17
  open_duration: 10s
  close_action:
    - switch.turn_off: cover_open_09_out17
    - switch.turn_on: cover_close_09_out18
  close_duration: 10s
  stop_action:
    - switch.turn_off: cover_open_09_out17
    - switch.turn_off: cover_close_09_out18

Copy them and paste into cover section of your file. It’s done. Now click Run on Esphome addon and compile firmware for your boneIO.