# \[App\]\[Obsolete\]Sofar / Solarman

**URL:** <https://community.homey.app/t/app-obsolete-sofar-solarman/70830>\
**Category:** Apps\
**Created:** [October 19, 2022, 12:37pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830 "2022-10-19T12:37:14Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 3, 2024, 6:10pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/223 "2024-03-03T18:10:45Z")

</div>

> [@Rrrr](#):
>
> Why https

Https is only used for the Solarman cloud. The local connection is via a socket to a local IP and port.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 4, 2024, 6:42am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/224 "2024-03-04T06:42:59Z")

</div>

But your new app Sofar isn’t it local only?  
When trying to install a solar panel device, it says new devices found and should check the modbus address, why would it then give HTTPS: error ?

Even though I’m not really aware what you need, here’s what i found using:

[https://www.google.com/search?q=sofar+mudbus&rlz=1CDGOYI\_enIL992IL992&oq=sofar+mudbus&gs\_lcrp=EgZjaHJvbWUyBggAEEUYOTIJCAEQABgNGIAEMggIAhAAGA0YHjIICAMQABgNGB4yCggEEAAYCBgNGB4yCggFEAAYCBgNGB4yCggGEAAYCBgNGB4yCggHEAAYCBgNGB4yCggIEAAYCBgNGB4yCggJEAAYCBgNGB7SAQg2MzM3ajBqN6gCALACAOIDBBgBIF8&hl=en-US&sourceid=chrome-mobile&ie=UTF-8#ip=1](https://www.google.com/search?q=sofar+mudbus&rlz=1CDGOYI_enIL992IL992&oq=sofar+mudbus&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIJCAEQABgNGIAEMggIAhAAGA0YHjIICAMQABgNGB4yCggEEAAYCBgNGB4yCggFEAAYCBgNGB4yCggGEAAYCBgNGB4yCggHEAAYCBgNGB4yCggIEAAYCBgNGB4yCggJEAAYCBgNGB7SAQg2MzM3ajBqN6gCALACAOIDBBgBIF8&hl=en-US&sourceid=chrome-mobile&ie=UTF-8#ip=1)

Lots of articles here. Some of the articles seem to assume a wired connection, others go via tcpip/wifi antenna.

I selected a few, but if you provide some pointers I can search better.

[https://library.loxone.com/detail/sofar-solar-inverter-892/overview](https://library.loxone.com/detail/sofar-solar-inverter-892/overview)

Sofarsolar ModBus-RTU Communication Protocol  
[https://solaranzeige.de/phpBB3/download/file.php?id=5254](https://solaranzeige.de/phpBB3/download/file.php?id=5254)

> **[SOFAR inverter TCP/IP Logging We have a response!! - Solar PV discussion](https://forums.whirlpool.net.au/archive/2685285)**
>
> Hello,My first post.. love your work.After searching for a while I have failed to find any local logging solution for my new SOFAR TL5000 inverter.So I have bee

If you use an application/library that supports Modbus to do the polling, then all you really need to tell it is that to get the ‘active power output’ value, poll register number 12 (0x000C in hex) and read an unsigned integer of size two bytes (16 bits), with a scaling factor is .001 and in kW units

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 4, 2024, 8:08am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/225 "2024-03-04T08:08:55Z")

</div>

The fact he reported an https error is why I keep reiterating that the Solarman cloud connection won’t work anymore. There is nothing in the new app that will report that error.

The Sofar inverters wrap the MODBUS packet inside another packet (they call it V5 protocol), so it’s not simply MODBUS.

However, the issue is that different inverter models use different MODBUS registers for the parameters, no idea why they couldn’t have standardised. So, you mention register 12 as active power, but that’s different for each model.  
The app currently has maps for 4 different models and it tries to automatically determine which map to use by reading the ‘known’ register for grid frequency. If a valid frequency is returned then it assumes it has found the correct map, else it tries the register for grid frequency register the next map.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 4, 2024, 8:13am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/226 "2024-03-04T08:13:56Z")

</div>

> [@Adrian\_Rockall](#):
>
> There is nothing in the new app that will report that error.

Thank you for the explanation.  
I am confused about what you refer to as the new app.  
The https error is when creating a new device in the app Sofar v1.1.13

PS Sofar/Solarman v1.1.12 was not uninstalled, it is a lifeline we hope will work from time to time 🙂

---

<div class="post-metadata">

**Author:** ![Mannni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mannni/32/33829_2.png) [@Mannni](https://community.homey.app/u/Mannni)\
**Post date:** [March 4, 2024, 9:29am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/227 "2024-03-04T09:29:50Z")

</div>

Would it be possible to add an user-input for the API-Key (App-settings-Field)?  
So everyone uses its own ?  
If I would be capable of developing my own app, I would setup something on the local http page from deye inverters. But I can’t ☹

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 4, 2024, 10:31am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/228 "2024-03-04T10:31:09Z")

</div>

FYI also problems here, perhaps join the effort?

> [@\[APP\]\[Pro\] Huawei Solar - Smart energy for a better life](https://community.homey.app/t/app-pro-huawei-solar-smart-energy-for-a-better-life/61745/292):
>
> you can try this app: [[APP][Pro] Modbus](https://community.homey.app/t/app-pro-modbus/104497/1)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 4, 2024, 1:45pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/229 "2024-03-04T13:45:25Z")

</div>

> [@Mannni](#):
>
> Would it be possible to add an user-input for the API-Key

I did consider that but obtaining a key from Solarman is not easy and Athom wouldn’t allow that method for Homey (cloud).  
My code for the old app is still in my GitHub repo [GitHub - AdyRock/ady.solarman](https://github.com/AdyRock/ady.solarman) so if anyone wants to install it via the CLI and make their own env.json file with their own keys they can.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 4, 2024, 1:47pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/230 "2024-03-04T13:47:37Z")

</div>

> [@Rrrr](#):
>
> FYI also problems here, perhaps join the effort?

The MODBUS app won’t work with the Sofar inverters as the MODBUS packet is wrapped inside their V5 packet.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 4, 2024, 2:27pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/231 "2024-03-04T14:27:47Z")

</div>

Yes, but it seems like the guys there are trying to add more inverters like the Huawei to the SolarEdge+Growatt TCP modbus app. I was hoping to find some synergies to your efforts.

---

<div class="post-metadata">

**Author:** ![Vahur\_Tamuri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vahur_tamuri/32/96312_2.png) [@Vahur\_Tamuri](https://community.homey.app/u/Vahur_Tamuri)\
**Post date:** [March 4, 2024, 2:42pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/232 "2024-03-04T14:42:46Z")

</div>

Unfortunately, I have to admit that I lack the skills to connect otherwise. Did I understand correctly that if I want to transfer data to the Homey device, I will not be able to see it in the Solarman cloud?

Kontakt Adrian Rockall via Homey Community Forum (\<[notifications@athom.discoursemail.com](mailto:notifications@athom.discoursemail.com)\>) kirjutas kuupäeval P, 3. märts 2024 kell 19:42:

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 4, 2024, 2:44pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/233 "2024-03-04T14:44:06Z")

</div>

I appreciate your trying to help and it makes me think, so thank you for that, and please keep suggesting things and asking questions as it could spark an idea.  
But at the end of the day, the issue is tracking down register maps for each model of inverter.

I have found the misleading https error message, which is just a copy and paste issue that should have removed the https part.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 4, 2024, 2:49pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/234 "2024-03-04T14:49:05Z")

</div>

> [@Vahur\_Tamuri](#):
>
> Did I understand correctly that if I want to transfer data to the Homey device, I will not be able to see it in the Solarman cloud?

No, that’s not the case. The inverters can update both local Homey and Solarman cloud. I can see my data in both, but I never use the Solarman app anymore as it’s too slow. The local connection updates Homey every 10 seconds whereas the cloud is limited to about 10 minutes.

---

<div class="post-metadata">

**Author:** ![Vahur\_Tamuri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vahur_tamuri/32/96312_2.png) [@Vahur\_Tamuri](https://community.homey.app/u/Vahur_Tamuri)\
**Post date:** [March 4, 2024, 2:52pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/235 "2024-03-04T14:52:44Z")

</div>

Here, in fact, the Homey developers themselves could show their good sales work and make it clear to Sofar the possible added value of their product in cooperation with Homey and Adrian. Thank you for your efforts - Adrian.

I just managed to add a panel and inverter with Sofar 1.1.13 SUPER - Hopefully it will work longer now.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bc80863a6c11f238cf656928ca0169f9be1eeb37.png)

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 4, 2024, 3:25pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/236 "2024-03-04T15:25:47Z")

</div>

Great! That means your SOFAR 15000TL-G2 MODBUS TCP address 01 is now sharing its data with the cloud (rate limited) and locally (unlimited) with your Homey.

@Adrian_Rockall Great job and thanks so much for your hard work!

---

<div class="post-metadata">

**Author:** ![Vahur\_Tamuri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vahur_tamuri/32/96312_2.png) [@Vahur\_Tamuri](https://community.homey.app/u/Vahur_Tamuri)\
**Post date:** [March 5, 2024, 6:09am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/237 "2024-03-05T06:09:07Z")

</div>

The data didn’t start showing until the morning when I had to restart the Sofar app. Is there a possible solution here, or does Homey have to restart the app every morning?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 5, 2024, 6:28am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/238 "2024-03-05T06:28:44Z")

</div>

Could you check the log to see if there are any errors?  
I normally have the app running for weeks at a time and it only gets restarted if I’m adding new features or when Homey updates.

---

<div class="post-metadata">

**Author:** ![Vahur\_Tamuri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vahur_tamuri/32/96312_2.png) [@Vahur\_Tamuri](https://community.homey.app/u/Vahur_Tamuri)\
**Post date:** [March 5, 2024, 7:07am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/239 "2024-03-05T07:07:18Z")

</div>

I must have explained it wrong. When the sun started to shine in the morning, the panels and inverter icons added to the Homey app last night did not show data. After restarting the Sofal app 1.1.13, the necessary data also appeared. At night, when the sun is not shining, the inverter and the logger turn off, and at that moment it cannot transmit data to the network. If in the morning the inverter started the application as a result of sunlight, I guess for some reason Homey did not start receiving data until the application was restarted.  
diagnostic log too long to add here. I tried to send a log with your forum username. Hope I did the right thing.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [March 5, 2024, 8:26am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/240 "2024-03-05T08:26:51Z")

</div>

Ok, so the Diagnostics log shows error 404 which means the inverter was not found at 7:26 this morning. It looks like that was after the app was restarted, but it’s not entirely clear.  
Could you check if the IP address of the inverter changes when it restarts?  
If it’s using DHCP to get the IP the router might give it a different one each time it starts and the app might not pick that up until it is restarted and performes the discovery again. If that is the case then maybe assign a fixed IP, either in the logger or via a reservation in the router.  
I will also look at triggering the discovery process again if the app gets a 404 error.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 5, 2024, 11:29am UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/241 "2024-03-05T11:29:01Z")

</div>

It could be useful to add a state online/offline, so we can test for the state in Homey and then restart the app if needed

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [March 6, 2024, 12:01pm UTC](https://community.homey.app/t/app-obsolete-sofar-solarman/70830/242 "2024-03-06T12:01:13Z")

</div>

@Adrian_Rockall  
Side-question: How do I disable the built in AP in the Sofar inverter? Don’t need it anymore, since it is set up, and can connect through my regular network. It seems to interfere with the regular Wifi network.

[Previous page](https://community.homey.app/t/app-obsolete-sofar-solarman/70830.md?page=11)

[Next page](https://community.homey.app/t/app-obsolete-sofar-solarman/70830.md?page=13)
