Virtual button Raspberrymatic

Hi, guys

I have the Raspberrymatic add-on installed on my HA (RB3) and I need to use/create a virtual button to switch an Homematic IP actuator (HmIP-FSM) for 3 sec. The actuator controls a magnetic lock for my pedestrian gate. I have to mention that I am a fresh user of HA and I don’t have any code porgraming knoledge. So, that being said… could someone help me with some detailed instructions?
Thanks in advance
Cosmin

hm… I don’t have an HmIP-FSM running atm… so I don’t know what entities this device already provides to HomeAssistant…

This would be a good information to check, if there’s already something :slight_smile:

Anyway - WHAT I do know, since I just switched to RaspberryMatic, the RaspberryMatic does provide virtual keys … which you could use.

Now, you do have two options:
Do the programming in RaspberryMatic itself → Configure the actions there for one of the virtual keys and just display the entity in your HomeAssistant

or - implement an automation inside of HomeAssistant directly…

I already tried to make the automation in Raspberrymatic, but it doesn’t show in HA… Maybe I don’t know were to look for it. Tried direct connection and programming.

the automation you would create in raspberrymatic does not show up in HomeAssistant.

But RaspberryMatic does provide this device

as well as this one:

both provide channels for 50 buttons (short press & long press)

In HomeAssistant, you can find both devices in your device section:

each of the devices will provide 100 entities (50 short press, 50 long press)

By default, they are hidden in the configuration:
grafik

So… now, you can create your program in RaspberryMatic - and assign it to one of the virtual keys.
In HomeAssistant, these entities are type Button - so you can just place it on your dashboard, and when pressed, it will trigger the program setup in your Raspberry matic

grafik

Yes, I got this far before I opened the post. But the virtual buttons are unavailable. Do I have to activate them? I will post a printscreen.



I think I got it working. It needed activation. Thanks.

yes, that’s correct so far.

I did a short test… therefore, I’ve set the Press Long ch.1 from the Device HM-RCV 50
grafik

The entity was unavailable - that’s true.
Anyawy - I have added the button to my dashboard:

grafik

In RaspberryMatic, I’ve created a program that should switch on one of my lights controlled by another HmIP Device…

I don’t show a screenshot of the program in RaspberryMatic, because of the UI is in german - and I don’t think that it does make much sense.

Now, when I press the button, it does what I’ve programmed in the RaspberryMatic.
It switches the light on…

You created a direct connection or a program with conditions? I need it to switch on for short period of time, say 3 seconds and then go off, because it switches an electromagnetic lock, and the coil will fail if it’s powered for a long period of time.

I created the automation in Raspberrymatic, and it works as it should but in HA when I press the virtual button I created as you indicated, it does nothing.

i’ve created a program in RaspberryMatic for this - but without any conditions behind it.

The entity should just forward the toggle to RaspberryMatic - so there’s no magic behind it…

You are absolutely right. By mistake I’ve activated a BidCos RF instead a HmIP-RCV. Now I activated the correct one and it works as you said. Many thanks! Much apreciated.

1 Like

welcome :slight_smile:
HomeAssistant does have a very steep learning curve :smiley:

If I may add my recommendation: you should probably switch to a “Direktverknüpfung”. If done properly, the turn on command includes the duration for which the switch should be turned on. So even if the automation would start and for some reason abort within this short time period, the actor would still switch off again. Actually I’m doing the same thing with my door-buzzer, which also would be fried if powered on for too long.

This is how the “Direktverknüpfung” looks like in my case:

1 Like

@danielperna84 Thanks for the tip. I made the direct connection last night, as a test, and it worked for me, so now I am using it with the virtal button.