Hi OzGaz,
I have a very similar setup. I have solar (and get the PV output from the inverter over wifi, thank goodness) but also get stuck with the grid consumption.
I used a pulse meter (like PowerPal) to read the red flashes that correspond to energy use. My model is the Atlas MK7c, picture attached.
I used this ESPHome cookbook entry as a guide (Non-Invasive Power Meter) I used a D1 mini and ran cable (cat5 cable repurposed to run the 5V, GND, data to the box. In the box, as you can see, is a light sensor stuck on top of the blinking red light. The blue tac is holding the sensor on + keeping light out. I only just got this up and running a few weeks ago so haven’t properly tidied it up. Some tips: when testing this, turn off your solar and run a high wattage appliance like the dishwasher, oven, air con as you need it to blink to actually work. Interestingly (i.e. frustratingly), the sensitiviy setting on the sensor (adjust with screwdriver) needed to be set for when the power meter lid was closed. Strangely, light was getting in somehow and messing with the readings.
I tried a few different ESPHome sensor settings, but this one worked for me (and probably works for your model given it’s the same brand):
#### ESP HOME config, not in home assistant
sensor:
# usage right now in kW
- platform: pulse_counter
pin: D4 # change your pin to whatever you're using
unit_of_measurement: 'kW'
name: 'Grid energy usage'
id: power_meter
internal_filter: 10us # Cookbook article says ESP7266 (i.e. D1 mini) can suffer too much noise and needs internal_filter, and count_mode set.
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
filters:
- multiply: 0.06 # (This number is calculated by dividing 60 with the imp/kWh of your power meter)
update_interval: 30s
accuracy_decimals: 1
Hopefully the above helps some poor bloke who is trying to figure this all out.