cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Piero
Level: Powered On

Philips Hue - light colour

Hi lovely people!

 

I'm banging my head against the wall 😞

 

I'm building a little PowerApp for our home to control our lights, heating etc. Pretty cool stuff (even if I say so myself!)

 

I have created an icon in my app for each of the Philips Hue lights around the house and I'm trying to get each icon to change its colour according to the actual colour of its corresponding light.

 

The problem is that the Hue API returns the colour of each light in a very weird format. They return a number from 0 to 65535 where both 0 (and 65535) is red, 21845 is green and 43690 is blue. The saturation is then returned in a number from 0 (least saturated - or white) to 254 (most saturated).

 

For the life of me, I can't think of a way of manipulating those numbers into more traditional RGBA values.

 

I know it's a long shot, but has anyone come across this issue before?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Philips Hue - light colour

Hi @Piero 

 

Currently, there is no directly way to use control to achieve this change (From the number to RGB) in PowerApp.

And if you want this feature:

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best Regards.

Yumia

 

View solution in original post

2 REPLIES 2
jhall
Level 8

Re: Philips Hue - light colour

Community Support Team
Community Support Team

Re: Philips Hue - light colour

Hi @Piero 

 

Currently, there is no directly way to use control to achieve this change (From the number to RGB) in PowerApp.

And if you want this feature:

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best Regards.

Yumia

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (6,286)