Cover behavior reversed - Cover time based Synced

Hi all,

I could use some help figuring what is wrong with my cover setup.

Currently I have 2 shutters controlled by relays (- switch entities) setup using the HACS integration ‘Cover Time Based Synced’.

Shutter 1 works as expected, where shutter 2 behaves strange.

Shutter 2 shows the correct state in frontend, Open/close - opening/closing.
But the controls seem to be reversed, it goes up when pressing down arrow, and state shows ‘opening’.

Both shutters are in an automation to close in the evening, where shutter 1 works as expected and shutter 2 works opposite. So it goes to open state in the evening and close in the morning. Tested directly with relays and that is working as expected. Here is my configuration.yaml entry:

cover:
  - platform: cover_time_based_synced
    devices:
      Garage_links:
        name: "Garage links"
        travelling_time_up: 13
        travelling_time_down: 13
        close_switch_entity_id: switch.rol_garage_links_down
        open_switch_entity_id: switch.rol_garage_links_up
        send_stop_at_ends: true #optional
      Garage_rechts:
        name: "Garage rechts"
        travelling_time_up: 13
        travelling_time_down: 13
        open_switch_entity_id: switch.rol_garage_rechts_up
        close_switch_entity_id: switch.rol_garage_rechts_down
        send_stop_at_ends: true #optional

The spook integration have an inverse helper that can be used to invert the one that is wrong.
You should be able to find spook on HACS.

Hi WallyR,

Thank you for the suggestion, I was checking out spook but not sure if that would solve the problem. Which entity would you then invert? Looks like you can only invert switch or binary_sensor.

If I would invert the switch, then my physical relay would be ‘ON’ for 99% of the time and would turn off when the shutter is triggered. These shutters have 2 separate relays, one for opening and one for closing. Both relays should not be ‘ON’ the same time. Thanks!

It looks like it is changed.
In the past it could also invert covers.

Well, looks like you might have to do it manually with templates and automations, unless it is now a settings bg in the cover entity. I have to check that later.

Is it a wiring error or a logic error?

Hello IOT7712,

Definitely not a wiring error as states are correct.
When pressing the down arrow (close) in GUI, it starts opening with correct state ‘opening’ and icon displaying open shutter when finished.
It feels like the cover close and cover open actions are mapped to wrong config.

It is not enough to switch the switch.rol_garage_xxxxx_up and switch.rol_garage_xxxxx_down on one of the templates for your covers?

Have you seen the “Backward-incompatible changes” section in the November HomeAssistant release notes, and is yours one of the one’s affected?