Loxone Support Community

Find answers, ask questions and become part of the Loxone Community.

Loxone Support CommunityCategory: Loxone ConfigVirtual Output does not trigger the required action
3 years ago
Virtual Output does not trigger the required action

Hello,

I need to generate a GET request to a server from Loxone. A very simple scenario. I have the following web address

https://bit.ly/3gE0lWg

that I need to trigger. If I simply put the address to a web browser and hit Enter, it reaches the page and performs the needed action.

If I try to model the same in Loxone Config, the request also reaches the service, but the request is, perhaps, not recognized as a valid request and does not act on it. In this case, bit.ly don’t increase the click cound and does not trigger the shortened URL.

I’ve tested the same also with the Requestbin service and that one shows that the requests ARE coming from Loxone so It must be something wrong in the header I’d say.

Do you know what’s wrong?

In the Loxone config I have Virtual Output with "https://bit.ly" in the Address field and a Virtual Output Command with "/3gE0lWg" Command for ON field. No otherchanges from the default values.

The background is that I’d like to connect to an Alexa device from Loxone so I can implement a voice alert in case of water or fire issue is detected by Loxone. I use the VirtualButtons service that can connect to Alexa. In case there’s any other way to acheve it, please let me know.

Thank you

Jiri

4 Answers
3 years ago

Hi Jiri

In the first instance I would recommend that we omit the use of Bitly as a potential source of the issue.

Your structure of the Virtual Output seems fine otherwise.

Therefore I would recommend creating the Virtual Output as "https://adee6ef2a802e990f968029fd73859f7.m.pipedream.net"

And then the Virtual Output Command as "/test"

If this works as desired then problem solved. Otherwise another option to try is to untick use at Digital Output within the Parameters of the Virtual Output Command.

KR

Hugh

3 years ago

Hello,

thank you for your reply.

Bit.ly was just one of several solutions I tried to make it working. Perhaps the easiest to illustrate the issue. I use the Request Bin service primarily to monitor the request content.

I’ve just tried to untick the "Use at Digital Output" option but it dod not really help.

The only service that it works with at least partially is IFTTT Webhook which I am able to trigger from Loxone but only in the simplest scenario – without passing any parameters. All my attempts to pass parameters have failed.

3 years ago

BTW, is there any possibility to log the outgoing requests and responses in Loxone? I’ve tried to set the Save HTTP Reply file but it never gets even created on my SD card.

3 years ago

Hi Jiri

To save the replies you will need to specify the location on the SD card and the file format within the parameters, for example /user/common/answer.xml

To see the data being sent the easiest way would be to have the debug monitor open while sending. You can then check the debug monitor to see that that command was indeed sent.

Another option to try at least temporarily is if possible send the output as HTTP rather than HTTPS. HTTPS is a processing intensive action authenticating the certificate so test HTTP to see if it nets different results.

KR
Hugh

3 years ago

Hello,

FYI that I finally made it working using a workflow in Pipedream. I send the requests from Loxone to Pipedream (which is apparently more tolerant than VirtualButtons) and then from Pipedream to VirtualButtons. And … from VirtualButtons to Alexa.

Well, considering that the physical button I push to make Alexa play a song is about two meters away from the Alexa device but the request travels perhaps around the whole planet to reach it … I’m not sure I can call it a victory Anyway, it works and that’s what counts

take care

Jiri