dm82m / hass-Deltasol-KM2

Custom component for retrieving sensor information from Resol KM1/KM2, DL2/DL3, VBus/LAN, VBus/USB
MIT License
25 stars 6 forks source link

Which user/password credentials to use for KM2 #18

Closed thampp closed 2 years ago

thampp commented 2 years ago

I have a new KM2 working. I can get to the local web application but I want to use the REST API as well. The GET http://{{resol_IP}}/cgi-bin/get_resol_device_information works fine and returns:

vendor = "RESOL" product = "KM2" serial = "40A36BCB595A" version = "2.0.0" build = "rc1" name = "KM2-40A36BCB595A" features = "vbus,wifi"

But for the calls to POST http://{{resol_IP}}/cgi-bin/resol-webservice I need the "authId" parameter. To get an authId I can see that the code in this plugin calls the webservicel with "method": "login" . But I don't know which username/password to provide in the body (and to the plugin) I tried my vbus.net user/pw from the internet and that does not work (did not think it would - was expecting some local authentication). But the local webinterface on my KM2 has no named users, no way to create additional ones and I can't leave the username empty either. So I keep getting this error. So where do username and password come from for a KM2?

dm82m commented 2 years ago

Username: admin Password can be found on the backside of the km2 and is named web-interface. I found that information in the km2 documentation, it’s 3 years since I did that and was not aware anymore.

this plug-in has nothing to do with vbus.net so also username and password of vbus.net is not needed here

thampp commented 2 years ago

@dm82m Thank you so much Dirk. That immediately worked! I though I had tried all "usual suspects" as user names but I missed "admin" Und Grüsse von Stuttgart nach Dettenhausen :-)

dm82m commented 2 years ago

Hehe, enjoy the plug-in and best wishes from your neighborhood 🤪

hoppel118 commented 7 months ago

Hi, I migrated from vbus lan to km2. Procedure was easy! A little google search for the user brought me to you again @dm82m. :)

Thanks Hoppel