What sort of info is missing from using the SA's routeHas anyone managed to get info from the Victron SmartShunt into HomeAssistant ? I know it works with Solar Assistant but it doesn't show all the available information ?
Absolutely. That is what I have done. Read the serial data into an ESP8266, and then transmit over WiFi.Could you use an esp32 or esp8266 to send the data over wifi? Instead of using a Raspberry Pi? Orrrrr, use one as a bluetooth extender?
I havent got home assistant tho, so what could I use to check the data? Would it work with the HA app?Absolutely. That is what I have done. Read the serial data into an ESP8266, and then transmit over WiFi.
I think the HA app just connects to the HA server. You would still need to have HA.I havent got home assistant tho, so what could I use to check the data? Would it work with the HA app?
Hi KalebHi all, I cleaned up my code and wrote some docs on it. It can be found on GitHub here: https://github.com/KalebTheMaker/VictronSmartShunt-ESP8266-MQTT
Stuart, you can dump all the data from the Smart Shunt by uncommenting PrintData() in the main loop. You can also just use the example from the
VeDirectFrameHandler library if you dont want WiFi and MQTT configured.
Let me know if this works, or if I can help.
Edit: I just updated the GitHub repo with hardware connection info.
-Kaleb
So I am in the process of setting up HA on a slim client. I have Solar Assistant to report BMS and Inverter data. I also have a Victron Shunt in my system but must get my phone into Bluetooth range to see the data. So what is the cheapest way to add VenusOS and have my shunt communicate with it so that I can add it into HA? Thanks for all the hard workI have it working through node-red showing everything and more in HA. ?
View attachment 125473
The flow is a bit complex and took a while to figure out but this is what it looks like:
View attachment 125472
It does require a VenusOS device with MQTT enabled on local LAN, which from your question I guess you do not have. Node red just subscribes to the SmartShunt topics and in a function node I filter and reformat the messages and then use node-red companion entities to send these values to HA.
With the SoC now available in HA I can run automations to turn the charger on at 25% and off again when it's at 50%. This has been working great the last few months and I now don't need to worry about a low SoC anymore.
You can connect the shunt to SA so all the victron Data is on SA removing the need for Bluetooth.So I am in the process of setting up HA on a slim client. I have Solar Assistant to report BMS and Inverter data. I also have a Victron Shunt in my system but must get my phone into Bluetooth range to see the data. So what is the cheapest way to add VenusOS and have my shunt communicate with it so that I can add it into HA? Thanks for all the hard work
I have VenusOS installed on a raspberry pi for a little over a year now. Since I already had multiple rpi's that did not cost me anything extra. Then linked it to victron's VRM portal for nice statistics and for using the app without the need to be in bluetooth range. I have four MPPT's because I have a lot of shadow issues and this allows multiple different panels. And in my case I am using a BMV but that's basically the same as a SmartShunt.So I am in the process of setting up HA on a slim client. I have Solar Assistant to report BMS and Inverter data. I also have a Victron Shunt in my system but must get my phone into Bluetooth range to see the data. So what is the cheapest way to add VenusOS and have my shunt communicate with it so that I can add it into HA? Thanks for all the hard work
With the local LAN MQTT on a VenusOS (rpi) everything you can see and do from the app is possible! I was even able to enable and disable the load output on a MPPT...but that's a little more complex than just reading the statistics. You can use MQTT-Explorer to see the data that is available and then configure that in HA directly or Node-Red.You can connect the shunt to SA so all the victron Data is on SA removing the need for Bluetooth.
The only missing info that doesn't appear in the SA interface is the consumed Ah figure. But SA mentioned they will rectify in the next update. "hopefully"
So VenusOS can be run on a Pi? Interesting. I know I can choose to attach my Victron shunt to Solar Assistant. My problem with that is I would lose my battery BMS data because Solar Assistant only accepts one or the other not both. I would like both. I am on the steep learning curve with HA. I bought an Orange Pi to install HA on but after reading many issues people are having with their Pi’s crashing over time. I started looking for another platform other than the Pi. Several smart guys have started working with Slim Clients instead of Pi’s and they seem to be working out great. So I just purchased a slim client off eBay and I think that’s the route I’m going. Another Slim Client for Venus OS might work too. That way I could attach my shunt via data cable to the second slim Client. Or I could use another Pi also. Then I’m assuming the Pi’s feed their data to HA correct? When I first read this thread I thought I was going to have to purchase another piece of Victron hardware that operate the VenusOS. But if the VenusOS is just an operating system that can be installed on a computer of some sort then that’s a winner.I have VenusOS installed on a raspberry pi for a little over a year now. Since I already had multiple rpi's that did not cost me anything extra. Then linked it to victron's VRM portal for nice statistics and for using the app without the need to be in bluetooth range. I have four MPPT's because I have a lot of shadow issues and this allows multiple different panels. And in my case I am using a BMV but that's basically the same as a SmartShunt.
All 5 devices are connected with official VE.Direct to USB cables but there are cheaper options that I have not tried. A cable is about 30 euro's and the rpi maybe 40-50 euro. So that is your minimum cheapest option.
It's not really difficult to setup but I don't know your skill level ofcourse.
My only issue with that is SA makes you choose what supplies battery data. Either the BMS or the shunt. You can’t use both which is really what I want to do. Truthfully the shunt data is probably a little more accurate multiple battery installations absolutely true if you have multiple brands of batteries that don’t communicate with each other. However I like having all the data available.You can connect the shunt to SA so all the victron Data is on SA removing the need for Bluetooth.
The only missing info that doesn't appear in the SA interface is the consumed Ah figure. But SA mentioned they will rectify in the next update. "hopefully"
Like I said I have no experience with SolarAssistant so I could not tell you if it will work together or not. All I can say is what I have done on my own setup to get the data into HA.My problem with that is I would lose my battery BMS data because Solar Assistant only accepts one or the other not both. I would like both.
There is indeed a big learning curve to master Home Assistant...I have had it running for about 5 years now but only did really basic stuff until a few months ago when I started with Zigbee smart lights....but that's another story. In short I would say that the learning curve is worth it! But try to find the simplest solution for your problem. If there is a plugin already for something...use that instead for example. But for Victron solar equipment there is nothing (yet) so we kind of have to right now.I am on the steep learning curve with HA. I bought an Orange Pi to install HA on but after reading many issues people are having with their Pi’s crashing over time. I started looking for another platform other than the Pi. Several smart guys have started working with Slim Clients instead of Pi’s and they seem to be working out great. So I just purchased a slim client off eBay and I think that’s the route I’m going. Another Slim Client for Venus OS might work too. That way I could attach my shunt via data cable to the second slim Client. Or I could use another Pi also.
There are victron devices that run VenusOS but they only make sense if you got the money or need to connect a lot of devices. Once you factor in the cost of 5 VE.direct cables (30 euro x 5) and a VE.BUS MK3-USB (80 euro) then a Cerbo GX that costs about 300 euro is going to be a cheaper option. Plus the Cerbo has more features that might be useful...but I don't have one and run it on a Raspberry Pi 3.When I first read this thread I thought I was going to have to purchase another piece of Victron hardware that operate the VenusOS. But if the VenusOS is just an operating system that can be installed on a computer of some sort then that’s a winner.