July 5, 20214 yr 15 minutes ago, Sc00bs said: Best to use the updated Flows from the @jacauc github page About to update them with the changes above 😊
July 6, 20214 yr I'm at a loss here, still haven't managed to get any results or progress in editing my parallel register values. Starting to think there's something wrong with either my inverters or how I have them configured. I don't suppose anyone would be willing to try (with the inverters switched off/not doing anything) using modbus to change the values of the parallel register (417), and see if their inverter allows this?
July 6, 20214 yr So I'm finally ready to dump the Solarman data logger after having it delete 4 days of consumption and production data. Fortunately the data is still available on the Solarman pro web portal. Anyone have a step by step guide on getting started? I don't have any home automation so this will be my first step in this direction. Hardware Pi (OS?) 1 or 2 pi's? Also want to connect it to the pylontech battery. Any specific cables? Software Node red Graphana Home Assist MQQT Any other software? Software for my android phone? I can export the historical daily data from Solarman in excel format. Can this be imported into the database? I have absolutely no idea where to start with this. Links to hardware and software would be appreciated.
July 7, 20214 yr Has anyone got any thoughts on how to get or calculate the total kWh for each of the PV1 and PV2 arrays? There's a "Day PV PowerWh" register at address 108, but nothing for each of the individual ones. I'm hoping to push this info back into Solcast to train it's solar forecasting algorithm for my rooftop.
July 7, 20214 yr 34 minutes ago, JuanH said: Has anyone got any thoughts on how to get or calculate the total kWh for each of the PV1 and PV2 arrays? There's a "Day PV PowerWh" register at address 108, but nothing for each of the individual ones. I'm hoping to push this info back into Solcast to train it's solar forecasting algorithm for my rooftop. I think you could do it on Home Assistant using the Riemann sum integral https://www.home-assistant.io/integrations/integration
July 9, 20214 yr On 2021/07/06 at 7:58 PM, Achmat said: So I'm finally ready to dump the Solarman data logger after having it delete 4 days of consumption and production data. Fortunately the data is still available on the Solarman pro web portal. Anyone have a step by step guide on getting started? I don't have any home automation so this will be my first step in this direction. Hardware Pi (OS?) 1 or 2 pi's? Also want to connect it to the pylontech battery. Any specific cables? Software Node red Graphana Home Assist MQQT Any other software? Software for my android phone? I can export the historical daily data from Solarman in excel format. Can this be imported into the database? I have absolutely no idea where to start with this. Links to hardware and software would be appreciated. @Achmat between this topic started by @Bloubul7 and the one started by @Sc00bs, I managed to get my inverter data into my Home Assistant. For Home Assistant you can use a Pi but I'd recommend an Intel NUC as it has significantly more power than the Pi. With HA you will need Node Red and the MQTT integration, among others as you need - https://www.home-assistant.io/. To get the data from your Sunsynk you'll need a RS485-USB adapter, I'm using the following one https://www.robotics.org.za/RS485-3P?search=rs485 Don't go for the R30 one they have, while I did get data it was a little flaky, as others have commented too... You can get the Node Red flows that deal with getting the data from the inverter, via the RS485 adapter, and publish them to InfluxDB and MQTT (so you can use the data in HA) from the GitHub @jacauc setup - https://github.com/jacauc/SunSynk-NodeRed As for getting the data from Solarman into InfluxDB, there probably is a way but I don't know how off-hand...
July 9, 20214 yr I must just be missing something but having spent a good few hours looking at it, it's time to ask... Part of the NR flows @Bloubul7 put together is the dashboards, which have buttons to save, and read, default and loadshedding settings to/from files, to then potentially use to write to the inverter. I've found reference to file names like "DS_SoC_Zone1" but I can't seem to get the files saved to disk, and therefore cannot read from them. When I click the buttons on the dashboard to save nothing seems to happen, certainly don't get any files saved on the NUC. I'm not sure where the files would write to but have searched the entire disk within a SSH shell and don't find any files but those names. I have all the flows enabled except the ModBusWrite flow as I don't want anything written back to the inverter yet. An anyone point me to something I need to do/change?
July 9, 20214 yr Author 8 minutes ago, RhysMcW said: I must just be missing something but having spent a good few hours looking at it, it's time to ask... Part of the NR flows @Bloubul7 put together is the dashboards, which have buttons to save, and read, default and loadshedding settings to/from files, to then potentially use to write to the inverter. I've found reference to file names like "DS_SoC_Zone1" but I can't seem to get the files saved to disk, and therefore cannot read from them. When I click the buttons on the dashboard to save nothing seems to happen, certainly don't get any files saved on the NUC. I'm not sure where the files would write to but have searched the entire disk within a SSH shell and don't find any files but those names. I have all the flows enabled except the ModBusWrite flow as I don't want anything written back to the inverter yet. An anyone point me to something I need to do/change? Hi, The settings are stored in the global context file in Node Red. In order to get it to work you will have to enable the global context to be stored to your local file system. See below link to assist: https://nodered.org/docs/user-guide/context
July 9, 20214 yr 1 hour ago, Bloubul7 said: Hi, The settings are stored in the global context file in Node Red. In order to get it to work you will have to enable the global context to be stored to your local file system. See below link to assist: https://nodered.org/docs/user-guide/context Thanks @Bloubul7, got it writing and reading now, see the context/global/global.json file now with the values
July 19, 20214 yr I'm trying to retrieve essential and non-essential loads via nodered. Can anyone clarify the difference between the modbus registers that provide grid info: 167 - 172? And the difference between the various load registers: 176 - 178?
July 19, 20214 yr 28 minutes ago, Denarius said: I'm trying to retrieve essential and non-essential loads via nodered. Can anyone clarify the difference between the modbus registers that provide grid info: 167 - 172? And the difference between the various load registers: 176 - 178? Someone posted this on another thread. Not sure how accurate it is, however:
July 20, 20214 yr 10 hours ago, JuanH said: Not sure how accurate it is, however: those are correct, the NR flows from this topic have all that except the generator load and essential load, but those registers and calculations are correct (I've added the essential load calc to my NR flow)
July 20, 20214 yr I see the new inverter firmware version 419 has start and end times for the system mode times. Does anyone know the new modbus registers? Is there an updated document available perhaps?
July 20, 20214 yr 56 minutes ago, RhysMcW said: I see the new inverter firmware version 419 has start and end times for the system mode times. Does anyone know the new modbus registers? Is there an updated document available perhaps? The way I understand it, this is just a UI change. before, you would specify a Time Zone, and then the next Time Zone would signify the end of the previous one. The first time zone would go in MB Register 250, and the end zone would be in MB Register 251. With the new update, the start and end time are explicitly set, but for example on the first Time Zone range, would still occupy MB Registers 250 and 251. That is my guess, at least. Will test when I eventually get the update myself. Edited July 20, 20214 yr by JuanH
July 21, 20214 yr 21 hours ago, JuanH said: With the new update, the start and end time are explicitly set, but for example on the first Time Zone range, would still occupy MB Registers 250 and 251. That is my guess, at least. yep, looks like you are correct. I got the new 419 and if I change the time value in the top left field, start time for 1, then the bottom right field, end time for 6, updates with the same value.
July 26, 20214 yr Has anyone tried setting the time on the inverter using the modbus connection? I've done a NR flow to get the current date/time from the inverter and compare it to the current date/time, on my HA box, and if there is more than 10 seconds difference then I want to set the date/time on the inverter. The registers are 22,23 & 24 which are 2-byte registers. I can get the date/time fine in NR but I can't seem to get the inverter time set. Does anyone know how you're supposed to setup the payload for sending to the inverter? Here's my current function code for setting up the house/minute for register 24 which the inverter seems to be ignoring as the hour/minute is not getting set. (msg.minutes & msg.seconds are setup in a function prior to this one) function byteArrayToLong(byteArray) { var b_value = 0; for ( var i = 0; i <= byteArray.length - 1; i++) { b_value = (b_value * 256) + byteArray[i]; } return b_value; } msg.payload = { 'value': [byteArrayToLong([msg.minutes,msg.seconds])], 'fc': 16, 'unitid': 1, 'address': 24, 'quantity': 1 }; return msg; which results in the following payload being sent to the ModBusWrite flow, via a link-in/out "payload": { "value": [ 11318 ], "fc": 16, "unitid": 1, "address": 24, "quantity": 1 }
July 28, 20214 yr I've recently had a Sunsynk 5.5kw installed and I'm trying to collect data using the RS485 port without success. No matter what I try I can't collect data. I've tried the ports labelled RS485 and BMS 485. I'm using the following rs485 to USB converters: https://www.robotics.org.za/RS485-3P?search=rs485 The ethernet cable I'm running to the device is wired like this: Cables 1 and 7 are connected to B and cables 2 and 8 are connected to B. I've tested the ethernet cable itself by crimping both ends and connecting my laptop to it. After adding the flows node-red continuously tries to connect. When trying to connect using Python the minimalmodbus module the connection times out. Does anyone have any other ideas?
July 29, 20214 yr 13 hours ago, Gazza said: Cables 1 and 7 are connected to B and cables 2 and 8 are connected to B I think it should be 1 and 8 together and 2 and 7 together. The diagram is correct on the below link, table is incorrect. Haven't started the project myself but reading up on it. But you can red the whole discussion where the guys found the solution.
August 5, 20214 yr Hi, First of all Thanks to everyone for their contributions i have my inverter monitoring setup successfully on a Wemos D1. However i have a problem writing to register 243 (Energy Management Priority -> Batt / Load). From the documentation i have noticed that R/W is not mentioned for this register. Is there any other way / register to change the setting for Batt First / Load First? Any help will be appreciated.
August 5, 20214 yr 5 hours ago, faizanowais said: Hi, First of all Thanks to everyone for their contributions i have my inverter monitoring setup successfully on a Wemos D1. However i have a problem writing to register 243 (Energy Management Priority -> Batt / Load). From the documentation i have noticed that R/W is not mentioned for this register. Is there any other way / register to change the setting for Batt First / Load First? Any help will be appreciated. I am successfully writing register 243 via the NR modbus and the RS485-USB adapter connected to my SunSynk. I have a Node Red flow that changes the setting based on conditions during the day and it's all working, so the register is R/W.
August 5, 20214 yr Saw the new Home Assistant has big changes for energy monitoring. https://www.home-assistant.io/blog/2021/08/04/home-energy-management/ Any try it yet?
August 5, 20214 yr Author 8 minutes ago, jacauc said: Saw the new Home Assistant has big changes for energy monitoring. https://www.home-assistant.io/blog/2021/08/04/home-energy-management/ Any try it yet? That looks awesome, will try it over the weekend
August 5, 20214 yr 20 minutes ago, jacauc said: Saw the new Home Assistant has big changes for energy monitoring. https://www.home-assistant.io/blog/2021/08/04/home-energy-management/ Any try it yet? Tried it last night. One thing that is missing from our flows to have this work is state_class and last_reset properties. They are needed for Long Term Statistics, which the new system uses: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics Once I added these in the the necesarry values, I was able to use them in the new HA Energy configuration:
August 5, 20214 yr 3 minutes ago, JuanH said: Tried it last night. One thing that is missing from our flows to have this work is state_class and last_reset properties. They are needed for Long Term Statistics, which the new system uses: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics Once I added these in the the necesarry values, I was able to use them in the new HA Energy configuration: An alternative approach to the above is to add these values into your config file instead: homeassistant: customize: sensor.sunsynk_grid_gridbuy_day: last_reset: "1970-01-01T00:00:00+00:00" device_class: energy state_class: measurement sensor.sunsynk_solar_pv_day: last_reset: "1970-01-01T00:00:00+00:00" device_class: energy state_class: measurement
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.