4 ms·
Why all this instead of a simple cronjob switching from performance to powersave profiles depeding on current time (=electricity price)?
by ajsnigrutin 2y ago
Why all this instead of a simple cronjob switching from performance to powersave profiles depeding on current time (=electricity price)?
- pests 2y agoI'm on a time of use rate plan, most expensive from 11am-7pm. However they also have "Critical Peak Events" which increase the rate about 10x to over a $1/kwh that last up to 4 hours. Just saying it would be a bit more complex then just checking the time.
- ajsnigrutin 2y agoSo how do you get that data (status) now (if(is-critical-peak-event){})? Do the smartplugs gather some smartgrid-style data?
- pests 2y agoI do believe I've seen some plugs that do connect to some data source to do it automatically, but I'd rather not give plugs access to the internet haha. Our provider also gives advanced notice via text or email so its totally possible to connect it up yourself.
- joshvm 2y agoIt depends on your supplier, because they set the pricing and that information gets displayed on your meter. Octopus (UK) has a dynamically-priced service called Agile where you can query the API as a user; in some cases the API doesn't even need a login for regional pricing. You would have to build some logic on top for most smartplugs through something like HomeAssistant. There are storage batteries which can react to pricing, and some which will also work in concert with current solar power or other renewables. https://octopus.energy/blog/agile-smart-home-diy/ https://octopus.energy/blog/agile-smart-home-diy/ https://www.zerofy.net/2024/03/26/meter-data.html https://www.zerofy.net/2024/03/26/meter-data.html for some more European info on meters, though mostly focused on accessing your own usage data.
- naveen_k 2y agoA cronjob would definitely work in most cases if the goal is just to auto change freq profiles during set ToU periods. I just wanted a more flexible system where the system can auto change the profiles based on actual utilization so demanding tasks aren't slowed down.