Logic Machine Forum
Stream Deck - KNX Control - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Stream Deck - KNX Control (/showthread.php?tid=3856)



Stream Deck - KNX Control - Mr.D - 05.02.2022

Hi,

I am wondering if anyone are familiar with the Stream Deck. I would really like to be able to control some of my lights etc. from the Stream Deck.
If anyone has ideas on how to make that work it would be much a appreciated.


RE: Stream Deck - KNX Control - admin - 07.02.2022

You can use Remote services for control via a plugin that can send HTTP requests (API Ninja): https://barraider.com/#plugins


RE: Stream Deck - KNX Control - Mr.D - 19.02.2022

Thanks for the response Smile
Put I am not familiar with the Remote Service. I have enabled it, but I am unsure how to know how the HTTP request should be written for different functions.
Like set a certain address to 30% or turn on or off a certain address. Is there a guide anywhere you can point to?


RE: Stream Deck - KNX Control - Mr.D - 19.02.2022

Hi,

When I write the following in the API URL in API Ninja nothing happens:

"https://remote:xxxxxx@10.0.30.3/scada-remote?m=json&r=grp&fn=write&alias=1/0/17&value=50"

However, if I do the same in the browser my lights turn to 50, but before doing so I need to approve the site, as I am prompted that the site is not secure.
When clicking on the triangle it states my SpaceLynk Certificate is not valid. The date is not expired and my date on my computer is corret.
Could this be the reason it is not working in API Ninja?

I am so close, but not close enough Smile


RE: Stream Deck - KNX Control - admin - 21.02.2022

Use plain HTTP instead of HTTPS. On LM you can install SSL certificate app to get a valid Let's Encrypt certificate. This app is not available on SL so plain HTTP is the only option.


RE: Stream Deck - KNX Control - Mr.D - 21.02.2022

Hi,

I have tried that as well, but it still won’t work.
I am not sure if it is due to the fact that I am writing the username and password in the API URL.
Cause just writing the same URL as mention above only with HTTP does not work Sad

There is an option to write something in a field called headers, data or response shown… but I do not know how to use those fields. Maybe username and password should be stated there?


RE: Stream Deck - KNX Control - admin - 21.02.2022

It can be set via headers. Use this tool to generate the header: https://www.blitter.se/utils/basic-authentication-header-generator/


RE: Stream Deck - KNX Control - Mr.D - 21.02.2022

Thanks!
That did the trick ?