Coder Social home page Coder Social logo

Comments (4)

thomasgermain avatar thomasgermain commented on June 9, 2024

Hello,

so first what do you mean by the integration is offline ? You don't have any new data coming in ? If it's the case, do you have any other errors ? Because the integration is refreshing the data every 2 minutes, so if you don't have any new data for 1 day, you should have plenty of errors.

I have something in my todo list to fix the JSONDecodeError, sometimes, it seems the API doesn't return json. I'm still wondering how I can do that.

You could have the request_hvac_update is done too often if you open the app and just after the HA integration is also calling the request_hvac_update . So if you only had the warning once, I would recommend to keep it every 1h.

Yes, the integration is getting data at HA starting (like any other integration actually).

By the way, if you are developing, you should use HA inside docker https://www.home-assistant.io/docs/installation/docker/. I'm suing that (so my "production" HA is actually never restart expect on electricity failure or update).

from vaillant-component.

h4de5 avatar h4de5 commented on June 9, 2024

after restart - thats the very first message:

2020-10-06 22:16:43 ERROR (MainThread) [custom_components.vaillant.hub] Unable to fetch data from vaillant, API says: {'errorCode': 'FACILITY_NOT_ONLINE'}, status: 409
Traceback (most recent call last):
  File "/config/custom_components/vaillant/hub.py", line 75, in _update_system
    self.system = await self._manager.get_system()
  File "/usr/local/lib/python3.8/site-packages/pymultimatic/systemmanager.py", line 83, in get_system
    full_system = await full_system_req
  File "/usr/local/lib/python3.8/site-packages/pymultimatic/systemmanager.py", line 582, in _call_api
    return await self._connector.request(method, url, payload)
  File "/usr/local/lib/python3.8/site-packages/pymultimatic/api/connector.py", line 170, in request
    raise ApiError('Cannot ' + method + ' ' + url, response=resp,
pymultimatic.api.error.ApiError: Cannot get https://smart.vaillant.com/mobile/api/v4/facilities/xxxxx/systemcontrol/v1

and thats it - in hass the all entities just read "unavailable".
I also just checked the logs and the automation for request_hvac_update does not get triggered directly after each restart - so my worry was arbitrary.

/edit: and of course - while writing this and restarting home-assistant once again - everything went back to normal.
maybe vaillant just put me on a temporary ban and the update once every hour somehow prolonged it .. or I don't know ..

from vaillant-component.

thomasgermain avatar thomasgermain commented on June 9, 2024

yeah, of course 😛 (it only happens to me).

Actually, the vaillant API is quite unstable, I often receive an empty message, or an error "REPORT_DOES_NOT_EXIST", "FACILITY_NOT_ONLINE" or connection timeout (specially during the night). This is why I put extra effort for the integration to be able to recover from these errors, so you don't have to restart HA.

I don't think there is some kind of ban, are you using a dedicated user for HA ?

from vaillant-component.

h4de5 avatar h4de5 commented on June 9, 2024

I thought so. yes - the HA integration uses a different account than my mobile phone - which I use anyways just to check if the API is really offline or my HA setup somehow messed up again ;)

still strange - i restartet HA pretty often yesterday, but at least between 10pm and just before I didn't any data in the log.

but again thanks for the clearification.

from vaillant-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.