How to change the state of Shelly sliding gate opener?

Hello,
I’ve connected a Shelly 1 Plus devise to my BFT sliding gate opener which is working great except that the status on Home Assistant is always CLOSED and I need to “open” it both to open or close the gate.

I’ve got also a Shelly wireless door/window sensor which I wanted to pair with the Shelly 1 Plus device so I’ll have the right status but don’t know how.

Can someone please help?

HI

Did you get this resolved? Im sitting with same problem

GMS

Make something similar just adjust for sliding gate.
In covers.yaml.

platform: template
covers:
terrace_awning:
friendly_name: “Terrace Awning”
value_template: “{{ states(‘sensor.awning_status’) }}”
open_cover:
service: script.terrace_awning_open
close_cover:
service: script.terrace_awning_close
stop_cover:
service: script.terrace_awning_stop
icon_template: >-
{% if is_state(‘sensor.awning_status’, ‘Open’) %}
mdi:weather-sunset-up
{% else %}
mdi:weather-sunset-down
{% endif %}