Connecting to Phillips HUE



  • HI! i'm trying to connect to my Phillip hue bridge but i have no clue on how to achive this.
    I found there is a Rest API but i don't know how to use it.

    Any help?


  • ADMIN

    @fcostazini

    0_1492657899553_upload-632fd634-ac20-477e-8f9d-cd5d2c62948b

    Note: URL should point your Philips HUE bridge IP.

    Kindly refer this for detailed implementation. https://github.com/mycontroller-org/mycontroller/issues/328



  • Thanks! but i don't have that option. Justa MySensors and Sparkfun. Maybe i have an older version? i downloaded from the home page. Should y git clone the master repo?

    Thanks again and EXCELENT JOB!


  • ADMIN

    @fcostazini Use the SNAPSHOT version



  • @jkandasa THanks! i'll try it right away



  • @jkandasa The philip hue gateway is up and running but i can't add any sensor. I mean i can't find or autodetect any. should i add them manually? in that case, how?


  • ADMIN

    @fcostazini I guess sensors will be added automatically. @Fraid can guide in detail.



  • Got it!

    For future references: First, the IP address of the philip Hue should include the protocol: "http://192.168.86.201", second, you should generate a new user for philip hue (with any app like postman) like this: First, press the sync button on the philip hue bridge
    post -> url: http://192.168.86.201/api" -> body: raw -> {"devicetype":"philipseHueauthorizedUser xyz"} . This will get you a new user. That's the user you should use.

    That's it.

    Thanks!!!



  • The problem now is that i can't create an operation for the lights to turn them ON or OFF. Toggle is working just fine. Any sugestion?


  • ADMIN

    @fcostazini What is the issue are you facing?



  • @jkandasa When i create an operation with Toggle, the lights work like a charm. But if i try with ON or OFF nothing happend. In the log i see it says:

     [org.mycontroller.standalone.message.McActionEngine:145] Not supported opration! OperationTable for sensor variable:[On]
    

  • ADMIN

    @fcostazini Kindly use 0 for OFF and 1 for ON as a payload.



  • @jkandasa It's working! Thanks. it would be great to have a simple tool to create massive operations. Like "create all ON operation for selected Binary sensors" or something like that.

    Thanks again!


Log in to reply