The above gets sent out via mosquito_pub directly.
There should be another topic and message.
This doesn't include the sensor or sensor type parts of the previous/discovery topic
homeassistant/sbfspot_{plantname}/sbfspot_{serial}
That should get sent out via SBFspot and will have the payload of inverter data. Is that arriving in MQTT Explorer?
It might be failing discovery still or perhaps it’s reading the mqtt creditentials incorrectly in SBFspot… Check the logs of HA core, SBspot, and mqtt broker.
2022-10-07 14:30:04: New connection from 172.30.32.1:40162 on port 1883.
2022-10-07 14:30:04: New client connected from 172.30.32.1:40162 as auto-091B1C16-4E71-52C1-1A3B-19E321B016AD (p2, c1, k60, u'mqtt-admin').
2022-10-07 14:30:04: Client auto-091B1C16-4E71-52C1-1A3B-19E321B016AD disconnected.
2022-10-07 14:31:20: New connection from 172.30.32.2:33646 on port 1883.
2022-10-07 14:31:20: Client <unknown> closed its connection.
2022-10-07 14:33:20: New connection from 172.30.32.2:42046 on port 1883.
2022-10-07 14:33:20: Client <unknown> closed its connection.
2022-10-07 14:35:04: New connection from 172.30.32.1:46556 on port 1883.
2022-10-07 14:35:04: New client connected from 172.30.32.1:46556 as auto-44FA5C0E-299E-51DE-D70D-4304A8ECA900 (p2, c1, k60, u'mqtt-admin').
2022-10-07 14:35:04: Client auto-44FA5C0E-299E-51DE-D70D-4304A8ECA900 disconnected.
2022-10-07 14:35:20: New connection from 172.30.32.2:58702 on port 1883.
2022-10-07 14:35:20: Client <unknown> closed its connection.
2022-10-07 14:37:20: New connection from 172.30.32.2:41970 on port 1883.
2022-10-07 14:37:20: Client <unknown> closed its connection.
2022-10-07 14:39:20: New connection from 172.30.32.2:34554 on port 1883.
2022-10-07 14:39:20: Client <unknown> closed its connection.
2022-10-07 14:40:04: New connection from 172.30.32.1:37958 on port 1883.
Hi HasQT and other all SBFspot users!
Thanks for HAOS-SBFspot!
Today I have an old SBFspot running in an old Domoticz environment. But it would be great to have it running in my new Home Assistant environment.
However I get the following “CRITICAL: Logon failed”:
SBFspot V3.9.7
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -finq -mqtt -cfg/usr/bin/sbfspot/SetConfig.cfg
Reading config '/usr/bin/sbfspot/SetConfig.cfg'
Thu Oct 20 11:43:13 2022: INFO: Starting...
sunrise: 07:46
sunset : 17:38
Connecting to 00:80:25:28:F5:DA (1/10)
Connecting to 00:80:25:28:F5:DA (2/10)
Connecting to 00:80:25:28:F5:DA (3/10)
Connecting to 00:80:25:28:F5:DA (4/10)
Connecting to 00:80:25:28:F5:DA (5/10)
Initialising...
SUSyID: 125 - SessionID: 878318517
SMA netID=02
Serial Nr: 7DCB15CE (2110461390)
BT Signal=7.8%
Thu Oct 20 11:43:54 2022: CRITICAL: Logon failed. Check 'USER' Password
Thu Oct 20 11:43:54 2022: INFO: Done.
[09:43:54] WARNING: Halt add-on with exit code 1
s6-rc: info: service legacy-services: stopping
[09:43:54] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
What logon is failing here (inverter, MariaDB, MQTT broker or PVoutput)?
I have tried to modify the inverter password but then I never reach the “Initialising…” so I guess it must be some other password.
Thanks for the information!
I think I have the accurate password for the inverter now, but a restart didn’t change the content of the log so I decided to make a reinstallation of HAOS-SBFspot to get a fresh start.
But now I get the message “Pulled image ghcr.io/habuild/aarch64-addon-haos-sbfspot:2022.10.2 failed on content-trust verification!” when I try to install HAOS-SBFspot again.
What can be the problem here?
Apologies I had tried to sign the addon. Which worked when I upgraded my test version and proper version. It did fail on fresh install though. I will have to look into that.
10.3 will resolve your issue. Codenotary has been removed for now.
Thanks for the suggestion to not create any sensors.
But I still have the two problems:
Can’t stop the service
I can only see the log from 12:16 yesterday
I have turned off auto start of HAOS-SBFspot and restarted Home Assistant (in developer tools). But when I go to HAOS-SBFspot it’s active anyway. Very strange. Something has “frozen” my HAOS-SBFspot. Is there some kind of hard uninstall in HA that I can try?
I have removed it with “ha addons remove a51a23d8_haos-sbfspot” and reinstalled it again. But I always see the log from yesterday and unable to stop and start the service with new settings.
When I run stop add-on in developer tools I see the green button with the check mark but when switch back to HAOS-SBFspot it’s green and looks like it running and shows the log from yesterday 12:16.
Even if I don’t reconfigure it after a reinstallation it looks like it’s running.
OK, I have just been using Restart in Developers tools. Didn’t know about Restart in System. So a real restart removed the old log and made it possible to start and stop the service again.
I have Raspberry Pi 4.
I have moved it just two meters from the inverter and I got the connection working!
It has uploaded data to PVOutput.
But MQTT just have 4 entities. Will more be created tomorrow when the sun goes up again?