Hello,
I’m looking to simulate a 3 second long button press and I can’t really find a way of doing this. I’ve been looking for ages now, really hope someone can help me.
This is the cover code. Have set up some automations and they work great.
cover:
- platform: mqtt
name: "Rolgordijn 1"
command_topic: "cmnd/rfbridge/backlog"
payload_open: "rfraw AA B0 35 05 04 12DE 05FA 015E 02F8 2242 A481A3B2B2A3A3A3B2A3A3A3B2B2A3B2A3A3B2A3B2B2B2B2B2B2B2A3B2A3A3A3A3B2A3A3A3B2B2B2B2 55;rfraw 177"
payload_close: "rfraw AA B0 35 05 04 12CA 05FA 015E 02E4 222E A481A3B2B2A3A3A3B2A3A3A3B2B2A3B2A3A3B2A3B2B2B2B2B2B2B2A3B2A3A3A3A3B2A3A3B2B2B2B2A3 55;;rfraw 177"
payload_stop: "rfraw AA B0 35 05 04 12C0 05FA 015E 02E4 230A B481A3B2B2A3A3A3B2A3A3A3B2B2A3B2A3A3B2A3B2B2B2B2B2B2B2A3B2A3A3A3A3B2A3B2A3B2A3B2A3 55;rfraw 177"
set_position_template: "50"
However I need the stop command to be able to long press, and keep sending the rfraw command when I do that. I can spam the stop button in hassio and it kind of works to simulate a long press but it’s not perfect.
I was looking to add signal repetitions to the stop command, but don’t think that’s an option for cover.
Then I was looking to add the rfraw 8 times in the payload_stop, but that didn’t work either or I did it wrong.
Is there anyone who knows how to do this? Help will be greatly appreciated.