Philips Hue Plugin

I was thinking of doing this in my game, but there doesn’t seem to be an easy way to do it with Smart Life devices (unless you use IFTTT) :confused:

1 Like

After 2 weeks of recoding and redesigned the whole plugin the first update is finally here!

Things Added:

  • Redesigned Gui
  • Text and icon turns black if the color saturation is too high.
  • Groups/Rooms and entertainment area’s (the plugin gets these from the Philips hue app)
  • Presets (Select a group, then click on the presets icon and click on the one you want to set your lighting to)

Things Changed:

  • Light Off Collor (normally it would set it to rgb(20,20,20) not it sets to HSV(Hue,Sat.4)

Things Removed:

  • White studio theme (the Philips hue app doesn’t have a light mode. so it would look odd if I would add it to this plugin.)
ScreenShots

image image
image image

If you have any issues, bugs or suggestions please let me know!

4 Likes

I keep getting this error with the plugin.

13:37:39.665 - Reset is not a valid member of Frame
13:37:39.665 - Stack Begin
13:37:39.665 - Script 'Plugin_4797774180.Hue Plugin.Hue', Line 616
13:37:39.667 - Stack End

should be fixed now, it was a temporary button that i forgot to remove the code for.

1 Like

Now the plugin only displays one group and the group name is unreadable. image

It says this.

18:46:16.695 - Plugin_4797774180.Hue Plugin.Hue:202: attempt to perform arithmetic (div) on nil and number
18:46:16.696 - Stack Begin
18:46:16.696 - Script 'Plugin_4797774180.Hue Plugin.Hue', Line 202 - function UpdateGradient
18:46:16.697 - Script 'Plugin_4797774180.Hue Plugin.Hue', Line 542 - function SetupGroups
18:46:16.697 - Script 'Plugin_4797774180.Hue Plugin.Hue', Line 595
18:46:16.698 - Stack End

The only reason why that error could pop up is if your group is disabled or your group has no lights in it. I will check this out tomorrow and make it failproof

I have 2 rooms and both have lights. Is there a difference between rooms and groups?

Nope the structure is the same

should be fixed now. image

This is awesome! Imagine implementing this in FPS games so your lights gradually change color after your health etc… Looking forward to this!

2 Likes

Hey folks, just released a small update,

This update includes some bug fixes and 2 new features

The first feature is Local Discovery, when you first install the plugin it will show every Bridge it can find on your local network, so you don’t have to enter the IP of the bridge.

The Second feature is Icon Support. you can now change the icon in the Philips hue app and it will apply to the plugin in studio

image

2 Likes

imagine if this was in a game somewhere, you are just chilling, then all of a sudden your house goes rainbow, im am so getting hue bulbs now

2 Likes

just an idea, can you expand on this and allow other smart light systems work along with it, maybe allow it to connect to Google home, or Alexa, which allows you to control all smart lights, and maybe even other smart things, lastly, maybe trying to see if you can allow this to be put as a module for ingame, I would love to see my room go disco while people are playing my game, idk why

The reason why this plugin can work is because the Philips hue bridge is a local server for your lighting, So if you want to control other brand lighting they would need to talk to the Philips hue bridge somehow.

If I would make a plugin to control all your lighting I would need to code a brand new plugin that talks with amazon their API’s but would still be a lot more complicated because you would need to give the plugin access to your account.

I dont think people would be confident hooking their personal details to a plugin from a random developer.

if you gave out the source code that would allow the user to change the data so it goes to them instead of you, it may work, but really to top it there is no point of allowing it to do that, would just be a cool thing you would use for a bit, then you get annoyed and turn it off.

This is awesome. Now it’d be cool if we could change a smart thermostat from inside a Roblox game. Cool resource anyways and I’ll definitely use it!

This is so cool!


Hi, im back, think its possible to have a module for in-game use? tempted to make a game that allows users to change my lighting, for a fee of course, don’t need them making my lights strobe. If you cant, is it alright if i reverse engineer the plugin code?

no becasue this works only locally.

Can you please make this free?