Ensure automation constantly runs in a loop?

Hi all,

I have a couple of automations which control some computers and devices in my house depending on the live energy prices, and solar output. The automations are starting to get a bit all over the place as I have 10+ devices dependent on these criteria.

Is there a simple automation that I can group the devices into, and turn them on/off depending on available excess solar energy?

Just use a state or numeric state condition in your automations that checks for excess solar energy.

This question does not seem to have anything to do with your post title.

You generally don’t want continuous loops. Home assistant automations should be state driven.

Most likely yes. What is the part where you are struggling? What are the rules for your automation?
If the criteria is everywhere the same, just add multiple entities in the service calls.
And what does the title of your post have to do with anything?