Use MPP Solar with Gladys in MQTT?

Hello, i want to ask if is possible to use mpp-solar project on gladys?

Hello @NextWork123,

I’ve looked a bit at the repository, and it seems there is a Docker image :

You need to configure MPP Solar :

And it’ll send MQTT messages like :

{'topic': 'QPGS0/status/grid_voltage/value', 'payload': 0.0}

This can definitely work with Gladys, you can create custom devices in the MQTT integration, and assign those devices to custom MQTT topics :

Don’t hesitate if you need help setting this up :slight_smile:

Thanks for the quick reply. I’m currently using the mpp-solar project with Home Assistant, but I’m planning to replace everything with Gladys.

I was wondering if Gladys supports the same MQTT entities as Home Assistant. In my mpp-solar configuration, I’m using the hassd_mqtt output.

I haven’t deployed Gladys yet, as I’d like to gather some documentation and better understand everything before proceeding.

I don’t know exactly how it works in Home Assistant, but in Gladys you’ll need to configure some virtual devices and assign the custom MQTT topics from mpp-solar :slight_smile:

It’s entirely doable, and we can help you with that !

mh ok it doesn’t have a discovery for entities? i’m lazy xD

MPP-Solar discovery is Home Assistant specific, so it won’t work with Gladys unfortunately :confused:

Note: I wonder if we could implement the HA Discovery protocol in Gladys to be able to do auto-discovery with this kind of integrations from HA

1 Like

ok thanks :slight_smile:

gladys can connnect to mqtt broker via unix socket? (so using mosquitto docker outside)

You just specify the MQTT URL, username and password in Gladys !

but what about a path like unix socket so we don’t deal with TCP stack?

We don’t support that! What’s the issue with tcp?

maybe this article can help to see why i’m asking supporting unix sockets unix domain sockets vs. internet sockets but yeah maybe the loopback tcp isn’t bad

If you are lazy, Gladys let’s you start a Mosquitto container in one-click :wink: