Skip to main content
Amaël BERTEAU

Main navigation

  • Home
  • News
  • Software Engineering
  • Entrepreneuriat
  • Maker
  • Misc
  • Personal Projects
  • About me
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Software Engineering

Integrate Philips Hue in your Android application

By aberteau , 26 July, 2017

You will find some components, based on Retrofit, that allow Android applications to communicate with Philips Hue Hub

You can find Philips Hue Documentation here.

Dependencies

The first thing to do is to add the required dependencies to the build.gradle file.

Data contracts

We define data contracts. This classes represent data exchanged with Hub API (Request / Response).

Light

Represents a light connected to the hub.

LightState

Represents the state of a light connected to the hub.

SetLightStateBody

Command body to update light state

LightService

Interface representing hub API

Helpers

HueBridgeApiHelper

Some functions to help with Retrofit (generates an implementation of LightService)

ColorConverter

Some color conversion operations (More informations here)

Usages

Tags

  • Android Development
  • Philips Hue
  • Retrofit
  • Home automation

Comments

RSS feed
Powered by Drupal