Replies: 1 comment
-
Hi! You can create a new protocol file and have the tradfri integration as example. For tradfri we execute coap-client-gnutls command using python subprocess library witch is similar with curl but for coap protocol. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I used the Hue emulator ha-bridge from bwssystems a few years ago. However, it no longer works as intended so I am looking at diyHue.
Would it be possible to add a function to execute scripts/programs, for instance to call curl?
I used HA-Bridge, together with curl and OLA, to control DMX devices with the official Hue app. Here’s my old how-to:
Add a new device in HA-Bridge.
Use the option: Execute Script/Program as Device Type (Informational)
OnUrl:
[{"item":"curl -d u=0 -d d=255 http://olahostname:9090/set_dmx","type":"cmdDevice"}]
DimUrl:
[{"item":"curl -d u=0 -d d=${intensity.math(X*1)} http://olahostname:9090/set_dmx","type":"cmdDevice"}]
OffUrl:
[{"item":"curl -d u=0 -d d=0 http://olahostname:9090/set_dmx","type":"cmdDevice"}]
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions