I’ve done essentially the same thing for several of our heavy load circuits around the house using an Iotawatt to relay data to InfluxDb. From there it’s pretty easy to write a script that will query the current load and toggle a switch in HomeBridge for automation. Pretty fun stuff.