Saliegh Posted August 29, 2021 Share Posted August 29, 2021 8 hours ago, JuanH said: The USB will most likely fail pretty soon if you keep it as the main drive, due to the amount of reads/writes. Look through the Everything Smart Home channel I mentioned earlier. There is a good guide on moving your installation onto an external (or internal if you can with the NUC) SSD drive. The live OS was the easiest way to install HA OS on my SSD. I do not require the USB anymore. Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted August 29, 2021 Share Posted August 29, 2021 23 hours ago, JuanH said: Hey Saliegh. My recomendation would be to install HA OS: https://www.home-assistant.io/installation/generic-x86-64 Once done, install the Node Red add-on from the included add-on store. Then you can start with the flows in this thread. I also recomend the Everything Smart Home channel on Youtube. Loads of useful guides for HA on there: https://www.youtube.com/c/EverythingSmartHome/featured That's pretty much what I have, looked at Docker as well but it seemed to just complicate things as there wasn't anything else I would be running other that Home Assistant OS Quote Link to comment Share on other sites More sharing options...
RhysMcW Posted August 31, 2021 Share Posted August 31, 2021 On 2021/08/28 at 9:57 PM, Saliegh said: What other converter options are tried and tested? I tried the one you mention from Micro Robotics but I had intermittent results I'm using this one with no issues, running cat5e about 18m to adapter in my NUC https://www.robotics.org.za/RS485-3P?search=485 Quote Link to comment Share on other sites More sharing options...
Bloubul7 Posted September 3, 2021 Author Share Posted September 3, 2021 For those that have upgraded to the latest HA version, they have changed the MQTT structure required for the energy module. It now no longers required the last_reset topic, but do require the state_class to be set to total_increasing. See snippet below of the change required. Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 If anyone is interested, I have a few used Raspberry Pi 2's that I loaded up with Home Assistant/InfluxDB/Node Red/Grafana/MQTT & Bloubul's Flows @ R600 each Will supply with a USB-RS485 adapter as well as a cable and make sure it works before sending it. A fresh system seems to be pretty snappy, just not sure how big a database they will handle before it starts slowing down. Can set it to just dump the data once I figure out how large the database can get Quote Link to comment Share on other sites More sharing options...
jacauc Posted September 3, 2021 Share Posted September 3, 2021 Yeah I played with this yesterday. Also note that the battery charge and discharge rate can also be monitored in HA now. These values will need to be added into those nodes also. Not sure if the discharge will need something like "total_decreasing". Once fully tested, I'll post it on GitHub Quote Link to comment Share on other sites More sharing options...
dawolf Posted September 3, 2021 Share Posted September 3, 2021 (edited) Hi All, I have a question regarding the ethernet cable and connection to the inverter. I've connected up an ethernet cable wired as T568B into the BMS RS485 port on the inverter. The other end of the cable is then wired up, orange/brown&white - A, Orangewhite/brown - B into this USB-RS485 connector , followed by a USB cable into the Raspberry Pi4 (running Home Assistant, Node Red, InfluxDB, Grafana, MQTT) So the flow is, T568B Ethernet Cable in BMS RS485 port on Inverter > Into USB-RS485 connector > USB Cable > RPi4 When looking at the modbus-flex-getter settings in Node Red, I don't see any options to select the USB in the serial port (clicking the Magnifying Glass) When looking at the debug, the modbus-flex-getter node cycles through states of, Client Not Ready To Read At State reconnecting Error: Client Not Ready To Read At State init Am I on the right path or is there something else that could be fundamentally wrong with the cable, config etc? Any help will be much appreciated. Thanks. Edited September 3, 2021 by dawolf Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 You cable sounds right @dawolf what do you have the connection settings in Node Red set as? Maybe do a screen shot of them so we can check Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 Sounds like it is a problem with your Node Red settings as it would connect to the USB adapter even if the cable wasn't wired correctly. Quote Link to comment Share on other sites More sharing options...
dawolf Posted September 3, 2021 Share Posted September 3, 2021 Thanks for the response @Sc00bs My Node Red settings are below, Inverter Node Settings: MQTT Settings: I've changed them to my MQTT server Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 Quote Link to comment Share on other sites More sharing options...
dawolf Posted September 3, 2021 Share Posted September 3, 2021 Thanks @Sc00bs Progress...I dont get the same error but get the following debug errors repeatedly, Inverter status flashes between active/queueing repeatedly as well. Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 Stick the debug node onto it and see if you are getting data back from the inverter Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 3, 2021 Share Posted September 3, 2021 Not sure what those errors indicate Quote Link to comment Share on other sites More sharing options...
Bloubul7 Posted September 3, 2021 Author Share Posted September 3, 2021 (edited) Those errors are related to InfluxDB. Did you install InfluxDB? Based on the above the flow is definitely communicating with the inverter as it is receiving payloads Edited September 3, 2021 by Bloubul7 Quote Link to comment Share on other sites More sharing options...
dawolf Posted September 3, 2021 Share Posted September 3, 2021 (edited) Thanks @Sc00bs and @Bloubul7 It was related to InfluxDB settings. I've updated the InfluxDB settings with my user credentials and the data is flowing into InfluxDB, Now I just need to get the Grafana dashboards to pull the data, Edit: Figured it out. Needed to add an additional data source for the "InverterDB" database in Grafana. Thank you kindly, gentlemen! Edited September 3, 2021 by dawolf Sc00bs 1 Quote Link to comment Share on other sites More sharing options...
Saliegh Posted September 4, 2021 Share Posted September 4, 2021 (edited) nice to see that @dawolfgot his issue sorted in no time. I'm hoping I can leverage some of the expertise here. I imported @Bloubul7's read flows, and made some config changes, viz. Serial Port set to /dev/ttyUSB0 on modbus-client Added mqtt-broker, as the one included was pointing at a fixed IP (192.168.1.100) no username and password set updated influxdb node no username and password set I also created a database in InfluxDB called InverterDB, but did no other config. When all the flows are active, I get the attached error. When I disable Inverter_Monitoring, no error. Any idea where I am going wrong? Edited September 4, 2021 by Saliegh added modbusconfig pic Quote Link to comment Share on other sites More sharing options...
Bloubul7 Posted September 4, 2021 Author Share Posted September 4, 2021 Have you checked to ensure that your wiring is correct? Quote Link to comment Share on other sites More sharing options...
Saliegh Posted September 4, 2021 Share Posted September 4, 2021 10 minutes ago, Bloubul7 said: Have you checked to ensure that your wiring is correct? Yeah, that's my next step. The connection at the rs485 to usb component looks sound, I even swapped them. I've attached a pic of both devices that I tried. Gonna go get some more rj45s now... Quote Link to comment Share on other sites More sharing options...
Saliegh Posted September 5, 2021 Share Posted September 5, 2021 redid the cat5 wiring, and now getting queueing error. Any idea? Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 5, 2021 Share Posted September 5, 2021 @Saliegh Firstly - your influxDB Node in Node Red will need a username and password with rights to the database otherwise you will not be able to write data to it. You set the users up in InfluxDB. Is your Nuc connecting to the USB-RS485 interface? The ModbusRead flow should be flashing active and there should be things in the Modbus Que info. If not - the problem probably lies in your NR setup. If yes - then probably something to do with your cabling I would guess Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 5, 2021 Share Posted September 5, 2021 1st guess would be that you have not set something up in Node Red/InfluxDB/MQTT correctly. Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 5, 2021 Share Posted September 5, 2021 On 2021/09/03 at 1:12 PM, Bloubul7 said: For those that have upgraded to the latest HA version, they have changed the MQTT structure required for the energy module. It now no longers required the last_reset topic, but do require the state_class to be set to total_increasing. See snippet below of the change required. Struggling to get my Energy info from the inverter, not sure what I am doing wrong Bloubul. I updated all my Energy Nodes in Node Red as described above but I am still getting the message, any ideas as I am not sure what to try next? Quote Link to comment Share on other sites More sharing options...
Bloubul7 Posted September 6, 2021 Author Share Posted September 6, 2021 12 hours ago, Sc00bs said: Struggling to get my Energy info from the inverter, not sure what I am doing wrong Bloubul. I updated all my Energy Nodes in Node Red as described above but I am still getting the message, any ideas as I am not sure what to try next? Try restarting your HA Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 6, 2021 Share Posted September 6, 2021 3 hours ago, Bloubul7 said: Try restarting your HA LOL, nope tried that already, still there. @Bloubul7 is it the energy node in the Node Red flow that is causing this error? Wondering if I maybe updated the Node Incorrectly, though I can't see much room for error Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.