Question: Prioritize different wattages electric heaters & dehumidifiers with using Excess solar power

In our house, we have in our large living room three different smart electric heaters with different wattages. And I’m looking for a way to use them in combination with solar energy. So the main gas heater does not need to work that much. they are already implemented in Home assistant.

  • 450-watt infrared heater at a desk (homework)
  • 1200-watt convector heater at the wall
  • 2400-watt oil-filled radiator

Now, when excess solar is 450 watts, I want to put on the infrared heater; when excess solar is 1200 watts, I want to put on the convector heater (and turn the infrared heater off if needed); and when excess solar is 2400 watts, you get the picture. And also some automations to the other side when solar power is going down.

How does this get done as a home assistant?

I also have 3 smart dehumidifiers from around 350 watts in my home that I want to work together by priority and turn on/off on excess power with the heater system (heating has priority). And some dehumidifiers I want to turn on prior to others. like the one in the basement has the highest prior to being turned on, then the one in the bathroom, etc. They are implemented in home assistant.

Prio 1: Dehumidifier 1: Basement (300W) 20L/h
Prio 2: Dehumidifier 2: Bathroom downstairs (250W) 16L/h
Prio 3: Dehumidifier 3: Bathroom upstairs (250W) 16L/h

Are there blueprints that already give this kind of solution, or do you guys have any tips on how to accomplish this in automation?

Thanks in advance