My blinds are raised and lowered via 2 relays that are controlled by an PLC. I can also specify a value to which the blinds should move. So far I have controlled the blinds via this % value.
I would now like to have two buttons, something like the standard button card with an arrow up and an arrow down. One button should raise the blinds as long as it is pressed and the other button should lower the blinds as long as it is pressed.
I have not yet found a way to implement this. The two relays on the PLC are integrated as switches via MQTT.
A trigger for an automation depends on something changing. In the case of a button from ‘off’ to ‘on’. As long as you stay on the button, there’s no change to trigger on.
Trigger your automation on time pattern. Like once a second. Then condition the action on whether the button is pressed or not.