Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HomeKit - Changing Lightbulb Color Without Transition

Tags:

ios

swift

homekit

I am making an app that uses HomeKit enabled lights for notifications. When I write a new value to the hue characteristic of a lightbulb, the color is transitioned from it's current hue to the hue written. So instead of going from it's currently color (let's say Red) immediately to the written color (let's say Purple) it goes from Red, Pink to Purple as well as all the "in between" colors.

How can I immediately change the color of a HomeKit Enabled lightbulb from one color to the next without this transition?

like image 549
jpcguy89 Avatar asked Mar 14 '17 15:03

jpcguy89


People also ask

What are the best HomeKit light bulbs 2021?

Best HomeKit light bulbs 2021. 1 Simply the best. Nanoleaf Essentials A19 Bulb. Staff Favorite. Nanoleaf's Essentials A19 light bulb has it all — millions of colors, 1,100 lumens of ... 2 Affordable ambiance. 3 Mighty mini. 4 Colorful connectivity. 5 Vintage charm. More items

What are HomeKit bulbs?

HomeKit bulbs offer convenient controls through the Home app and Siri just like HomeKit light switches — all without having to call an electrician. Plus, you can pair HomeKit bulbs with other accessories to fulfill your smart home dreams.

How do I set up my lights with Apple HomeKit?

You will also need to set up your lights to work with Apple HomeKit if you haven’t already done so. For Hue lights, for example, you can open the Hue app on your iPhone or iPad and select Settings > HomeKit & Siri to set this up.

How do I connect my Philips Hue lights to HomeKit?

For Hue lights, for example, you can open the Hue app on your iPhone or iPad and select Settings > HomeKit & Siri to set this up. (If you’ve previously set this up and you can currently control your lights with Siri and the Home app, you’ve already set this up.) Also, you need a device set up to function as a “home hub.”


2 Answers

It's the accessory that receives the notification from the HomeKit server that the value of hue changed and it decides how to transition from one to another. The app itself cannot 'immediately' transition the color. It is up to the lightbulb itself.

like image 125
Alexander Li Avatar answered Oct 03 '22 12:10

Alexander Li


If there is indeed a hard-coded into the light bulb logic board way of changing the hue, and it's only by cycling through the colors, then there is little to do about it.

I can only think of hacks in such case: for example, you might turn the bulb off, then change the hue, then turn it back on, and see if this results in a better transition (I have no idea if this should work at all, but it is worth a try).

like image 28
SimpleBeat Avatar answered Oct 03 '22 12:10

SimpleBeat