vrkttr / homebridge-vicare

Homebridge ViCare Plugin
https://www.vrkttr.de
MIT License
3 stars 0 forks source link

Can't Connect to Vissmann Developer Portal #10

Open darkdevil373 opened 1 month ago

darkdevil373 commented 1 month ago

Hi all,

i try connect my heating System to homebridge. The Config.json is edited, an homebgrige shows in the log the Url to Open the 2 Factor:

https://iam.viessmann.com/idp/v3/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXX&redirect_uri=http%3A%2F%2F192.168.123.43%3A4200&scope=IoT%20User%20offline_access&response_type=code&code_challenge_method=S256&code_challenge=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

in other issues i have found, that there is an error, an i try to edit the URL:

https://iam.viessmann.com/idp/v3/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXXXX&redirect_url=http%3A%2F%2F192.168.123.43%3A4200&scope=IoT%20Userresponse_type=code&code_challenge_method=S256&code_challenge=XXXXXXXXXXXXXXXXXXXXXXX

when i open the edited url, i get an authentication webseite from Vissmann, but after i login with my credentials

The Website shows

"Systemfehler. Bitte versuchen Sie es später." - "System error. Please try again later. "

dvbcheck commented 1 month ago

Same here: Config.json:

        "platform": "ViCareThermostatPlatform",
        "name": "ViCareThermostat",
        "clientId": "f75b7473f9e66035257d3720XXXXXXXX",
        "apiEndpoint": "https://api.viessmann.com/iot/v1",
        "devices": [
            {
                "name": "Supply temperature",
                "feature": "heating.circuits.0.sensors.temperature.supply",
                "deviceId": "0"
            },
            {
                "name": "Main DHW temperature",
                "feature": "heating.dhw.temperature.main",
                "deviceId": "0"
            }
        ],
        "_bridge": {
            "username": "0E:36:84:85:14:46",
            "port": 41849

Status in HomeBridge V. 1.8.4:

[06/10/2024, 08:45:57] [ViCareThermostat] Using redirect URI: http://192.168.2.2:4200 [06/10/2024, 08:45:57] [ViCareThermostat] Opening browser for authentication: https://iam.viessmann.com/idp/v3/authorize?client_id=f75b7473f9e66035257d3720XXXXXXXX&redirect_uri=http%3A%2F%2F192.168.2.2%3A4200&scope=IoT%20User%20offline_access&response_type=code&code_challenge_method=S256&code_challenge=HWTnRnH55JjEmM0wz2EaBaOrXp435DwjbAwsrRFJS5A

**

Bildschirmfoto 2024-10-06 um 08 35 26 Bildschirmfoto 2024-10-06 um 08 51 57 Bildschirmfoto 2024-10-06 um 08 52 20

Bildschirmfoto 2024-10-06 um 08 34 16**

{"error":"invalid_request", "error_description":"Invalid redirection URI."}

dvbcheck commented 1 month ago

VPN causes error in my case.

azizitom commented 1 month ago

I have the same problem

https://iam.viessmann.com/idp/v3/authorize?client_id=0f55dee79e27498e9fa4a54928xxxxxx&redirect_uri=http%3A%2F%2F10.0.0.20%3A4200&scope=IoT%20User%20offline_access&response_type=code&code_challenge_method=S256&code_challenge=jz8Qv4bged71IOP9V6aS845YAt-r9_C0KaZbavfivkc

{ "error": "invalid_request", "error_description": "Invalid redirection URI." }

Any solution?

@darkdevil373 what change in url?