diy solar

diy solar

Solar Assistant - Home assistant MQTT issue

patrick56770

New Member
Joined
Aug 20, 2022
Messages
1
Hello,
I've followed guides from solar-assistant.io to configure my HA, i see incoming messages but autodiscovery not working and entities not created :(
If any has experience with it and any idea ..welcome

Capture.JPGCapture2.JPG
 
@patrick56770, I got mine hooked up without issue.

Here's the steps that I took:
1. Got solar assistant flashed to the MicroSD card, Solar Assistant (SA) booted and connected to the network, and successfully connected to my EG4 6000 inverters. I am assuming that everything is working properly with your SA install.
2. On the bottom of the SA setting screen, I started MQTT, then enabled discovery.
3. In Home Assistant (HA), I added the MQTT integration, then entered the IP address of SA. Note that since you are using an IP address in HA, it would be best practice to configure your RPi running SA to use a static IP address or DHCP reservation.
4. When I hit next, it discovered everything in SA and the data began flowing without issue.
5. I disabled discovery.

I did have a couple of specific settings that were not discovered at first, but that's because SA is not able to read 100% of everything on a slave inverter when only one USB cable is connected. So I connected a second USB cable to my second inverter, then enabled discovery in SA, and used the 're-configure mqtt" option in HA to pick up the missing entities.

Hope this helps, but I suspect that you have been through these steps before.
 
I've had the MQTT / Home Assistant set up for as long as Solar Assistant has made it available. On Monday this week however the SA MQTT stopped populating the Energy Total topics. All the rest of the topics are working fine.

Screen Shot 2023-10-02 at 5.24.20 pm.png

SA suggested rebooting both SA & HA but there's no difference. It's a pain as the energy totals are important for system performance tracking.

Still waiting for SA response.
 
I've had the MQTT / Home Assistant set up for as long as Solar Assistant has made it available. On Monday this week however the SA MQTT stopped populating the Energy Total topics. All the rest of the topics are working fine.

View attachment 171131

SA suggested rebooting both SA & HA but there's no difference. It's a pain as the energy totals are important for system performance tracking.

Still waiting for SA response.
Are you running stable or beta? I read in the latest beta that something changed between HA and SA.
 
I've had the MQTT / Home Assistant set up for as long as Solar Assistant has made it available. On Monday this week however the SA MQTT stopped populating the Energy Total topics. All the rest of the topics are working fine.


SA suggested rebooting both SA & HA but there's no difference. It's a pain as the energy totals are important for system performance tracking.

Still waiting for SA response.
Follow up - the issue corrected itself as of Monday morning our time. The MQTT energy total topics are now being populated again.

Screen Shot 2023-10-10 at 7.17.24 am.png

I lost a week of data, so I recreated it from the SA charts data export function and laboriously corrected my Home Assistant statistics for the four energy channels for the week. Ugh that's painful (and an aside as HA have made it very difficult to upload historical data - which is a shame).

The only possible causal factor I can think of was our time zone change to daylight savings on the morning before this happened. I have had MQTT data loss before following a TZ change.

I still don't like the way the energy accumulation topics are reset to zero every Monday morning. It results in a missing hour of data for the midnight to 1AM interval every Monday morning.
 
The only possible causal factor I can think of was our time zone change to daylight savings on the morning before this happened. I have had MQTT data loss before following a TZ change.
I remember this issue from a previous time change. I think solar assistant only half fixed it.
Hopefully now it is fully fixed haha.
 
Follow up - the issue corrected itself as of Monday morning our time. The MQTT energy total topics are now being populated again.

View attachment 171530

I lost a week of data, so I recreated it from the SA charts data export function and laboriously corrected my Home Assistant statistics for the four energy channels for the week. Ugh that's painful (and an aside as HA have made it very difficult to upload historical data - which is a shame).

The only possible causal factor I can think of was our time zone change to daylight savings on the morning before this happened. I have had MQTT data loss before following a TZ change.

I still don't like the way the energy accumulation topics are reset to zero every Monday morning. It results in a missing hour of data for the midnight to 1AM interval every Monday morning.
I know this is a late reply, but did your Solar Assistant stop reporting energy states on the last transition to DST? My Solar Assistant did the same exact thing this past Sunday morning. Its now Tuesday and the HA energy dashboard is still showing all zeros.

The energy state topics are being reported every minute, but they are always zero.

If I publish a non-zero value via MQTT Explorer, the HA energy dashboard picks it up and displays the value properly. This leads me to believe either my Sol-Ark 15K stopped reporting the energy state or Solar Assistant is not properly processing the polled information from the inverter.

Is there a way to see what SA is sending to the inverter and the response?
 
I know this is a late reply, but did your Solar Assistant stop reporting energy states on the last transition to DST? My Solar Assistant did the same exact thing this past Sunday morning. Its now Tuesday and the HA energy dashboard is still showing all zeros.
I can't recall. But time zone changes seem problematic. Generally the energy data sensors reset weekly at 12:00 AM Monday and that usually fixes it. Sometimes I need to do some manual HA stats editing.
 
Back
Top