Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error fetching myVAILLANT data #218

Closed
3 tasks done
Krzysztonek opened this issue Oct 8, 2024 · 147 comments
Closed
3 tasks done

Unexpected error fetching myVAILLANT data #218

Krzysztonek opened this issue Oct 8, 2024 · 147 comments

Comments

@Krzysztonek
Copy link

Krzysztonek commented Oct 8, 2024

Before submitting a new issue

Problem description

Unexpected error fetching myVAILLANT data

Logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mypyllant/coordinator.py", line 177, in _async_update_data
    data = [
           ^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 358, in get_systems
    system = System.from_api(
             ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 954, in from_api
    DomesticHotWater.from_api(
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 575, in from_api
    data["current_special_function"] = DHWCurrentSpecialFunctionVRC700(
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 757, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 1171, in __new__
    raise ve_exc
ValueError: 'ONE_DAY_BANK_HOLIDAY' is not a valid DHWCurrentSpecialFunctionVRC700

The app works fine for me.
And what is strange, I'm able to run TEST DATA action from HA:

homes:
  - homeName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    serialNumber: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    systemId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    productMetadata:
      productType: VR921
      productionYear: "22"
      productionWeek: "21"
      articleNumber: "0020260965"
    state: CLAIMED
    migrationState: FINISHED
    migrationFinishedAt: "2024-04-09T16:40:59.767070615Z"
    onlineState: ONLINE
    firmware:
      version: 0357.40.35
      connectedToOldIoTPlatform: null
      updateEnabled: true
      updateRequired: false
    nomenclature: VR 921
    cag: false
    countryCode: PL
    productInformation: VR921
    firmwareVersion: 0357.40.35

  control_identifier:
    controlIdentifier: vrc700
  time_zone:
    timeZone: Europe/Warsaw
  diagnostic_trouble_codes:
    - serialNumber: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      articleNumber: "0020171316"
      codes: []
    - serialNumber: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      articleNumber: "0010024648"
      codes: []
    - serialNumber: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      articleNumber: "0020260965"
      codes: []
  connection_status:
    connected: true
  system:
    state:
      system:
        outdoorTemperature: 23.875
        outdoorTemperatureAverage24h: 17.78125
        systemWaterPressure: 1.7
        legionellaProtectionStartWeekday: "OFF"
        energyManagerState: STANDBY
        systemOff: false
      zones:
        - index: 0
          desiredRoomTemperatureSetpointHeating: 0
          desiredRoomTemperatureSetpoint: 0
          currentRoomTemperature: 18.6875
          currentRoomHumidity: 68
          currentSpecialFunction: NONE
      circuits:
        - index: 0
          circuitState: STANDBY
          currentCircuitFlowTemperature: 20.5
          heatingCircuitFlowSetpoint: 0
          calculatedEnergyManagerState: HEATING_STANDBY
      domesticHotWater:
        - index: 255
          currentSpecialFunction: NONE
          currentDomesticHotWaterTemperature: 29
      ventilations: []
    properties:
      system:
        controllerType: VRC700
        controllerRevision: R6
        systemScheme: 1
        backupHeaterType: CONDENSING
        backupHeaterAllowedFor: DOMESTIC_HOT_WATER_AND_HEATING
        temporaryAllowBackupHeater: DISABLED
        moduleConfigurationVR71: 3
        energyProvidePowerCutBehavior: DISABLE_HEATPUMP
        smartPhotovoltaicBufferOffset: 10
        externalEnergyManagementActivation: false
        operationModeEffect: ALL
      zones:
        - index: 0
          isActive: true
          zoneBinding: CENTRAL_CONTROL
          associatedCircuitIndex: 0
      circuits:
        - index: 0
          mixerCircuitTypeExternal: HEATING
          heatingCircuitType: DIRECT_HEATING_CIRCUIT
          isCoolingAllowed: false
      domesticHotWater:
        - index: 255
          minSetpoint: 35
          maxSetpoint: 65
      ventilations: []
    configuration:
      system:
        continuousHeatingStartSetpoint: -26
        alternativePoint: -21
        heatingCircuitBivalencePoint: 0
        domesticHotWaterBivalencePoint: -7
        adaptiveHeatingCurve: true
        domesticHotWaterMaximumLoadingTime: 60
        domesticHotWaterHysteresis: 5
        domesticHotWaterFlowSetpointOffset: 25
        maxFlowSetpointHeatpumpError: 25
        domesticHotWaterMaximumTemperature: 80
        hybridControlStrategy: BIVALENCE_POINT
        paralellTankLoadingAllowed: false
      zones:
        - index: 0
          general:
            name: Ogrzewanie
            holidayStartDateTime: "2015-01-01T00:00:00Z"
            holidayEndDateTime: "2015-01-01T00:00:00Z"
            holidaySetpoint: 10
          heating:
            operationModeHeating: "OFF"
            setBackTemperature: 17.5
            dayTemperatureHeating: 20
            timeProgramHeating:
              metaInfo:
                minSlotsPerDay: 0
                maxSlotsPerDay: 3
                setpointRequiredPerSlot: false
              monday: []
              tuesday: []
              wednesday: []
              thursday: []
              friday: []
              saturday:
                - startTime: 600
                  endTime: 1320
              sunday:
                - startTime: 600
                  endTime: 1320
          cooling: {}
      circuits:
        - index: 0
          heatingCurve: 1.1500001
          heatingFlowTemperatureMinimumSetpoint: 15
          heatingFlowTemperatureMaximumSetpoint: 60
          heatDemandLimitedByOutsideTemperature: 17
          heatingCircuitFlowSetpointExcessOffset: 0
          epsilon: 2
          setbackModeEnabled: false
          roomTemperatureControlMode: NON
      domesticHotWater:
        - index: 255
          operationModeDomesticHotWater: "OFF"
          tappingSetpoint: 50
          holidayStartDateTime: "2015-01-01T00:00:00Z"
          holidayEndDateTime: "2015-01-01T00:00:00Z"
          timeProgramDomesticHotWater:
            metaInfo:
              minSlotsPerDay: 0
              maxSlotsPerDay: 3
              setpointRequiredPerSlot: false
            monday:
              - startTime: 1200
                endTime: 1310
            tuesday:
              - startTime: 1200
                endTime: 1310
            wednesday:
              - startTime: 1200
                endTime: 1310
            thursday:
              - startTime: 1200
                endTime: 1310
            friday:
              - startTime: 1200
                endTime: 1320
            saturday:
              - startTime: 600
                endTime: 1320
            sunday:
              - startTime: 600
                endTime: 1320
          timeProgramCirculationPump:
            metaInfo:
              minSlotsPerDay: 0
              maxSlotsPerDay: 3
              setpointRequiredPerSlot: false
            monday:
              - startTime: 540
                endTime: 1270
            tuesday:
              - startTime: 540
                endTime: 1270
            wednesday:
              - startTime: 540
                endTime: 1270
            thursday:
              - startTime: 540
                endTime: 1270
            friday:
              - startTime: 540
                endTime: 1270
            saturday:
              - startTime: 540
                endTime: 1270
            sunday:
              - startTime: 540
                endTime: 1270
      ventilations: []
  current_system:
    system_type: BOILER_OR_ELECTRIC_HEATER
    has_emf_capable_devices: true
    primary_heat_generator:
      device_uuid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      ebus_id: BAI00
      spn: 376
      bus_coupler_address: 0
      article_number: "0010024648"
      emfValid: true
      device_serial_number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      device_type: BOILER
      first_data: "2022-10-11T14:17:35Z"
      last_data: "2024-10-09T10:44:19.415Z"
      data:
        - operation_mode: DOMESTIC_HOT_WATER
          value_type: CONSUMED_ELECTRICAL_ENERGY
          calculated: false
          from: "2022-10-11T14:17:35Z"
          to: "2024-10-09T10:44:19.415Z"
        - operation_mode: HEATING
          value_type: CONSUMED_ELECTRICAL_ENERGY
          calculated: false
          from: "2022-10-11T14:17:35Z"
          to: "2024-10-09T10:44:19.087Z"
        - operation_mode: DOMESTIC_HOT_WATER
          value_type: CONSUMED_PRIMARY_ENERGY
          calculated: false
          from: "2022-10-11T14:17:35Z"
          to: "2024-10-09T10:44:18.212Z"
        - operation_mode: HEATING
          value_type: CONSUMED_PRIMARY_ENERGY
          calculated: false
          from: "2022-10-11T14:17:35Z"
          to: "2024-10-09T10:44:17.837Z"
      product_name: VC 25CS/1-5 (N-PL) ecoTEC plus
    secondary_heat_generators: []
    electric_backup_heater: null
    solar_station: null
    ventilation: null
    gateway: null
  mpc:
    devices: []
  rts:
    statistics: []
  device_buckets:
    startDate: "2024-10-08T00:00:00Z"
    endDate: "2024-10-09T00:00:00Z"
    resolution: HOUR
    operationMode: DOMESTIC_HOT_WATER
    energyType: CONSUMED_ELECTRICAL_ENERGY
    totalConsumption: 25.709258280988383
    data:
      - startDate: "2024-10-08T00:00:00Z"
        endDate: "2024-10-08T01:00:00Z"
        value: 0
      - startDate: "2024-10-08T01:00:00Z"
        endDate: "2024-10-08T02:00:00Z"
        value: 0
      - startDate: "2024-10-08T02:00:00Z"
        endDate: "2024-10-08T03:00:00Z"
        value: 0
      - startDate: "2024-10-08T03:00:00Z"
        endDate: "2024-10-08T04:00:00Z"
        value: 0
      - startDate: "2024-10-08T04:00:00Z"
        endDate: "2024-10-08T05:00:00Z"
        value: 0
      - startDate: "2024-10-08T05:00:00Z"
        endDate: "2024-10-08T06:00:00Z"
        value: 0
      - startDate: "2024-10-08T06:00:00Z"
        endDate: "2024-10-08T07:00:00Z"
        value: 0
      - startDate: "2024-10-08T07:00:00Z"
        endDate: "2024-10-08T08:00:00Z"
        value: 0
      - startDate: "2024-10-08T08:00:00Z"
        endDate: "2024-10-08T09:00:00Z"
        value: 0
      - startDate: "2024-10-08T09:00:00Z"
        endDate: "2024-10-08T10:00:00Z"
        value: 0
      - startDate: "2024-10-08T10:00:00Z"
        endDate: "2024-10-08T11:00:00Z"
        value: 0
      - startDate: "2024-10-08T11:00:00Z"
        endDate: "2024-10-08T12:00:00Z"
        value: 0
      - startDate: "2024-10-08T12:00:00Z"
        endDate: "2024-10-08T13:00:00Z"
        value: 0
      - startDate: "2024-10-08T13:00:00Z"
        endDate: "2024-10-08T14:00:00Z"
        value: 0
      - startDate: "2024-10-08T14:00:00Z"
        endDate: "2024-10-08T15:00:00Z"
        value: 0
      - startDate: "2024-10-08T15:00:00Z"
        endDate: "2024-10-08T16:00:00Z"
        value: 10.968487259579335
      - startDate: "2024-10-08T16:00:00Z"
        endDate: "2024-10-08T17:00:00Z"
        value: 13.869530781343732
      - startDate: "2024-10-08T17:00:00Z"
        endDate: "2024-10-08T18:00:00Z"
        value: 0.8514350840769347
      - startDate: "2024-10-08T18:00:00Z"
        endDate: "2024-10-08T19:00:00Z"
        value: 0
      - startDate: "2024-10-08T19:00:00Z"
        endDate: "2024-10-08T20:00:00Z"
        value: 0
      - startDate: "2024-10-08T20:00:00Z"
        endDate: "2024-10-08T21:00:00Z"
        value: 0.0029669536208675675
      - startDate: "2024-10-08T21:00:00Z"
        endDate: "2024-10-08T22:00:00Z"
        value: 0.0056127341225030184
      - startDate: "2024-10-08T22:00:00Z"
        endDate: "2024-10-08T23:00:00Z"
        value: 0.0056127341225030184
      - startDate: "2024-10-08T23:00:00Z"
        endDate: "2024-10-09T00:00:00Z"
        value: 0.0056127341225030184
  rbr:
    rbrCapable: true
  rooms: []
  energy_management:
    energyManager:
      available: false
      compatible: false
    energyManagementStatus:
      thermalStorage:
        domesticHotWater:
          available: false
          selected: false
        heatingBufferCylinder:
          available: false
          selected: true
  ship_self:
    ski: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    brand: Vaillant
    type: Gateway
    model: VR921
    spineEnabled: false
    spineEnabledStatus: DETERMINED
    spineCapable: true
@dcw77
Copy link

dcw77 commented Oct 9, 2024

I am also experiencing the exact same issue.

@electricfire
Copy link

I have the same issue as well just different variables.

@rhgiter
Copy link

rhgiter commented Oct 9, 2024

same problem

@aurelieng2009
Copy link

Same Here

@Seliaks65
Copy link

Same here - all entities became unavailable since 7.16am UK time this morning. myVaillant App is still working fine.

@Xerbo
Copy link

Xerbo commented Oct 9, 2024

2024-10-09 07:17:21.644 ERROR (MainThread) [custom_components.mypyllant.coordinator] Error fetching myVAILLANT data: 404, message='Not Found', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/systems/____/tli'
2024-10-09 07:23:22.242 ERROR (MainThread) [custom_components.mypyllant.coordinator] Unexpected error fetching myVAILLANT data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mypyllant/coordinator.py", line 177, in _async_update_data
    data = [
           ^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 358, in get_systems
    system = System.from_api(
             ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 944, in from_api
    Zone.from_api(
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 430, in from_api
    data["cooling"] = ZoneCooling.from_api(
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 326, in from_api
    **data["time_program_cooling"]
      ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'time_program_cooling'

Seemingly same here but with a slightly different error

@jan666
Copy link

jan666 commented Oct 9, 2024

KeyError: 'time_program_cooling'


Seemingly same here but with a slightly different error

same error here. Looks like it started today at 08:30

@ecranbleu27
Copy link

Same here. Maybe an api issue on Vaillant side… both app and thermostats are up and running.

@nakedfoot
Copy link

Exactly the same here.

@dardennejf
Copy link

The same here

@Merseybear
Copy link

I'll join the list too!

@mgiesl2s
Copy link

mgiesl2s commented Oct 9, 2024

Me too

@R1200G
Copy link

R1200G commented Oct 9, 2024

Same here since 08:15..

@Richardstables
Copy link

me too

@lecocqe
Copy link

lecocqe commented Oct 9, 2024

same here since 8:16 CET but official phone app is starting but if i click on 1 VR50, i get "unknown error, please try again later"

@jstott1070
Copy link

Ditto - looks to me like a possible change to the API as MyVailliant App is still functioning as expected today

@lecocqe
Copy link

lecocqe commented Oct 9, 2024

now app is back. but intregation not yet

@hkcrainer
Copy link

Same issue here

@h4wk1234
Copy link

h4wk1234 commented Oct 9, 2024

same here :( app is working fine thow.

@lecocqe
Copy link

lecocqe commented Oct 9, 2024

the most strange is that i could do "call service" test data
image

@sgbossinga
Copy link

Since 8:16 no more data (Netherlands)

@grahamsparrow-8451
Copy link

I also have the same problem. Interestingly, at the same time, Home Assistant recognised MyVaillant Connect Gateway as a HomeKit device. Could be a coincidence, since I also update Home Assistant yesteday.

@ecranbleu27
Copy link

Does someone already try to contact [API-support@vaillant-group,com] ?

@MSGH11
Copy link

MSGH11 commented Oct 9, 2024

Same here

@Voyager08
Copy link

same here...

@Cameleon99
Copy link

Cameleon99 commented Oct 9, 2024

Ditto, same errors here, app still working fine.

@Acey-yo
Copy link

Acey-yo commented Oct 9, 2024

Push...same

@Shortykiller
Copy link

Same problem here i DK 08:17:06

@nady2804
Copy link

nady2804 commented Oct 9, 2024

Same issue from my side no Data i deinstall install the latest vesion again. NO Data can grab. Android App is already working...

@Cameleon99
Copy link

Paging @signalkraft as this seems pretty major as this integration goes. Guessing Vaillant has changed some data on their side.

I can also call the service/action - Generate Test Data - and it returns what looks to be the correct data, I assume parsing it is failing somewhere now?

@froggi1930
Copy link

The last notes do not seem to be related to the originally reported error of the integration.
This integration needs to be fixed.

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.mypyllant.coordinator
Quelle: helpers/update_coordinator.py:354
Integration: myVAILLANT (Dokumentation, Probleme)
Erstmals aufgetreten: 08:39:50 (2 Vorkommnisse)
Zuletzt protokolliert: 08:39:51

Unexpected error fetching myVAILLANT data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mypyllant/coordinator.py", line 177, in _async_update_data
    data = [
           ^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 358, in get_systems
    system = System.from_api(
             ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 944, in from_api
    Circuit.from_api(system_id=system.id, timezone=system.timezone, **c)
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 83, in from_api
    return cls(**data)
           ^^^^^^^^^^^
  File "pydantic/dataclasses.py", line 329, in pydantic.dataclasses._add_pydantic_validation_attributes.new_init
  File "pydantic/dataclasses.py", line 293, in pydantic.dataclasses._add_pydantic_validation_attributes.handle_extra_init
TypeError: Circuit.__init__() missing 1 required positional argument: 'circuit_state'
@dataclass(config=MyPyllantConfig)                                      
class Circuit(MyPyllantDataClass):
    system_id: str                  
    index: int
    circuit_state: CircuitState | None = None
    mixer_circuit_type_external: str | None = None
    set_back_mode_enabled: bool | None = None
    zones: list = field(default_factory=list)
    is_cooling_allowed: bool | None = None
    current_circuit_flow_temperature: float | None = None
    heating_curve: float | None = None
    heating_flow_temperature_minimum_setpoint: float | None = None
    heating_flow_temperature_maximum_setpoint: float | None = None
    min_flow_temperature_setpoint: float | None = None
    calculated_energy_manager_state: str | None = None

This seems to work, but I’m not a programmer and unfortunately cannot implement it myself.

@smmoroz
Copy link

smmoroz commented Oct 20, 2024

I updated my system to version 0.8.17, but I still unable to fetch myVAILLANT data.
Here is the traceback:

2024-10-10 07:46:42.998 ERROR (MainThread) [custom_components.mypyllant.coordinator] Unexpected error fetching myVAILLANT data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mypyllant/coordinator.py", line 177, in _async_update_data
    data = [
           ^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 358, in get_systems
    system = System.from_api(
             ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 944, in from_api
    Circuit.from_api(system_id=system.id, timezone=system.timezone, **c)
  File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 83, in from_api
    return cls(**data)
           ^^^^^^^^^^^
  File "pydantic/dataclasses.py", line 329, in pydantic.dataclasses._add_pydantic_validation_attributes.new_init
  File "pydantic/dataclasses.py", line 293, in pydantic.dataclasses._add_pydantic_validation_attributes.handle_extra_init
TypeError: Circuit.__init__() missing 1 required positional argument: 'circuit_state'

Here is the output of mypyllant.generate_test_data

 system:
    state:
      system:
        outdoorTemperature: 14.125
        outdoorTemperatureAverage24h: 11.0703125
        systemFlowTemperature: 29.8125
        systemWaterPressure: 1.3
        legionellaProtectionStartWeekday: MONDAY
        energyManagerState: HEATING
        systemOff: false
      zones:
        - index: 0
          desiredRoomTemperatureSetpointHeating: 0
          desiredRoomTemperatureSetpoint: 0
          currentRoomTemperature: 29.8125
          currentRoomHumidity: 31
          currentSpecialFunction: NONE
      circuits:
        - index: 0
          circuitState: STANDBY
          currentCircuitFlowTemperature: 29.8125
          heatingCircuitFlowSetpoint: 0
          calculatedEnergyManagerState: HEATING_STANDBY
        - index: 2
          circuitState: STANDBY
          heatingCircuitFlowSetpoint: 0
          calculatedEnergyManagerState: HEATING_STANDBY
        - index: 1
          calculatedEnergyManagerState: HEATING_STANDBY
      domesticHotWater:
        - index: 255
          currentSpecialFunction: NONE
          currentDomesticHotWaterTemperature: 47.5
      ventilations: []
    properties:
      system:
        controllerType: VRC700
        controllerRevision: R4
        systemScheme: 1
        backupHeaterType: CONDENSING
        backupHeaterAllowedFor: DOMESTIC_HOT_WATER_AND_HEATING
        temporaryAllowBackupHeater: DISABLED
        moduleConfigurationVR71: 3
        energyProvidePowerCutBehavior: DISABLE_HEATPUMP
        smartPhotovoltaicBufferOffset: 10
        externalEnergyManagementActivation: false
        operationModeEffect: ALL
      zones:
        - index: 0
          isActive: true
          zoneBinding: CENTRAL_CONTROL
          associatedCircuitIndex: 0
      circuits:
        - index: 0
          mixerCircuitTypeExternal: HEATING
          heatingCircuitType: DIRECT_HEATING_CIRCUIT
          isCoolingAllowed: false
        - index: 2
        - index: 1
          mixerCircuitTypeExternal: FIX_VALUE
          heatingCircuitType: DIRECT_HEATING_CIRCUIT
          isCoolingAllowed: false
      domesticHotWater:
        - index: 255
          minSetpoint: 35
          maxSetpoint: 65
      ventilations: []

Indeed, here is a circuit with index 1, which has no state and other properties data. I don't know what is this.
I made circuit_state positional argument optional, and now it works like a charm!

@dataclass(config=MyPyllantConfig)                                      
class Circuit(MyPyllantDataClass):
    system_id: str                  
    index: int
    circuit_state: CircuitState | None = None
    mixer_circuit_type_external: str | None = None
    set_back_mode_enabled: bool | None = None
    zones: list = field(default_factory=list)
    is_cooling_allowed: bool | None = None
    current_circuit_flow_temperature: float | None = None
    heating_curve: float | None = None
    heating_flow_temperature_minimum_setpoint: float | None = None
    heating_flow_temperature_maximum_setpoint: float | None = None
    min_flow_temperature_setpoint: float | None = None
    calculated_energy_manager_state: str | None = None

Where did you change that?

docker exec -it homeassistant /bin/bash

vi /usr/local/lib/python3.12/site-packages/myPyllant/models.py

@dhavaldesai-HA
Copy link

I encountered the same problem yesterday. When I restart the integration I will receive values from the api, but once the next call is made (after 60 secs following the configuration) I will get the error above: Quota exceeded. My version is 0.8.17

Exactly same thing here since 2 weeks. Updates to 0.8.17 and HA core is upgrade to 2024.10.3.

@MSGH11
Copy link

MSGH11 commented Oct 20, 2024

I’ve been experiencing more outages again over the past few days. Version 8.17 and the latest Home Assistant installation. It’s unfortunate, especially now that the heating season is starting here. I use the integration a lot.

@jstott1070
Copy link

Ditto.. 8.17 & latest available HA and pretty much all sensors unavailable.. oddly I can still see the basic sensors of the remote thermostat controller (sensoHOME) but everything else is currently dead.

@GuyHarg
Copy link

GuyHarg commented Oct 22, 2024

Hi 8.17 freshly loaded and "no devices or entities" detected. Been like this for close on a week. Have deleted and reloaded.

@Boeroer
Copy link

Boeroer commented Oct 22, 2024

Vaillant send an eMail and said that they updated their app (it crashed when looking up the consuption data). Whatever they did to the app and most likely also the api, it fixed this integration for me, too. Fingers crossed!

@Flori1007
Copy link

I updated the vaillant app But still no emtities in HA.... 😔

@passiber
Copy link

I also had some trouble with the integration since 2-3 weeks.
HA-Version: 2024.10.3
Vaillant-Integration: v0.8.17

My solution for energy sensors:
Like @rprdan I also recognized that my Vaillant-App crashes when entering the energy tab in the app. So it seemed to be a general problem with the Vaillant Api. Since yesterday I recognized that my Vaillant App is working again and I was able to see the energy values again in myVaillant App. But in HA the energy entitys were still unavailable. In HA I got the warning "This entity is no longer provided by the integration“. Then I found out following work around which worked for me to get the energy entities in HA working again:
I deactived one of the energy entities which were unavialable in the settings (click refresh button after deactivating the entity).
Afterwards I activated the energy entitiy again (and click refresh button).
After some seconds ALL of the energy entities were available again and are working since yesterday for me.

My solution for quota exceeded error:
Previously my config of myVaillant integration was like following:
interval between updates in seconds: 180
interval between energy data updates in seconds: 3600

Now I changed my config too:
interval between updates in seconds: 185
interval between energy data updates in seconds: 3600

Now the quota exceeded error disappeared after this change for already 1 day. I don’t know if it’s because of this change or because there was a parallel bug fix in the Vaillant Api :D. I was imagine that the problem could be, because update of the energy data and other updates were updated at the same time, because 3600 is a multiple of 180, which probably caused the error?! But I am not sure, as it worked before with this config without any problem.
But maybe it will help somebody else to fix the error, if you still have it...

@Boeroer
Copy link

Boeroer commented Oct 23, 2024

I disabled the integration - and enabled it again after I got the eMail from Vaillant saying that the app got fixed (consumption page not crashing anymore). That was all it took for the integration to work properly again. My update interval is still 60 secs and it works fine (for now).

@git-jhs
Copy link

git-jhs commented Oct 23, 2024

I disabled the integration - and enabled it again after I got the eMail from Vaillant saying that the app got fixed (consumption page not crashing anymore). That was all it took for the integration to work properly again. My update interval is still 60 secs and it works fine (for now).

Same here 👌

@rprdan
Copy link

rprdan commented Oct 23, 2024

@passiber Interesting.
So I've been running successfully for the last 5 days after deleting and re-adding the integration (although there are occasionally gaps in the temperature readings, so I assume Vaillant are still struggling somewhere), but without all the check boxes for statistics, power usage, and energy management.
It was probably just energy management but I just wanted the integration to work, and can live without these "extras".

So armed with your information, I've just deleted and re-added again (I don't seem to have luck just reconfiguring, but that may just be me) and immediately set "3630" seconds between energy updates, but this time ticked these (that were working previously and then seemed to be causing the "only working for one reading" issue.

  • Fetch real-time statistics (not supported on every system)
  • Fetch real-time power usage (not supported on every system)
  • Fetch Energy Management Data

Obviously I have no idea if anything else has changed so this is just poking in the dark.
So far the integration is working after more than one hour, and it appears that my energy management data is starting to populate, but the realtime emergy data, which was working before the outage, isn't back yet.
FYI, this is my experience, I am not advising anyone to do anything here :)

@Boeroer you're lucky to be getting emails from Vaillant! I've got nothing at my registered address.

@meierchen006
Copy link

meierchen006 commented Oct 23, 2024

Hello,

I have exactly the same problem with energy data.. I also have version 0.8.17
Country = Germany

I have now also:

Interval between updates to 185 previously 60
Interval between energy data to 3600 previously 3600

set

Let's see if it works again now

The myVaillant app no longer crashes after the latest update to version 2.22.1, but now shows a text window under energy options in which it says:
Consumption data is being collected ...

Screenshot 2024-10-23

@lklimt
Copy link

lklimt commented Oct 23, 2024

Hello, look's like Vaillant is blocking or limiting IPs on that the myPyllant is for some time regulary requesting and getting datas from Vaillant. How I found it out ? On Saturday my HA myPyllant integration stoped to work - similar as many times described in this chain. At the same time I found out that the myVaillant APP on my Iphone /connected in the same home network with the same public IP as my HA is not getting the consuption datas /the App was after trial to open the consumption data automaticaly closing/. But on the T-Mobile public LTE network was the APP on my IPhone correctly working. After I switched my home router to my second public IP, the myPyllant intergration started again to work and the same the APP on my IPhone conected to my home network. Nice. But... Today again the same problem. Nothing working any more. After the switch to my primary public IP everything again OK. Looks like if the integration is regulary contacting Vaillant server - in my case setting 180 sec. btw. updates and 3600 sec. btw data updates - after some time Vaillant start to ban the IP - there should be some kind of counter of the incomming requests and after some value the IP start to be limited at least for some requests. It will be interesting to see aftre how long time the baned IP start again correctly work. My question is, what is actual the correct value for the frequency of updates not get again this kind of ban?

@meierchen006
Copy link

Hello,

I have also done the test for myself.
Switched to mobile network on the smartphone and the energy values are there.
Restarted the Fritzbox in the house (got a new public IP) and the values are also back.

So it will be the case that Vaillant blocks the corresponding IP if there are too many queries.

Now the question is how often can you query?

@Boeroer
Copy link

Boeroer commented Oct 24, 2024

Integration stopped working again. Seems indeed the case that Vaillant is blocking queries.

@bartmarchand1
Copy link

Same here
There was a problem with the Migo app and requesting power usage in it also.
This looks solved now. Only a problem with the integration.

@rprdan
Copy link

rprdan commented Oct 25, 2024

My update ,just to assist with more information, is that as of 2 days ago, with the integration deleted and set up fresh with 3630 seconds between energy updates, it has been fully functional with 43 entities and 5 devices. Oh and my WAN IP address is not changing.

The only thing that appears to have changed since the original outage is that I no longer get real-time power usage, which was there before and on my dashboard, but the entity seems to not be there when the tickbox is checked (rather than there and not functioning - I have a screenshot from the 10th October that showed 46 entities with the same tickboxes checked and I now get 43 with the same settings).

Oh well!

@Flori1007
Copy link

My update ,just to assist with more information, is that as of 2 days ago, with the integration deleted and set up fresh with 3630 seconds between energy updates, it has been fully functional with 43 entities and 5 devices. Oh and my WAN IP address is not changing.

The only thing that appears to have changed since the original outage is that I no longer get real-time power usage, which was there before and on my dashboard, but the entity seems to not be there when the tickbox is checked (rather than there and not functioning - I have a screenshot from the 10th October that showed 46 entities with the same tickboxes checked and I now get 43 with the same settings).

Oh well!

When u wie the hub, all emtities are gone right? I have many automations working with the integrations and then all things wont work....

@meierchen006
Copy link

meierchen006 commented Oct 25, 2024

Hello,
Sorry What is the “Hub”
I have the integration 0.8.17

My heat pump has just stopped responding to control tasks altogether.
Neither to the myVaillant app
nor to Home Assistant.

I have restarted my Fritzbox again and also restarted the SensoNet to get it running again.

@Krzysztonek
Copy link
Author

Krzysztonek commented Oct 25, 2024

Sorry What is the “Hub”

In a sense of Home Assistant hub is a common name of a device class. Logically, you can treat HUB as a network node that connects two networks with different transmission protocols together.
In your case, one of those networks is your LAN, where your HA server is located, the second network is your Vaillant ecosystem.
To use myVaillant integration in HA you need to configure your HUB as per its documentation, which allows both networks to see each other.

@rprdan
Copy link

rprdan commented Oct 25, 2024

When u wie the hub, all emtities are gone right? I have many automations working with the integrations and then all things wont work....

Yes, I delete the configuration and then configure again. It appears to me to keep the automations and all entities in my Home Assistant when I do this. Not behaviour I'd expect, but I'm grateful for it.

However I would recommend that you have a full backup and proceed with caution, before you make any changes based on what some random person on the Internet tells you.

@froggi1930
Copy link

Is anybody working in an Update for the integration, as it is still broken?

@tstraetgen
Copy link

I have changed my IP-address and now it works for me. I`m sure that Vaillant is blocking IP-addesses with too many requests.

@froggi1930
Copy link

This does not help. The integration is broken. Whether this is due to a change in the API nobody can tell unless you have access to the documentation which @signalkraft should have, but he does not respond at all to the various issues reported not only in this thread. Kind of sad, but I do not think this will come back to life.

@jstott1070
Copy link

jstott1070 commented Oct 29, 2024 via email

@signalkraft
Copy link
Owner

Since I'm getting called out here I better write something 🔥

Like @jstott1070 pointed out, this seems like an API issue more than an integration issue. Nothing about the polling frequency or number of API endpoints in this integration changed recently. I've had quota errors once or twice myself, but nothing noticable in my own use of the integration. I've kept the polling rates at the default. If I had the problem more often myself, I could more easily debug it and try to fix it. As it stands, there's not much I can do.

What anyone with the problem could try:

  • Tweaking polling Unexpected error fetching myVAILLANT data #218 (comment)
  • Anyone that has the problem consistently can reverse engineer the latest version of the app and compare the API calls it makes to the ones this integration makes, that may help narrow down the problem
  • What may also help is turning on debug logging and checking that no excessive requests are being made. Just counting debug messages with Starting GET to https://api.vaillant-group.com by time may reveal something

@froggi1930 I know as much about Vaillant's API as anyone else. It's not documented, and Vaillant doesn't inform me about changes - it's all reverse engineered from their app by myself, and some nice people who volunteer their free time for you.

@signalkraft
Copy link
Owner

I will close this now (since the issue was originally about sth completely different), there is more discussion happening over here: #226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests