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.
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