somm15 / PyViCare

Python Library to access Viessmann ViCare API
Apache License 2.0
130 stars 84 forks source link

Two API calls counted at Viessmann #357

Closed readonly24 closed 5 months ago

readonly24 commented 5 months ago

PyViCare version is 2.32.0

This small script always adds two API calls at Viessmann, can anyone please explain? Thanks.

import sys
import logging
from PyViCare.PyViCare import PyViCare

client_id = "INSERT CLIENT ID"
email = "email@domain"
password = "password"

vicare = PyViCare()
vicare.initWithCredentials(email, password, client_id, "token.save")
device = vicare.devices[1]

t = device.asAutoDetectDevice()

print("Brennertemperatur:", t.getBoilerTemperature())
woehrl01 commented 5 months ago

Hi @readonly24 there are three API calls:

I assume the last two calls are counted to your limit.