I’m looking to deploy a light at a friends house, they want this light to come on at certain times and go off at certain times as a driveway light. As the seasons change they just want to be able to bring up the WebUI and change when that on / off time is.
Right now I’ve got:
wifi: ap: ssid: "DrivewayLEDs captive_portal: web_server: port: 80 output: - platform: ledc pin: 22 frequency: 850 hz id: pwm_output1 inverted: false - platform: ledc pin: 21 frequency: 850 hz id: pwm_output2 inverted: false light: - platform: monochromatic output: pwm_output1 gamma_correct: 1.0 name: "DrivewayLED1" id: "DrivewayLED1 - platform: monochromatic output: pwm_output2 gamma_correct: 1.0 name: "DrivewayLED2" id: "DrivewayLED2" time: - platform: sntp id: sntp_time
They’re less technical so the idea is that I can flash an M5Stack Atom Lite, and then send it across the country to them.
We know it’ll work with the ledc like this, hooked into their LED driver, but I just ideally wanna now give them a way to set:
- Time on
- Time off
And have it do the same every single day without fail, 365 days a year.
Then, 2-3x a year they can log in to the WebUI of it and change it from, say, lights turning on at 1800 to make them come on at like 2100 in the summer.
What’s the best way to make this work all self-contained on the unit itself?