Cover powerbutton?

Hi!

I’ve got a powered, zwave-managed garagedoor. It’s a hörmann port and it is powered by a promatic 3 motor with a qubino 1d flush relay connected to it.
Interaction with the motor is made with ONE button. Once pressed the motor either starts or stops and if started again after it has been stopped it goes the other way until stopped again either by getting to endposition or by receiving another signal from the button.
In order to make a bit more complicated: The door can be operated by a physical button too.
I have got a sensor on the port which registers the state.

Now to the problem:
I cant get my head around how i should configure this i HA.
Capture
As seen on the picture, both the template cover and the switch shows wrong state, so i would like some type of powerbutton which i can toggle and get a icon from the state sensor.
Entities in the card below:

entities:
  - entity: sensor.port
  - entity: switch.garageport
  - entity: cover.garage_door
show_header_toggle: false
title: Garageport
type: entities

Any ideas? I can’t possibly be the only one with this problem but i cant seem to find anything useful.


EDIT:
I just got an idea: a workaround which wont help with the power-button but it might be a way to get the correct state of the cover - binary variables and MQTT.

It would take 2 of them to always be able to calculate the true state of the port:
1 - Open = True/False (1/0)
2 - Stopped = True/False (1/0)

Another thing is needed too and that is a timer of sorts. Since the ports automatically gets stopped when it reaches its end-travel destination the variable “Stopped” needs to be set to True after X seconds.

If
open = true
and
stopped = true
then
the only option for the door is to go downwards

if open = true
and
stopped = false
then
the only option is to stop the port

if open = false
and
stopped = true
the only option is up

The logic should work, how to configure it is the next question

@silverridge Hello, is it possible to give me some information about connecting the Promatic 3 to the Qubino 1D flush relay? And how about connecting it to Home Assitant?

I will have the same garage door opener soon :slight_smile: Thank you.

Sorry for a late reply!

Absolutely i’ll take som photos and write a guide if you’d like, or have you already solved it?

Hi @silverridge, a quick how-to would be great. Thank you very much!

First of all, power the relay!
I cut the powerlines from the Promatic 3 and attached them to N and L on the relay. If you’ll do the same then make sure the Promatic 3 isnt connected to any outlet.
Once your finished with that then attach wires from Qa and Qb to where the impulse button should be connected (page 25 -> https://www.thegaragedoorcentre.co.uk/download/Garador%20GaraMatic%209.pdf).

Then add the device to your z-wave gateway what ever that might be and configure parameter 11 (Auto off) on the device to the value 1