Comments (10)
from viessmann-api.
similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"
Any Ideas?Some people, told me that they did a password recovering to fix the problem. Seems that password with special character lead to some problem. Maybe it's in my implementation but can't check right now.
Did you update the bootstrap.php and the credentials.propeties ? It's required to change both so that the new format of the credentials.properties is correctly managed.
Hi,
I had same issue and I enclosed all the fields with double quote (") to solve it :
user="[email protected]"
pwd="P4ssword!"
clientId="myAPIkey"
from viessmann-api.
Did you make sure, that this redirect URL is set for the client in the developer portal?
from viessmann-api.
similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"
Any Ideas?
from viessmann-api.
I've had some problems logging in, instead user name I had to provide e-mail address. Maybe something similar?
from viessmann-api.
I read Viessmann documentation and I'm able now to connect without PHP library.
As viessmann API uses now OAuth, you have to login manually via a Viessman login form, then the form is redirecting you to your redirect_uri.
If you want to avoid that (for an automatic script which refresh every minutes for example), you need to set scope to IoT User offline_access to get a refresh_token which allows to get a fresh token without manual login.
With a simple call, I'm able to retrieve all data from my boiler.
Example of a simple script when u have your refresh_token
$token = json_decode(exec('curl -X POST "https://iam.viessmann.com/idp/v2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&client_id=CLIENT_ID&refresh_token=REFRESH_TOKEN"'));
echo exec('curl -X GET https://api.viessmann.com/iot/v1/equipment/installations/INSTALLATION_ID/gateways/GATEWAY_SERIAL/devices/0/features -H "Authorization: Bearer '.$token->access_token.'"');
Viessmann Oauth documentation to get a refresh_token:
https://developer.viessmann.com/en/doc/authentication
from viessmann-api.
similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"Any Ideas?
Some people, told me that they did a password recovering to fix the problem. Seems that password with special character lead to some problem. Maybe it's in my implementation but can't check right now.
Did you update the bootstrap.php and the credentials.propeties ? It's required to change both so that the new format of the credentials.properties is correctly managed.
from viessmann-api.
Thanks for the feedback. I will try to fix this to avoid the double quote
from viessmann-api.
I did a fix that should correctly parse php reserved char($,...).
The fix is inside the bootstrap.php for information. Could you check?
from viessmann-api.
Hi,
I got the following :
pi@rasp-domoticz:
/Viessmann-Api/PAC-History$ php getPACValues.php/Viessmann-Api/PAC-History$
PHP Warning: include(phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php" in /home/pi/Viessmann-Api/PAC-History/bootstrap.php on line 7
PHP Warning: include(): Failed opening 'phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php' for inclusion (include_path='.:/usr/share/php') in /home/pi/Viessmann-Api/PAC-History/bootstrap.php on line 7
Array
(
[user] => [email protected]
[pwd] => Passw!qu5
[clientId] => xxxxxxxxxxxxxxx
[installationId] =>
[gatewayId] =>
[deviceId] => 0
[circuitId] => 0
)
Message: Class 'Viessmann\API\ViessmannAPI' not found
Code: 0
pi@rasp-domoticz:
from viessmann-api.
Related Issues (20)
- Is it possible to read the values of the energy balance? HOT 6
- Action activat et désactivate sur programme externe (external progams).
- API officiel Viessmann HOT 1
- Does setDhwTemperature2() for oneTimeCharge-Temp exist? HOT 1
- Install composer HOT 1
- Issues with new Viessmann API authentication HOT 3
- for information, futures not working in new api for my OPT1 (Vitoconnect 100) but before working fine HOT 12
- getRawJsonData / setRawJsonData don't work with new V api? HOT 5
- The feature getDhwTemperature() is no longer working HOT 4
- from yesterday - Error during authentication process HOT 2
- Consommations électriques et gaz ne remontent plus HOT 18
- Some features broken (?) HOT 8
- Query zigbee devices -> room temp. HOT 9
- PHP Warning: Argument #2 ($key) must be passed by reference,
- $viessmannApi->getHeatingSolarStatistics() not working.
- Invalid REDIRECT_URL in ViessmannOauthClientImpl
- Error installation HOT 2
- Update to Version 2.0 pour novice
- Could not get the API work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viessmann-api.