Summer Energy Management with Cron Rules

Summer is here, and with it comes the challenge of managing energy consumption on my sailing boat. The electricity line is limited to 6A@230V, and I have an electric heater, water heater, and electric oven top. The goal is to prevent the fuse from blowing by alternating their usage throughout the day.

I’ve set up a basic cron rule system to manage this, but I’m unsure how to combine the rules for staggered usage. Here’s what I have so far:

  1. 24:00 to 07:00 - Heater only
  2. 10:00 to 15:00 - Water heater only
  3. Else - 10 minutes heater on, then 5 minutes water boiler on
  4. Oven top - Manual switch or GPIO on Raspberry Pi, with heater and water heater off

The first two rules are straightforward, but integrating the third and fourth is tricky. I need a way to restart cron rules dynamically. My current setup uses multiple cron triggers, but it’s not bulletproof.

Has anyone tackled a similar energy management challenge? Any tips on refining the cron rules or implementing a more robust system would be greatly appreciated! Let’s brainstorm together to find a reliable solution.

Looking forward to your insights and experiences!