• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Unipi 1.1 - physical press button - Philips Hue

    Scheduled Pinned Locked Moved Installations, Ideas & Realisations
    3 Posts 2 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Adrewyew
      last edited by

      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!

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @Adrewyew
        last edited by

        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-unipi11

        Best regards,
        Martin

        1 Reply Last reply
        Reply Quote 0
        • A
          Adrewyew
          last edited by Adrewyew

          Hello Martin,

          Perfect, many thanks for your answer!

          Best regards,

          1 Reply Last reply
          Reply Quote 0

          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
          • First post
            Last post