Turn switches on/off on button press/release

Hello!

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.

Does anyone have any idea how I could do this?

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.

This would make it a lot easier, please vote: Front end button release event

1 Like

Also don’t do this.

1 Like

OK, done.
I’m not sure how it could be implemented, but it would add to the functionality of well panels.