nobl / ioBroker.senec

ioBroker adapter for Senec Home
Other
27 stars 7 forks source link

Senec Home 4 / Senec APP API #201

Closed oakdesign closed 6 months ago

oakdesign commented 7 months ago

I have documented most of the Services that are used by the latest Senec APP here: https://documenter.getpostman.com/view/932140/2s9YXib2td

As I personally use Homeassistant and Node-Red just wanted to supply with the currently available Web API Endpoints as of APP version 4.3.3 (Okt 23), as I have seen that you are using app-gateway back from the APP version 3.12.0 from June 2020 which is outdated and unclear how long it's still maintained by Senec

nobl commented 7 months ago

Thanks for the headsup. Do they indeed mix v1 and v2? (Like login/systems is calling v1 and others are calling v2 and v1 as fallback?)

oakdesign commented 7 months ago

@nobl yes they mix it. Most static Services only have a v1 endpoint. Main Differenzen is in the dynamic Services such as measurement. Where only v1 returns the totals in v2 totals always return null. I havent fully compared the APP traffic in comparsion of the actual stalbe App Version 4.3.3 and the already available beta 4.4.0_beta01 if they might use v1 and v2 endpoints for those. In the end both Endpoints are available and I therefore listed them in my API dokumentation.

michiproep commented 6 months ago

I created an SenecHome4 adapter. It actually runs within my dev-server but I have no clou how to deal with all the github pipelines and release workflows. Can someone help me out?

grafik

nobl commented 6 months ago

You are aware that THIS adapter works for the V4? Why have another adapter?

For help with ioBroker development in general, please see the proper channels.

michiproep commented 6 months ago

I don't see how this can work? After installation, this is the AdminUI: grafik

There is no email/password login. And it does require an IP, so I guess it is connecting locally to the senec device. But my homeV4 does not have a lala.cgi at all.

Or is there a way which I don't see?

nobl commented 6 months ago

Check your version! grafik

No idea how you could install such an old version :) That one is YEARS old ... grafik

Usually the latest-repo on ioB provides you with the most current version. Unless - off course - you are running a very very old ioB version, too.

michiproep commented 6 months ago

Yes, you are correct. Just checked. Thanks.

BTW, a polling interval of 10 sec should be allowed. I tested with my adapter. I get new values every 20 to 30 seconds

nobl commented 6 months ago

The App API only updates values every 5 Minutes - so 10 seconds will only make senec block our requests for good. I had intense talks with SENEC in the past - so I have my reasons for doing or not doing certain things :)

michiproep commented 6 months ago

Alright. Understood. Sorry for the confusion!