[Release] [App] Circadian Daylight (v0.80) (Port)

That’s correct! Essentially color temperature will be the most accurate, then RGB, then dimmable—but you don’t need to put devices in each category.

This app actually uses time-of-day and sunrise/sunset based off of your hub’s location to set the color temperature. You can set custom sunrise/sunset times, too, so you can have a consistent year-long schedule.

1 Like

Ah, congratulations!

Ok thanks for clarifying!

So if I got this right the app knows three modes. 2700k, 6000k and 6000k at 1%....

The latter will be chosen according to when my hub enters sleep mode (where can I configure this sleep mode?).

Does light temperature also automatically change when the lights are on? ( so when morning goes into noon) or do you have to turn them off and on again?

Also how does the app dim lights? How does it know how bright it is outside? ( same time but cloudy or not can make a huge difference in brightness....)

Thank you!

Thanks again!

Are the other two assigned as sunrise/sunset to midday color temperatures?

Yes. It’s a pretty fluid change. I think it updates something like once every 1-10 minutes, but that depends.

Currently, it’s time-based on sunrise and sunset times. I’m working on how to implement ideal brightness, but that’s pretty far down the road,

I'm sorry but I guess I missed something. I didnt assign anything. I just specified my lights and hit "done". I thought the app would do the rest. I was just repeating what I read about the app at smatthings forum.

So far it doesnt seem to work. Bulbs are always shining at 100% no matter if its evening/dark outside or not. Also I haven't notice any change in color temperature so far....but its only 11 am....so maybe in an hour it'll change.

1 Like

Brightness may be straight-up broken. Sorry about that! I’ll see to fixing that this week. Color temperature is tested and working, though.

Edit: To confirm, you’ve turned on enable brightness overrides in the settings?

I'm not seeing this happen. The version from ST with parent/child apps seems to do it consistently, but I haven't seen this behavior with your version.

Am I missing a setting?

Thanks,
Jon

Nope I didnt turn on any overrides. I only switched on enable dynamic brightness in the main menu.

Should I turn on all the overrides? Do I have to specify a value underneath then?
Best regards

Are you doing Color temperature, RGB, or Dimmers-Only?

Right, dynamic brightness should enable it. Something is broken. I’ll take a look into that. Sorry for the troubles!

Ok so do I have to turn on "overrides" in color temperature? Or can I ignore the "advanced options".

Only if you’re using an override—whether that be per-mode, or some other setting in there. You should only have to do it in the section that you’re using an override in. I’d like to find a way to make this more seamless in a future version.

I might have found the answer to why the app isn't working. Hubitat does'nt support my zip code.....what a fail.

OK. I apologize for the misstatement. It is working as described. I had my logic backward when assigning a switch on/off disabling CD behaviors. I'm in good shape, and it seems to be working much better than other versions.

I'll wait patiently for the parent-child so that I can have some of my light's CD behavior disabled by a switch and others not.

Thanks!

You can already do this—just create a new Circadian daylight app in your apps page for different devices. I usually have 10 of them or so, but I’ve toned it back while I’ve done some other development.

Shoot! Sorry to hear that. I guess having the overrides for sunrise and sunset are better than nothing, in that case :frowning:

1 Like

Awesome! Never thought of that. Thanks!!

1 Like

Any thoughts of why this might be happening? The attached log is from a single switch turning on, a single bulb, which is entered into CD.

I have only one mode called Anytime. The lights are staying at 2700k. I have this installed on my other hub and they are adjusting correctly.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.084 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Scheduling next step at: Sat Oct 12 09:13:07 MDT 2019 (sunset is Fri Oct 11 18:26:00 MDT 2019) :: 1570893187044

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.071 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): checking... 1570893187044 : Sat Oct 12 09:13:07 MDT 2019. state.nextTime is 1570893173334

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.068 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Scheduling next step at: Sat Oct 12 09:13:07 MDT 2019 (sunset is Fri Oct 11 18:26:00 MDT 2019) :: 1570893187040

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.065 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): checking... 1570893187040 : Sat Oct 12 09:13:07 MDT 2019. state.nextTime is 1570893173334

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.062 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): sunset time Fri Oct 11 18:26:00 MDT 2019

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.059 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.056 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): sunset time Fri Oct 11 18:26:00 MDT 2019

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.051 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.048 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): sunrise time Fri Oct 11 07:06:00 MDT 2019

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.037 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.034 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): sunrise time Fri Oct 11 07:06:00 MDT 2019

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:07.028 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:19](http://192.168.86.122/logs#app19)2019-10-12 08:58:06.996 am [info](http://192.168.86.122/installedapp/configure/19)Action: END-IF

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.993 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Brightness: 100

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.990 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.987 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.984 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.981 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[dev:36](http://192.168.86.122/logs#dev36)2019-10-12 08:58:06.977 am [info](http://192.168.86.122/device/edit/36)Front Entry switch is on

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.973 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Brightness: 100

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.971 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.968 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): HSV: [h:7, s:18, v:100]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.965 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.962 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.953 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.950 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.947 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.944 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.941 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): HSV: [h:7, s:18, v:100]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.938 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.934 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.931 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.929 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.926 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.923 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.920 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Hex: #FFA657

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.916 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.913 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.908 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.905 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Hex: #FFA657

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.902 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.900 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.897 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.894 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.891 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.888 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.885 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.883 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.880 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.877 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.874 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Color Temperature: 2700

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.871 am [info](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): The current mode is not set for an override.

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.866 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.861 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.856 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): Mode is Anytime vs null

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.853 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.850 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunsetTime - System Sunset time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.847 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): getSunriseTime - System Sunrise time: [sunrise:Fri Oct 11 07:06:00 MDT 2019, sunset:Fri Oct 11 18:26:00 MDT 2019]

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.841 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): modeHandler called

[app:20](http://192.168.86.122/logs#app20)2019-10-12 08:58:06.838 am [debug](http://192.168.86.122/installedapp/configure/20)Circadian Daylight (Newest Circadian Daylight AK): modeHandler called

I'm not sure I figured it out, but a reboot of the hub seems to have done the trick. I still get a lot of duplicates in the logs, but it is working correctly, it seems.

That's abnormal. Do you have a brightness per mode set, or any other mode settings?

UPDATED: I don't have anything other than the virtual device from my bulb groups added. No overrides or modes used at all.

Looking at the status page and it should also be false on the level, as I don't have CD adjusting dimmer levels.



1 Like