Trannergy-MQTT

Hopefully the correct place to post this.

For quite a while now I’ve been using HAOS installed on a dedicated HP Prodesk Mini PC. I’m in the process of consolidating all my external services into my HAOS install so that I can remove another mini PC and only have one running 24/7.

I’ve done the majority of things, apart from my Trannergy Inverter. At the moment this is running on a VM, running a lite linux distro, on Proxmox, on the other mini pc. I’d like to move the Trannergy part over to HAOS.

This is the Trannergy-MQTT client I’m using - Trannergy2MQTT
It creates a systemd service, pollls the inverter and publishes to MQTT.

It was the only solution I managed to get working - Solarman didn’t detect the inverter, I tried some other DIY Esphome/rs485 adaptors and the like. But no go.

I have access to SSH 22222 and was wondering if I could install it as a service on HAOS? It requires PAHO-MQTT, that requires Python, I believe?

Is this a none starter of an idea? I’ve not tried as I don’t want to trash my HA installation :thinking:

You can also use a web scrapper integration to collect the data directly from it’s exposed api.

Hi,
To read out the trannergy I’m using node red. It is using the remote server in the trannergy menu that you already use in your current setup. In node red you can use the “TCP in” node which listens at the port you have specified in the trannergy menu.
In this way each 5 minutes the data from the trannergy is imported in node red. I have some functions which split out that data to usefull variables which can be picked up in HA.
If you like I can share that functions.
Another question for you: I’m also exerimenting with RS485 to retrieve the data via modus. So I was wondering which RS485 adapter you used and if you have the modbus protocol setup.
Tom

And to be honest: I grabbed this code from OMNIK-SOLAR node red library :slight_smile: Previously Omnik was taken over by Trannergy and they have the same menu and logging.
If you search in google on “omnik-solar nodered” you will find the node-red library with some explanation on how to implement that.

Hiya

Thanks for replying, it was definately a modbus protocol issue. After a month of trying and spending a small fortune on 232 - 485 converters, days worth of time on the internet, goodness knows how many different esphome flashing of devices I gave up, different baud rates, cable pin outs the works. I finally purchased an NE2-D14PE transfer box - and still couldn’t get it communicating. Thats when I managed to track down a genuine Trannergy WiFi dongle, installed it with the Trannergy2MQTT service and it was working within minutes :clap: It has been for over a year now, without issue.

I tried Node Red some years ago when I was using Smartthings and Home Assistant - it broke me good and proper - just thinking about it has me shaking :wink:

I’m not a programmer or coder, most of it is gibberish to me. I am good at following step by step instructions though :joy:

For now, I’ve dusted off a Raspberry Pi 3 and installed the service on there until I can find an alternative solution :pray:

Ah I see :slight_smile:
Node-red looks more difficult then it is and with this solution you can run all your home automation on your HP prodesk as you desire.
If you like I can create and send you an howto how to make it in node-red. You even can try it out on your raspberry if you are affraid to mess up your HA setup :slight_smile:
But I also don’t want to wake up some old trauma’s so the choice is yours :wink:

I’d love to know how to do that, but I wouldn’t have a clue where to begin :exploding_head: