Hue sensors component

I am making use of the Hue motion sensors, and the remotes. Aim of this project is to create a component for the Hue sensors + remotes. Should be fairly straightforward as the sensors are easily available via the Hue API. The user will need to enter the base URL of their Hue hub, and the component will create a home-assistant sensor for each unique Hue sensor found. Have made a start on:

Each motion sensor is composed of 3 parts: temperature, light level and motion level. I have three motion sensors, and two remotes. These are all thrown together in the API along with sensors for Daylight, and presence, so the first job is to create the logic to group the sensors/remotes.

1 : Daylight

2 : Remote bedroom
3 : Dimmer Switch 2 SceneCycle

4 : Hue temperature sensor 1
5 : Hall Sensor
6 : Hue ambient light sensor 1
7 : MotionSensor 5.Companion

8 : Hue temperature sensor 2
9 : Bedroom sensor
10 : Hue ambient light sensor 2
11 : MotionSensor 9.Companion

12 : Robins iPhone
13 : HomeAway

14 : Hue temperature sensor 3
15 : Living room sensor
16 : Hue ambient light sensor 3
18 : MotionSensor 15.Companion

17 : Remote living room

If anyone is keen to collaborate on this let me know.
Cheers

5 Likes