Have you looked into the Shelly Plus?
https://us.shelly.com/products/shelly-plus-1pm-list-copy?variant=49667619684693
Paired with one of these?
https://us.shelly.com/products/shelly-plus-add-on?variant=49666058813781
I haven’t installed them yet, but I just ordered some to use for floor heating. They work with Home Assistant, so I plan on using it for the logic and I’ll incorporate the in floor thermostat with them. I also will use a separate sensor in the room for humidity and temp for my automation.
My server uses about 6-7 kWh a day, but its a dual CPU Xeon running quite a few dockers. Probably the thing that keeps it busiest is being a file server for our family and a Plex server for my extended family (So a lot of the CPU usage is likely transcodes).