Unipi 1.1 - physical press button - Philips Hue
-
Hello,
I'm currently looking to purchase a Unipi 1.1, but I would like to confirm certain things first. I have some physical press buttons in my house (to switch on/off the lights), and my goal would be to connect them to the Unipi on the digital inputs (pressing one of the button would activate a specific DI).
I would then write a piece of code (the language doesn't matter) to intercept the activation of the DIs and to trigger a REST request on my Philips Hue hub: this request would be to switch on/off certain lights.
The important part is the communication between the Unipi and the Philips Hue hub:
- on the Unipi, will it be possible to intercept the activation of a DI and to react by triggering a REST request (via cURL for example)?
- how fast would be the process at the Unipi level? (the time between the DI is detected as 'on' and the triggering of the REST request)
Thanks!
-
Hi @Adrewyew,
this is definitely possible. I would suggest to take look into Node-RED, which already does this in very fast fashion - in 10s of miliseconds. We have a Node-RED image ready with a default projects which already reads the states of the DIs. Please, follow this tutorial: https://kb.unipi.technology/en:sw:03-3rd-party:nodered:installation-unipi11Best regards,
Martin -
Hello Martin,
Perfect, many thanks for your answer!
Best regards,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login