Changing 0 to 1. and in line 24, 45 and 48 too. (for my system)
Today i will work more on my node.red flow - here in my country we have differented tariff, so i will make a flow to cut discharging at 50% and wait to start discharging again at 1700
And ofcause to stop discharging when EV is charging so i wont empty battery to car
thanks muppet3000 and mjdyson, you saved my day - and vacation . i am no programmer so slowly progressing looking very much forward to changes in the future - many people are asking for automation of their growatt hybrid inverters, BZ.
Is the flow working? I would be very interested in getting a copy of the code (to node-red) to implement in my system. Exact same reasons as you, dont want the car to empty the battery, and dont want to pay too much after 1700 hrs
(And i blow my fuse on one phase when exceeding 25 amps. Car + solarbattery charging at the same time = 30 amps)
the screenshot from node red is the interface to HA - and that is working, now i am doing the other stuff to talk with my ev charger etc, but the above is on pastebin here:
everything from mjdyson HA implementation is controllable from node red, except time slot… i run 00:00 to 00:00 just turning on/off timeslot.
my idea is to when i charge my car i set my growatt to batterymode and 10% SoC - from what i understand the batteri will start to charge to 10% - but actually never will because my bms stops before that. but when i have set to charge yes - the battery wont discharge - remember, work in progress, and i am no coder, so it will be trial and error
Hi. I’m also interested in this hybrid inverter solution. I now have a Growatt TLX ( no battery possible) and want a hybrid growatt with some kind of battery.
One question. Do you just need a hybrid inverter or do you also need the modbus rs485 connection to the smart meter like a Acrel or Eastron meter?
Dont know if it is any use for you… but for reference when you get to this.
i have 2 powerplants in my account.
it works switching between them with altering 0 and 1 in plant = plant_list[‘data’][1] in growatt_app.py
in one plant i have two inverter, a sph online 24/7 and a mid online when it is not dark.
when the mid is online it get device = plant_info[‘deviceList’][0]. <<-- 0 and when it is offline my SPH gets the 0. (as in the first) device… so for now im am changing the 1 and 0 for day and night. my skills is not to figure out what to do about this for now… but just reference info for you when you get to the task in the future.
For those feeling adventurous… I’ve created a test branch on github. I’ll try my best to keep everything in there working. Just keep a copy of anything you’ve got working! You’ve been warned
First change is to simplify the configuration a little more. There’s no new functionality this time. All of the configuration aspects (script, sensors, inputs / helpers) are now provided in a single package file. It will break your GUI until you change it to read from the new sensors / helpers.
Hello @affer - I’ve got something for you to test with multiple device options. See another new branch linked below. I will merge this in with the other Test branch if it seems to work ok.
I’ll advise you take a backup of your working code before testing this - I’ve tested it here, but I only have one device.
Also, it might be worth getting the first Test up and running first as this changed how some of the entity ids were created / configured.
I’m making this blanket post in loads of different locations, but just so you’re in the loop, I’ve just made a big post over here: Growatt Integration - Roadmap (see the original post and my latest comment) about moving the integration out of home assistant core and into HACS.
If some of you are still interested in using it, please take a look at the new incarnation of the integration (it’s currently identical to the version available in Core but will diverge in the next few releases), then please go ahead.
At last i got some time to update. Update to test branch went fine (and working) great update, makes set up a lot easier
the branch with multi device i had some troubles… the first error was kind of my fault. i had an plant with no inverter in, deleting this plant could get the next plant to load… But i only get one plant (i have two plants, both with SPH inverters in it)
We should be thankful for some great work from the community for the new setup file. It’s made things very simple.
Currently I only have an iterator each ‘device’ within a single ‘plant’. Without multiple inverters it’s hard to test. However, I think I’ve got a solution - I’ll try to code up something tomorrow and get it out for testing. If this doesnt work, I might need to get some more data.somehow. A long day moving earth around in the garden has wiped me out
One thing I’ve noticed, calls to the server time out a lot. Traceroute shows it’s not getting to the end server after 10+ hops… rather than the server calls being blocked. As a future update, I’d like to build a timestamp / response code from the server back into the UI. Maybe even a request timestamp too. Watch this space
@affer - new code on multi-device branch if you’d like to try. It should iterate through all plants to get all devices, Dropdown box still needs to be refreshed to be selectable. Weird interaction between AppDaemon and HA i need to see if it can be resolved.
No problem. with your and others input, and my nodered scripting i got a really good integration working with charging batteries overnight at cheapest price and discharging at high tariff. ofcause work in progress… but this is really going somewhere
I guys, I’ve been watching this one from the sidelines what with all of the stuff I’ve been doing to move the Growatt Integration into HACS I’ve had my hands full.
I’ve still got some other bits I need to wrap up on that front and also add the support for the systems that are currently missing, but I’d love to try and integrate what you’ve been doing in to the HA Integration.
I already have an email chain going with @mjdyson from before Christmas so I’ll resurrect that and see what we can do, especially if there’s stuff to feed back into the core python library.
Keep doing what you’re doing! Just wanted to check in and let you know I’m still paying attention.