I am definitely thinking this is SSDS because if I restart the app it works for like a day. Anybody here a better coder than me that can add a watchdog function to this app? Similar to how pollster restarts itself?
Sorry it took so long. I think I’ve got it all worked out. I’ve changed the way that events are scheduled. I’m no longer using the built in sunrise/sunset schedulers and I’ve added a watch dog function as suggested by @ADamL. I’ve even taken it a step further and added a method to check that the watchdog schedule is still running. The watchdog check is run on every trigger and it’s restarted if needed. There’s still room for improvement but this should be a good start.
Also in this update:
Now your light levels will be remembered until the next night when changed manually at the switch during standby. This is for the standby light levels. The trigger levels will not be effected.
Cleaned up the main settings screen. Unused triggers are now collapsed by default.
Love the way your light works, I thought of something I’m not sure you can incorporate or not but since it’s Christmas time can when the light is in its “dim” mode can we have the color of the light red, green, blue etc. considering we are using a rgbw bulb and then when someone arrives goes to the set brightness in white and then go back to the pre describes color in the dim mode in other words be able to select the color of the dim mode and go to white at the desire level when someone arrives.
Has anyone else had a problem with the light not shutting off at sunrise. Three days in a row I’ve shut it off manually because it not automatically going off. It comes on fine and dims correctly or brightens with motion just fine. Just not shutting off at sunrise. Had been working perfectly for two weeks.
@jdiben, I love this app and have been using this for my porch light. I have since got some motion and lux sensors inside my house and tried using it for my kitchen to turn up a light I normally keep on very dim and bring back down to that same dim level.
If possible, I would like to change the default sunset to sunrise (+/- an offset) to specific times of day instead of sunset to sunrise. How could I go about modifying this app or getting it modified to allow that choice?
@jdiben Great App !..thanks, any thoughts or tips to adjust code to configure seconds for dime instead minutes ? For a stairs light project, minutes could be too much time to dim stairs light. THANKS for your recommendations!
That should treat whatever value you set for minutes to be evaluated as seconds. You may also want to change the min and max values just above that line. As it is now, you will be limited to between 1 and 30 seconds.