Hi folks,
is there any chance to integrate a TSUN TSOL-M800 EVO solar-inverter to home assistant?
regards
BJ70
Hi folks,
is there any chance to integrate a TSUN TSOL-M800 EVO solar-inverter to home assistant?
regards
BJ70
Hi,
would be nice to have an integration working out of the box. Does this inverter have Wifi? Do you know the project OpenDtu?
Yes IT hast WiFi and I don’t know.
Hello, I guess we have the same inverter.
It has WiFi and connects directly to the servers, so openDTU should not work.
I had no luck to connect directly via IP, so I guess even the firmware updates are scheduled server sided.
I have a similar model, the TSOL MS-600 that is included in the Priwatt priWall Duo Set.
The inverter uses the local WiFi to connect to Tsun’s servers and they provide a mobile app and a Web site to view the collected data. It does not seem to provide any way to capture the data directly.
I used Firefox Developer Tools to capture the web app’s REST API calls necessary to obtain relevant info like current power, total energy, etc. Postman was a great help here to explore the API.
I’m now trying to create a simple Python script that connects to the API and prints out the values.
Next, I’ll try to figure out how to get these values displayed in HA. The learning curve for creating a full-blown integration is pretty steep, and I haven’t figured out if the REST integration supports the necessary authentication scheme.
If anybody has some experience on how to proceed here, I’m grateful for any pointers or help. I’d be happy to share my current findings.
Is there a basic “hello world” example integration that I could use as a starting point? I’ve been looking at many existing integrations, but they all seem to be fairly complex as a template.
I’m in the same boat, so I quickly hacked together a docker container that sends the data via MQTT to Home Assistant. Still uses the cloud though, that’s why the code is a bit spaghetti & did not put too much work into it, as I see it as a “stop gap” till I’m done with a local proxy container that intercepts the data before it’s send to the cloud.
Feel free to check it out, of course I could only test it with my private installation so far: Docker
worked for me, thanks a lot!!
Nice, thanks for sharing! I’ll take a look.
I just finished publishing my first attempt of a Python script here: GitHub - LenzGr/pytalent-monitor: A Python Script to gather some data from the Talent Monitoring REST API - feedback and improvements are welcome
I hacked some more on my Python script and added JSON support for printing the values. Before creating a full-blown integration, I’m now trying to call the script via the Command Line Integration. But somehow I can’t figure out how to get this running. I copied the script into the Home Assistant environment via the Studio Code Server Add-On and can call it on the command line successfully. But how do I add this as a sensor to configuration.yml
?
I have started a project for a Docker container that sends the data to home-assistant via MQTT. You can disable the connection to the TSUN cloud and the MQTT client still works. The solution also supports MQTT auto-configuration of home-assistant.
The project is hosted on GitHub: https://github.com/s-allius/tsun-gen3-proxy/blob/main/README.md
I’m running it with a TSUN MS-600, and the full MS series and TSUN M800-Evo should work.
I am very happy to receive contributions to this project!
With the latest version 0.6.0 of the TSUN proxy I also added support for TSUN GEN3 PLUS inverters (e.g. TSOL-MS1600, TSOL-MS1800 and TSOL-MS2000)
TSUN GEN3 PLUS inverters’s serial number start with ´Y17`
The project is hosted on GitHub: tsun-gen3-proxy/README.md at main · s-allius/tsun-gen3-proxy · GitHub
Thanks for sharing the TSUN integration. What is not clear to me following the Github documentation is, how to install it on HomeAssistant?
Thanks.
Thanks for this integration, I tried to install it via docker but I still have an error with the config.toml file. In which directory is it? Do I have to edit it with nano?
Hi, is there any way you can try to help me setting it up? I have two MS-1800 micro inverters and it would be so great to integrate them into HA but I’m a beginner and I have a little to no idea how to set it up in HA. Would be much appreciated because your work looks great