I have recently had solar panels installed with an ABB UNO-DM inverter an am having trouble getting the modbus sensors to appear in HA.
I have proven that I can read the modbus info by connecting to the inverter via ‘modpoll’ on a separate raspberry pi and seeing the values update, although they are in hex. I can see the values by typing the following into the command line.
Try turning on logging in your configuration.yaml:
logger:
default: info
logs:
homeassistant.components.device_tracker: critical
homeassistant.components.camera: critical
It seems that you have an error in your sensor definition, and when there is an error, the sensor does not appear. Logging helps you to figure out what is going on.
After adding it, you can see the logs clicking at Info icon under Developer tools.
Thanks for your reply.
It was showing up as an error as you said. The interesting thing is that I got it working not by changing any of the sensor settings but by upgrading from 0.83.2 to 0.83.3.
All working as expected now.
Thanks for your help.
I have also noticed that HA does not restart when i click the restart button.
It says a restart has been called, and then nothing happens.
Perhaps this is why the sensor only showed up after upgrading.
I will have to look into this further.
Hi @janser01,
the only setup required is as above, add the modbus entry into your config.yaml and then the sensors in the sensors.yaml if you have one, otherwise, under sensors in you config.yaml.
Make sure you have enabled modbus in your inverter (check the IP and port), and if it’s like mine, you won’t be able do anything with it at night as it shuts down.
If you have the same inverter as me these registers should work.
Let me know if this still doesn’t work and I will try to find the software that I used to read the registers. I set this up a couple of years ago.
@richcarnell - Yes I’ve been loking at them in the past. But since I have an intel nuc with Ubuntu running next to my inverter and I have a RS485 -> USB cable I’m looking for a software solution. I’m putting now my hopes on the socat comand or ser2net https://sourceforge.net/projects/ser2net/
@janser01 - I’m not sure that I have used either of those. When setting mine up I used modpoll. https://www.modbusdriver.com/modpoll.html
Perhaps you could use this as a stepping stone toward your solution?
Thanks! I’ll keep that one in mind if my current route fails.
I managed to get 123Solar logger (https://123solar.org) up and running and it’s giving me all the data including the fancy graphics. I also read a few days ago that it would be able to extract data from 123Solar to Home assistant. The benefit is that, if this all works, I’ll have all the detailed information in 123Solar and the high level data in Home Assistant.