Sorry for the long delay. Here's an update on my idea to use ESPEasy for setting the sunrise/sunset states.
Initially I found that ESPEasy wasn't compatible with my Dahua and Amcrest cameras. Fortunately the issues were resolved by the main ESPEasy project developer. For those that are...