to simplify - you have a battery charger with three LEDs on it - bulk, absorb, and float.
You have detected that the float LED is on, and that turns on the heater? when the bulk light comes on, you turn off the heater?
Sort of... in an over simplified kinda way.

There are two chargers. Both have LEDs. I don't read any of them because they don't show the charge mode in a simple way and besides it's easier to read the data from the MODBUS ports. I then calculate their combined output power and make decisions based on that plus the charge mode, battery voltage and whether the load is currently on or off (having prior knowledge that turning the load on will present a 650W demand means I can try to anticipate what happens if I were to turn it on).
But don't worry, if that appears too simple then fear not, it's still under development... This week has been busy with work but with the Easter Weekend comes some more software tinkering and a solar input sensor.
sounds complicated to me

has your new chargecontroller not an in built secondary control relay , that can handle these "dump load" ideas ?
Morningstar do sell a relay driver that works with the TriStar and a normal non-MPPT TriStar can drive a DC dump load directly. But the relay driver is pretty expensive (£133) and you might need a hub as well. My controller cost £30 plus some monkeying around with VB and left-overs from my parts bin. The MPPT TriStar can't drive a dump load as it is a series switching battery regulator and besides my dump load is a 3kW 230V AC heater on the other side of the house.
In addition, as well as controlling an AC load remotely (as it is controlled over an IP network, the load could could be anywhere in the world with an internet connection), it also does system data logging. Being fully programmable, I can fiddle about with just about anything. Another project in the pipeline is to have the computers upstairs choose their own power supply. There's enough relay outputs to make a source change-over switch for the computer room UPS that will implement the safety delay required to stop the EMF bounce-back that can happen if you just use a change-over relay on a transformer with unsynchronised AC phases. One supply needs to turn off, wait for the magnetic field to collapse before re-energising the transformer with the alternate AC supply.
Some 320 Amp 2V YUASA gel cells for sale from the same place item: 220580804843
(15mins from where I live. Wish I had the roof/garden space for PVs! )
Yeah, I've been watching that seller for a while and these 320Ah packs would be ok if they were NPC ones but they are EN ones that aren't rated for cyclic use. They'll only last about 250 cycles from new. Still they are cheap. I found a UK distributor for the Deka ones I have (now branded as MK Battery). They're expensive to buy new though (£183+VAT and delivery each).
But back to this week's developments...
Playing about with a lux sensor to improve the estimation of available power. At first I thought of using a small solar panel to generate a voltage but I happened to have an old light dependent resistor so it was easy to just wire it into the A/D input that has a 5V reference voltage anyway. I made the LDR just form the lower half of a voltage divider.
LDRs are commonly used in dusk to dawn sensors... with good reason, as I discovered. They are very sensitive at low light levels - changing from a couple of megohms to about 50 ohms in full sun. But they aren't particularly linear and so in all but dim light I just got a saturated reading so couldn't tell between 100W solar input and 1kW. I had to attenuate the light reaching the sensor so that it would work in full sun but at its dusk range.
Cockle shells are a useful thing here. Impervious to UV (unlike plastic) and whitish in colour with a high opacity (but not completely so), they make good light filters. I glued the sensor to the inside of a small one and then silicone gooed a bigger shell on top to cut the light even more. Not shown in the pictures is the final version with outdoor white gloss paint on the top to filter / reflect a bit more light to get the output "just so". I also filled in the back with waterproof outdoor Polyfilla to seal it up and give it some weight so it wouldn't flap about out on the windowsill where it looks up at the sky. The shells also serve as a diffuser (being curved) so that the sensor responds smoothly to light hitting it from a variety of angles.

Then I just had to modify the software to read the A/D port, scale the output to make 0 read dark and log the array output against the sensor data for a while to get the thresholds. Actually, logging the data in Excel and then using the graph trend fit function, I could get a reasonable fit with a cubic term quadratic equation that I might put into the program so that it can estimate the solar input in Watts rather than just numbers but for now this works well enough.

The load now cycles much less, although there's quite a big margin of latitude between what the sensor detects and what the array actually produces due to shading of parts of it at early morning or late afternoon.
In other news... I finally got round to making an A frame stand for the old 48W array (rather than just propping it up on a water butt). I also wheeled out some of the spare 15W panels and lashed them to some wood and threw them up on the roof, boosting installed capacity to almost 1.5kWp (in theory).
