good afternoon youtube just doing a little bit of testing on the diversion load
setup here the diversion load on line two is trying to keep this side
close to zero so right now i'm burning up about 120 watts of power to keep line two close to zero
but i've got 97 watts of load on line one here and that results my total power is about 102.
so anyway there were two additional features i wanted to add to this diversion load project one
is i added a mode where diversion load one and two could help each other so for instance if diversion
load two got all the way up here to a hundred percent and this power here were still negative
that would mean that diversion load two just wasn't big enough to handle all the excess
power so i added a mode where if this gets to a hundred and this number is still negative i can
turn on diversion load one so if you had maybe minus 50 watts here i could add 50 watts here
to balance the two out so i call that my assist mode and then while i was working that code up
i looked at the condition logic and if you just change that condition around and say
if diversion load one is at zero and this power is greater than zero and you've got
power you're burning up here don't do that send it over here so this down here is called a
multi-switch it's a virtual switch and you can install this on your vera controller it's just
an app you download and then it gives you eight separate switches and what i used to do was i
could turn on two of my diversion load items here vsp one and two well i added a whole house
power mode here so watch what happens i'll turn switch number three on which enables
my sharing code where diversion load two shares power with line one so this number here will go
negative and then this number here will stay the same so i've got 107 watts coming in 102
but look at that i've got 101 going out so i'm pushing 101 watts out on line two and bringing
in 102 watts on line one and then look at my house power it's down to 15 watts instead of 102 watts
and now i'm burning up much less power here and whatever load shows up on line one i'm taking
advantage of that to burn up the excess power on line two so again that relies on a quirk of the us
split phase 240 volt power system because line one is on one half of a transformer winding
line two is on the other half and then there's a neutral connection in the middle but if you bring
in a 100 watts and you push out 100 watts the sum is close to zero now right now i think a cloud
just blew over we've had a lot of clouds today so now i've lost my excess power and the whole house
is up to 200 watts and you can probably see that here yeah i'm down to 600 watts so i lost like 400
watts of solar coming in with that cloud but now it's climbing back up so you were back up to 950
and this number here should now go negative again there we go minus 152 now that's too much because
i drove the whole house negative so now this one has to kick in and soak up some of that
excess power so yeah it's having to chase the solar output because you got clouds blowing over
and now i think the refrigerator kicked on because that power went up we could probably
go take a look at that right here refrigerator yep 117 watts and then my grid tie is bringing in 218.
so yeah with all these varying clouds and also the varying loads like the refrigerator on and off all
day you can't just set this up at a certain number and leave it you have to have this control system
running all day long turning things on and off and shuffling power from this side to this side
right now i've got a small grid tie bringing in two or three hundred watts on line one and then
i've got my big hybrid inverter on line two but ultimately i want to move this inverter with the
big solar panel array over to line one and then i've got a second hybrid inverter with a smaller
panel array for line two one of the issues is the inverter that will be on line one has a
about thirteen hundred watts of panel facing due south the array on the second inverter on line two
has about 800 watts facing southwest so these two inverters will get different amounts of power at
different times during the day and then likewise the loads on line one and line two are going to
vary as well this will be on and off all day long but the amount of power coming in here and the
amount of power coming in here is dependent on the solar panels and which direction they're facing
and it may not match up to the loads here and the loads here but with this sharing logic if there's
excess power here i can shove it up to line one and if there's excess power here and i need it
down here can push it the other way and then whatever is not needed gets burned up so here
there's a 185 watts being shuffled from one side to the other and i'm only having to dissipate 100
watts yeah i think that'll really be a powerful feature once i get the two hybrid inverters hooked
up they'll be hooked up with a parallel cable so they know about each other but when you're
in the split phase setup you don't hook up the current sharing connection so in the split phase
configuration this inverter will be supplying 120 volts and whatever current it can supply
this one will be putting out 120 volts but out of phase with this one 180 degrees out of phase
but it'll supply whatever current it needs to but the two loads here and here may or may not be the
same if i turn on my oven for example that's like 2700 watts at 240 volts so that puts 1350 watts
here and 1350 here so it's balanced but if i run a big 120 volt load like a microwave oven or my
dishwasher or something out in the shop that load might just show up here it might show up here you
don't know where the load is going to be and that load may not match the amount of power available
so the idea with this diversion load logic is it can shuffle power back and forth between these
two sides now technically the power doesn't flow from here to here it goes out to the transformer
that's out on the power pole out behind the house and the current for line one comes in but the net
ends up being zero or as close to zero as i can get so yeah i just thought i'd show you that
feature and then i wanted to show you one other thing originally i was trying to have a separate
variable keeping track of what this load was set to so there was the load itself was set to zero
but then i had a separate variable or a counter that was trying to keep track of this
and the problem that caused was these two the counter and the load those could get out of sync
by simplifying the code and just using the value that the dimmer is set to
and making that a device property i can go in here and i can mess with this i can say hey 33
you know something turned on i turned on a 200 watt load and the code comes in and says oh i
don't like that i'm gonna get rid of that load and you can see it did it in one cycle you can
come in here i'll put in 367 watts and then the code says hey i don't i don't really like that
number it wants to get this down close to zero it's still a little high here and there it goes
it took two cycles to get down close to zero so yeah that that is working really nice so that that
was a really good change i made in the code so all of those features to share the power literally are
two lines of code so what i have is two additional conditions so this is what i call my assist mode
basically says if the other diversion load is at a hundred and the power on that other line
is negative then i compute a new increment to use up that excess power that's on the other side
and then likewise the share code basically says if i have that switch this is switch
number three i call it whole house diversion load and the other diversion load is off at zero and
the line power on the other line is greater than zero then i compute an increment for the dimmer
so here's the diversion load new setting code so i basically say take the existing diversion load
number and then i add the increment from the the regular diversion load plus the assist increment
plus the sharing increment and those all could be plus or minus numbers and then i just say if it's
less than zero it's zero if it's over a hundred it's a hundred otherwise that's the number just
add those four things up and you can see right there this is diversion load one works out to be
zero and then here's diversion load two is 33.6 so yeah if you have any questions about that or need
any details on exactly how the code works post up in the comment section below and i can maybe do a
follow up video with some details so hope you enjoyed that and as always thanks for watching you