# \[OBSOLETE\] Circadian Daylight: SmartThings + Smart Bulbs

**URL:** <https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623>\
**Category:** Community Created SmartApps\
**Tags:** lighting, hue, smartapp\_lighting, osram\
**Created:** [March 30, 2015, 11:17pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623 "2015-03-30T23:17:16Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [May 5, 2015, 1:46am UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/21 "2015-05-05T01:46:26Z")

</div>

GE would have you drop $20 per bulb per color with their Align line:

> **[GE Align AM Lighting Bulb 75534 LED 11-watt 900-Lumen Dimmable A19 Bulb Medium Base, 1-Pack - - Amazon.com](https://www.amazon.com/GE-Lighting-93842-350-Lumen-Dimmable/dp/B00PLR3M0M/ref=sr_1_1?ie=UTF8&qid=1430790228&sr=8-1&keywords=ge+align)**
>
> GE's Align AM LED bulb helps promote the body's natural wake cycle. GE Align AM light is engineered to help maintain your body's natural circadian rhythm by providing a bluish-white light in the morni ...

> **[GE Redefines Lighting with GE Align™ Lighting, Aiding Natural Sleep Cycle | GE...](http://pressroom.gelighting.com/news/ge-redefines-lighting-with-ge-alignTM-lighting-aiding-natural-sleep-cycle#.VUggMyFVhBe)**
>
> GE Lighting’s new Align™ technology harnesses the power of lighting to help regulate melatonin, the “sleep hormone”, production, promoting the body’s natural sleep-wake cycle

!!

---

<div class="post-metadata">

**Author:** ![incapacitater](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@incapacitater](https://community.smartthings.com/u/incapacitater)\
**Post date:** [June 29, 2015, 10:15pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/22 "2015-06-29T22:15:28Z")

</div>

Hey Kristopher,

Not sure if you are still around here or not, but I finally got around to ordering those lightify bulbs, and have noticed some really strange behavior. From your end, with circadian daylight app, it works fine. I used the v2 lightify device type you posted, but for some reason, if I have the bulb set to come on with motion and with it turning off 2 mins after motion stops, it will never turn on. However if I remove the turning off when motion stops, it will turn on, but obviously never turn off. Do you have any insight to why this is?

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [July 1, 2015, 1:39pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/23 "2015-07-01T13:39:25Z")

</div>

Hey Adam,

I have seen a couple things funky with this light. One of the things that happened over the last few months is that the official device driver is using a different method for setting the color temperature than I used. I suspect that is at the root of your problem. I plan to release a new version very soon.

To get more into the reeds about why this is happening – when Sticks and I wrote the unofficial device driver, we kept some of the state information on the bulb. ST moved all the state information to the Hub. So what’s happening is the bulb thinks its on already, which is why its not turning on.

Please check back in a couple days!

Kristopher

---

<div class="post-metadata">

**Author:** ![incapacitater](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@incapacitater](https://community.smartthings.com/u/incapacitater)\
**Post date:** [July 24, 2015, 9:15pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/24 "2015-07-24T21:15:32Z")

</div>

Any word on the new version? My bulbs are basically just useless atm haha.

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 3, 2015, 2:54pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/26 "2015-09-03T14:54:12Z")

</div>

> [@Kristopher](#):
>
> I added code to make the Jasco blue LED light light up with motion which everyone likes too.

This sounds great. Where is the code for this in the app? I am looking at the CIrcadian app and do not see it.

You are talking about the blue LED in the dimmer switch correct? How can this LED be controlled from a smart app?

---

<div class="post-metadata">

**Author:** ![Sticks18](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sticks18](https://community.smartthings.com/u/Sticks18)\
**Post date:** [September 3, 2015, 3:31pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/27 "2015-09-03T15:31:03Z")

</div>

Almost all of the zwave wall switches/dimmers have a feature that determines when that LED is lit. If you look in the “Thing” tile for them, it’s there. “On when lit”, “off when lit” or “never lit”, so the SmartApp can change that option to control when it’s on or off.

I wrote a small SmartApp for my fan switch, so the light is never on because the “never lit” option doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 3, 2015, 6:48pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/28 "2015-09-03T18:48:05Z")

</div>

> [@Sticks18](#):
>
> I wrote a small SmartApp for my fan switch, so the light is never on because the “never lit” option doesn’t seem to work.

Do you have some sample that shows this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Sticks18](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sticks18](https://community.smartthings.com/u/Sticks18)\
**Post date:** [September 3, 2015, 7:30pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/29 "2015-09-03T19:30:33Z")

</div>

Here’s the GitHub link for that SmartApp. indicatorWhenOn() method sets the option, so the LED is on when the switch is on. indicatorWhenOff() method sets the option, so the LED is on when the switch is off. There is a 3rd for the “Never Lit” option, but I found that selection doesn’t work for most of my zwave switches. This is built into the zwave switches, so those methods should be in any device handler for them.

[https://github.com/sticks18/SmartThings-SmartApps/blob/master/Zwave\_Indicator\_Never\_Lit\_Manager.groovy](https://github.com/sticks18/SmartThings-SmartApps/blob/master/Zwave_Indicator_Never_Lit_Manager.groovy)

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 3, 2015, 7:45pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/30 "2015-09-03T19:45:57Z")

</div>

Thanks, I will play with the code, I think this will help me with something I am trying.

Thanks again

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [September 3, 2015, 8:29pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/31 "2015-09-03T20:29:43Z")

</div>

@professordave

Here is the fork – I rewrote Brian’s app pretty heavily. I feel my interpretation is more of a “blink” than a solid on or off.

[https://github.com/KristopherKubicki/SmartThings.SmartIndicatorNightlight](https://github.com/KristopherKubicki/SmartThings.SmartIndicatorNightlight)

Kristopher

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 6, 2015, 3:13pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/32 "2015-09-06T15:13:58Z")

</div>

Is it possible to blink the indicator light? What I am looking for is that when a push button is pressed, the indicator lights would temporarily blink to provide feedback that the “mode” has changed. One mode is normal manual operation of room lights and one mode is motion controlled.

For areas like a hallway, having the hallway lights always motion controlled works well.

But for a family room, having the lights sometimes manual and sometimes motion controlled is the best solution. I have a push button to change mode but I would like to be able to show some kind of feedback that the mode has changed.

Currently I am blinking the room lights, but that is less than ideal.

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [September 6, 2015, 4:58pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/33 "2015-09-06T16:58:20Z")

</div>

Yeah you can blink the indicator. Just turn it on and off with a 100ms delay or so. Even a few seconds looks pretty cool

Kristopher

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [October 7, 2015, 7:10am UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/34 "2015-10-07T07:10:05Z")

</div>

Hi Everyone,

I updated the code to better support the updated Osram bulbs, and some modifications for the v2 hub. In addition, there are some new features sprinkled in like Dynamic Lighting (adjusts brightness based on time of day) and an option to have the starlight effect swap with a camp fire effect. Enjoy!

> **[KristopherKubicki/smartapp-circadian-daylight](https://github.com/KristopherKubicki/smartapp-circadian-daylight)**
>
> smartapp-circadian-daylight - Use your SmartThings Hub to sync your color changing lights with natural daylight hues

Kristopher

---

<div class="post-metadata">

**Author:** ![Tweak3D](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@Tweak3D](https://community.smartthings.com/u/Tweak3D)\
**Post date:** [October 12, 2015, 2:29pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/35 "2015-10-12T14:29:13Z")

</div>

Having an odd issue, It seems that the mid day and end of day color change doesn’t happen reliabily. Any thoughts? I work from home several days a week and it seems that sometimes the mid-day color change just doesn’t happen (they stay yellow. If I shut off the light and turn them back on, they turn on to the correct color. I am also seeing a similar issue in the evening as they just stay blue all night in stead of changing to yellow again. Using the latest version of your code. Its obvious it works, just not sure why its not always working. To confirm though, I wake up before sunrise to start working and the tigger from night to day (at sunrise) has worked ever time.

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [October 13, 2015, 3:21am UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/36 "2015-10-13T03:21:04Z")

</div>

Hey @Tweak3d – Do you have any mode restrictions? I’ve seen some funny interaction with that.

Also, what kind of bulbs are you using? Hues?

---

<div class="post-metadata">

**Author:** ![Timgray](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/timgray/32/17769_2.png) [@Timgray](https://community.smartthings.com/u/Timgray)\
**Post date:** [October 13, 2015, 12:06pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/37 "2015-10-13T12:06:08Z")

</div>

do you have a V1 hub or a V2 hub? I have found that the V2 hub is insanely unreliable for timers.

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [October 13, 2015, 12:45pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/38 "2015-10-13T12:45:20Z")

</div>

@Timgray - The app is all event driven. It relies on mode changes and motion detection in order to update.

@Tweak3D - It’s also possible that those events are not firing, for whatever reason. If you can get me some of your log, I can help diagnose better

---

<div class="post-metadata">

**Author:** ![LakeEnd](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@LakeEnd](https://community.smartthings.com/u/LakeEnd)\
**Post date:** [October 19, 2015, 11:45am UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/39 "2015-10-19T11:45:34Z")

</div>

@Kristopher Is there big differences between Hue and Lightify bulbs on how they work with this smartapp?  
You mentioned some problem with Lightify bulbs that requires hub reset, is this still a case and would getting Hue bulbs be safer bet?

---

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [October 19, 2015, 12:41pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/40 "2015-10-19T12:41:25Z")

</div>

@LakeEnd - I updated the code about a month ago to handle both better. The big difference is the Osram bulbs are better at keeping track of their state than the Hues. In addition, they do better attribute reporting (i.e., if you turn it on via a switch, the Hub will know faster). So if anything, the Osram should work a little better.

Let me know if that works!

Kristopher

---

<div class="post-metadata">

**Author:** ![Sticks18](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sticks18](https://community.smartthings.com/u/Sticks18)\
**Post date:** [October 19, 2015, 4:11pm UTC](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623/41 "2015-10-19T16:11:11Z")

</div>

Just a heads up for those of you using this app with either Osram RGB bulbs or directly connected Hue bulbs, I’ve modfied the Improved Zigbee Hue devicetype to add Color Temperature capability (and some UI tweaks). The bulbs implement the color temperature aspect in addition to RGB, so you can treat them as color temp when used with this app for direct control of the various white shades.

> [@Hue bulb without Hue Bridge?](https://community.smartthings.com/t/hue-bulb-without-hue-bridge/3323/97):
>
> I decided the default direct connect device type wasn’t good enough, so I got a little crazy. Here’s the end result. All Hue A19 bulbs (both new and old) are actually extended color lights, so you can use the color temp portion of Zigbee and the bulb goes to “White” mode for a pleasing array of natural white light. I also brought in some color naming from the Osram Gardenspot devicetype and applied it to the main tile. The last trick is that the two white presets in the color picker, go directly to 2700K and 3500K white instead of trying to approximate it via hue/saturation values.

[Previous page](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623.md?page=1)

[Next page](https://community.smartthings.com/t/obsolete-circadian-daylight-smartthings-smart-bulbs/13623.md?page=3)
