abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Cannot get installationId, gatewaySerial and deviceId

Hi, 

 

at https://developer.viessmann.com/en/doc/iot/overview it is said that a simple GET request to https://api.viessmann.com/iot/v1/equipment/installations should return the installationId.

 

Everything I get is 

 

 

{"data":[],"cursor":{"next":""}}

 

 

 

To query the API endpoint I'm using the small PHP script from https://www.viessmann-community.com/t5/Getting-started-programming-with/To-help-get-started/td-p/181... which shows me my user details.

 

I simply added the following at the end of the PHP script:

 

 

$url = "https://api.viessmann.com/iot/v1/equipment/installations/";

$curloptions = array(
    CURLOPT_URL => $url,
    CURLOPT_HTTPHEADER => $header,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_RETURNTRANSFER => true,
    //CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
);

// Data Curl Call 
//
$curl = curl_init();
curl_setopt_array($curl, $curloptions);
$response = curl_exec($curl);
curl_close($curl);

echo($response);

 

 

 

Am I missing something?

 

Cheers

Andreas

9 ANTWORTEN 9

Hi @MrAnderson ,

 

This topic is related to the issue you stated in this thread right? https://www.viessmann-community.com/t5/Getting-started-programming-with/Some-code-to-receive-info-fr...

 

Solution was that the account you are using has no installation registered.

 

Best,

 

Michael

Hi, I get the same error message. But I do not use ViCare (Vitovalor 300p), only Vitodata300 and Vitotrol. Is there anyting else required to register my installation for data retrieval via the API?!

Thanks in advance.

@snigge for using the API for your device, your system must be connected through a Vitoconnect or using the connectivity inside the device (if available) and be registered using the ViCare app. Vitodata is unfortunately not compatible with the API.

 

Regards,

 

Michael

Hello,

I used this address to get installationId, gatewaySerial and deviceId:

https://api.viessmann.com/iot/v1/equipment/installations?includeGateways=true

What I get is JSON type data, such as installationId and gatewaySerial but there is no deviceId. 😞

Any advice?

Thank you.

I'm also having problems with the deviceId.

 

This is working:

https://api.viessmann.com/iot/v1/equipment/installations/{{installationID}}/gateways/{{gatewaySerial}}/devices

 

The deviceID result is like

id "gateway" or ""RoomControl-1" or "HeatDemandControl"

 

but these deviceIDs don'T work with https://api.viessmann.com/iot/v2/features/installations/{{installationId}}/gateways/{{gatewaySerial}}/devices/{{deviceId}}/features

 

viErrorId "req-e76ed613ba894480bca7cf2fe47a1a4d"
statusCode 502
errorType "EVEREST_ERROR"
message "EVEREST_ERROR"
extendedPayload
code "404"
reason "Client does not exist"

 

Please help, thanks.

Try deviceId=0

Hello Robinson. Error also with deviceId 0

 

viErrorId "req-fc7490aca1574c12a28a959aa1de2ed3"
statusCode 502
errorType "EVEREST_ERROR"
message "EVEREST_ERROR"
extendedPayload
code "404"
reason "Client does not exist"

I think you are making the same error as me.

You can't just put this addrss in your browser. It won't work.

You need to use something like POSTMAN.

I have to learn it myself too.

Thank you, Robinson.

Top-Lösungsautoren