New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Enhanced Schedule / Sunrise Timed Macros #341
Comments
I really like your suggestions, and I want to at least integrate the sunrise/set part of it natively at some point (likely OpenWeatherMap) as I would imagine a lot of users wanting to turn on the lights at sunset! (of course my point below also applies to this, you can easily do this using HA) About the calendar support, that seems a bit advanced to implement, but I'll keep it in mind. Creating advanced schedules via JSON is easier, but scheduling features like this have excellent support on various home automation platforms (HomeAssistant is currently getting native WLED integration!), so it might be a better idea to use that for now :) |
Aircoookie Please have look at this implementation @ timers and NTP based time. |
@sujitrp Seems like they pretty much have the same feature set WLED does, apart from the random time offset and sunset/sunrise calculations. The latter is something I'd really like to add to WLED and it's nice that they found a way to calculate that from lat+lon so I don't necessarily need to use a weather API straight away! |
A usermod was recently added that uses Dusk2Dawn to calculate sunrise and sunset times, and then runs a macro at those times. At the moment, it's not a very elegant solution, but it does serve the purpose of "do something at sunrise" and "do something else at sunset." Using the usermod requires a bit of code editing (to set your latitude/longitude, any offsets desired, and to confirm which macros are run at which time..) |
I just wanted to suggest that if this gets looked at again that the Enhanced Schedule aspect should probably implement iCal RRULEs, both for implementing/scheduling in the interface, but also being able to parse external iCal files. Benefits of this approach:
|
Sunrise/sunset triggered presets available since 0.12. Closing. |
I was thinking about a way to expand the current timing functions available. A couple of options that would make it easier to set and forget.
I don't know what would be the best but a couple of ideas:
I have beginner experience with JSON APIs but would enjoy more information on how to use it better, does it allow for scheduling? If the easier way is for me to write out a JSON file with all the information i need for the next month or so i could do it.
The text was updated successfully, but these errors were encountered: