Skip to content

Instantly share code, notes, and snippets.

@EbenezerGH
Created August 20, 2017 02:33
Show Gist options
  • Save EbenezerGH/8320181ad3a87fe61633b440e295d97b to your computer and use it in GitHub Desktop.
Save EbenezerGH/8320181ad3a87fe61633b440e295d97b to your computer and use it in GitHub Desktop.
few commands for arduino,hue communication.
Reference Links:
https://www.developers.meethue.com/documentation/getting-started
# Upon entry
url: /api
{"devicetype":"my_hue_app#android ebenezer"}
method: POST
# Authenticated Hue ID: (ID token changes each reset)
qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba
# Get a listing of all lights
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights
method: GET
# Call a specific Light
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number]
method: GET
# Turn Light on/off
url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number]]/state
body: {"on":[false or true]]}
method: put
# Change Hue Light Saturation and Brightness (max for sat & bri is 254, measure ofhue is from 0 to 65535)
url: url: http://192.168.1.6/api/qtiZQ6RLayFCNVdwWsjxch33N4XqoPjZw422DWba/lights/[light number]]/state
body: {"on":true, "sat":254, "bri":254,"hue":10000}
@EbenezerGH
Copy link
Author

@EbenezerGH
Copy link
Author

IVr65gbuDmvX29cMwwlKLnodMVtRpsefVnNVyb2N

@EbenezerGH
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment