Skip to content

Missing object for <vin>.remote.access state (warning: "has no existing object") #449

Description

@MMeinhardt1

Describe the bug

After installing/updating the adapter, ioBroker logs the following warning repeatedly:

vw-connect.0
warn	State "vw-connect.0.<VIN>.remote.access" has no existing object, this might lead to an error in future versions

The state remote.access is being written by the adapter (setState, ack: true) but there is no corresponding object created for it. All the other states under remote.* (e.g. charging, refresh, climatisation, windowheating, chargeMinLimit, maxChargeCurrent, forceRefresh, climatisationv2, climatisationv3) do have proper objects, so access appears to be the only one missing.

To Reproduce

  1. Install/run the adapter with type: id (Volkswagen We Connect ID).
  2. Let it log in and poll vehicle data / rights.
  3. Check the ioBroker log — the warning above appears for <vin>.remote.access.
  4. Deleting the orphaned state via iobroker state del "vw-connect.0.<VIN>.remote.access" and restarting the adapter does not fix it — the state reappears without an object on every restart.

Expected behavior

The adapter should call setObjectNotExists/extendObject (with appropriate common metadata, e.g. type: boolean, role: indicator, read: true, write: false) before or together with setState for remote.access, the same way it does for the other remote.* states.

Workaround used

Manually created the missing object:

iobroker object set "vw-connect.0.<VIN>.remote.access" '{"type":"state","common":{"name":"Remote Access","type":"boolean","role":"indicator","read":true,"write":false},"native":{}}'

This suppressed the warning after a restart.

Versions

  • Adapter: vw-connect 0.9.7
  • JS-Controller / Admin: 7.2.2 / 8.0.4
  • Node.js: 22.23.2
  • ioBroker host OS: Debian Trixie

Additional context

remote.access seems related to the vehicle-rights/remote-access-permission check (getVehicleRights) rather than being a user-triggered button like the other remote.* states, since its value is set by the adapter itself (ack: true) rather than via user interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions