thomasgermain / vaillant-component

Multimatic integration for Home Assistant (also compatible with sensoAPP)
MIT License
135 stars 24 forks source link

Values are updating after too long time #243

Open lklimt opened 8 months ago

lklimt commented 8 months ago

Hello, in my HA Multimatic integration I have set up 2 minutes for scan. But unfortunately many times happend, that the values are updating after many hours /5-8/ and I can´t find the reason. The problem concers maily energy consuption sensors and control sensors. F.e. the outside temperature and the another temperature sensors are showing correct values just in time... If I make manual new update in the setting of the integration, I get immediately new mainly correct values which are the same as I can see in the Vaillant App and on the VR700/6 unit of my heating pump. Thank you for help. LK

thomasgermain commented 8 months ago

Hello,

could you try to call the multimatic.request_hvac_update. This service is used to request "data refresh" from vaillant server. I have an automation which is calling this service every hour.

Do you have any error in the logs ?

lklimt commented 8 months ago

Hello, I tried to call the service but no visible changes - f.e. the circulation sensor last update before 3 hours. But if I make restart of HA, or new update of the Multimatic integration I have on each sensor new values. I log no errors related to Multimatic integration. LK

Krzysztonek commented 8 months ago

I see the same in my integration as @lklimt. I defined an automation, which successfully triggers multimatic.request_hvac_update_212221002026096509xxxxxxxxn9 service every 5 minutes. But it doesn't resolve the issue: still I see not refreshed data with no errors/warnings in the log.

thomasgermain commented 8 months ago

I think every 5min is too frequent. This service is called when you open your mobile app, this is why there are some delay before you can see correct data in the mobile app.

There is no doc about it, but I'm pretty sure it is not aimed to be called so often?

@Krzysztonek @lklimt are you using sensoAPP or multimatic ?

lklimt commented 8 months ago

multimatic

Krzysztonek commented 8 months ago

are you using sensoAPP or multimatic ?

Yes, I'm using multiMATIC app only. And I've just changed this update frequency parameter to 60 min.

lklimt commented 7 months ago

in the log I found more lines with: Unexpected error fetching multimatic_emf_reports data: Unable to authenticate at https://smart.vaillant.com/mobile/api/v4/account/authentication/v1/authenticate, status: 401, response: {"errorCode":"NOT_AUTHORIZED"},payload: None Looks llike, there are some problems with authorization on the Vaillant server - but not all time, most time I can get fresh datas...