diy solar

diy solar

Home Assistant to Solar Assistant integration using Megarevo R8KLNA inverters

Joined
Aug 1, 2020
Messages
88
Location
Mansfield, TX
Trying to get data into Home assistant from Solar Assistant so I can do some automation. However I am just adventurous enough to get stuck. I've spent the day reading and poking and now hoping someone can point me in the right direction!

I have MQTT setup and data is flowing into home assistant, you can see this in my last screenshot where I'm getting status from the solar assistant. However I'm not getting a list of entities to work with. I have a single megarevo x2 device (I have a pair of inverters). But no data underneath it. I made it to some home assistant documentation on discovery mode and I do have that turned on, but maybe I'm doing something wrong there as well. I would think a list of entities would appear so I could start associated them with dashboards or automation. Maybe my assumption there is wrong!

Anyway, here are some outputs. Feel free to ask for other outputs or straight up tell me where I'm doing something stupid :).

----- debug from mqtt device. This is where I started debug and then turned on discovery mode:
2024-03-10 18:49:50.707 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from dsmr/#, mid: 3
2024-03-10 18:49:50.708 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from solarassistant/+/+/config, mid: 3
2024-03-10 18:49:50.708 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from solarassistant/+/+/+/config, mid: 3
2024-03-10 18:49:50.709 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from fully/deviceInfo/+, mid: 3
2024-03-10 18:49:50.709 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from drop_connect/discovery/#, mid: 3
2024-03-10 18:49:50.710 DEBUG (MainThread) [homeassistant.components.mqtt.client] Unsubscribing from tasmota/discovery/#, mid: 3
2024-03-10 18:49:51.752 INFO (Thread-10 (_thread_main)) [homeassistant.components.mqtt.client] Connected to MQTT server core-mosquitto:1883 (0)
2024-03-10 18:49:53.798 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on solarassistant/status: 'online', mid: 1, qos: 0
2024-03-10 18:49:57.829 INFO (Thread-12 (_thread_main)) [homeassistant.components.mqtt.client] Connected to MQTT server core-mosquitto:1883 (0)
2024-03-10 18:49:58.868 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to solarassistant/+/+/config, mid: 1, qos: 0
2024-03-10 18:49:58.869 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to solarassistant/+/+/+/config, mid: 1, qos: 0
2024-03-10 18:49:58.870 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to drop_connect/discovery/#, mid: 1, qos: 0
2024-03-10 18:49:58.870 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to dsmr/#, mid: 1, qos: 0
2024-03-10 18:49:58.871 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to fully/deviceInfo/+, mid: 1, qos: 0
2024-03-10 18:49:58.871 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to tasmota/discovery/#, mid: 1, qos: 0
2024-03-10 18:50:00.877 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on solarassistant/status: 'online', mid: 2, qos: 0#
------------

1710115238025.png

1710115263399.png

1710115288942.png
 
Ok I'm a bit stupid. But I did find it. I started watching a video on how discovery worked and it's from the sender (Solar assistant) end. Went back to those settings and I had discovery turned off. Lol

1710116774031.png

I'm sure I'll be back for other questions. With any luck I'll answer them myself!
 
With some external controls maybe I can actually get my inverter to operate the way it should have out of the box ;).

I've been using the MQTT integration between Solar Assistant and Home Assistant for months now. It's unfortunate that the SA beta only allows 5 parameters to be set from HA, and the only useful one is the work mode. The other 4 are grid voltage high/low and gride frequency high/low, and I can't think of any use case to change those via automation. I've contacted SA support requesting a few others to be added, like max charge current, battery communications (I like to switch between RS485 and CAN overnight to reduce idle consumption of the inverter), and battery discharge power. They say these might be added in the future, but until then, the automation functions within SA suffice for my needs. At least there are a ton of sensors exposed to HA. I'm guessing there won't be much traction to add functionality given the limited adoption of the these Megarevo inverters, especially as Signature Solar seems to be clearing them out.
 
Back
Top