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

[enhancement]: Have a state for "connected to device or service"-status of an adapter #2879

Closed
1 task done
seb2010 opened this issue Dec 24, 2024 · 1 comment
Closed
1 task done
Labels

Comments

@seb2010
Copy link

seb2010 commented Dec 24, 2024

No existing issues.

  • There is no existing issue for my request.

Related problems

some adapter do not handle device/servce connection losses well and need to be restarted in order to get alive again.
For automated instance-supervision, there is no way to determine the state of the adapter when it is

  • running
  • connected to host
  • but not connected to a device or service
    for the latter, there is not state available under system.*

Description

How can this status be derived from the available states? If not, please add a specific state for the device/service connectivity. Even better would an option, liek the scheduled restart, where you can specify that the specfici adapter instance should restart itself

  • if the instance is running and connected to host, but not connected to a device/service (some adapter do not handle connection losses well and need to be restarted)
  • and the instance is running for a defined grace-period (I use 300s)

Additional context

No response

@mcm1957
Copy link
Contributor

mcm1957 commented Dec 24, 2024

The "connected to device or service state" already exists and is named info.connection. It is per instance and created and set by the adapter code. Please note that it's the decision of the adapter if it implements that state and how it handles it.

some adapter do not handle device/servce connection losses well and need to be restarted in order to get alive again.

In this case please open a issue at the adapter repository.

js-controller (and admin even more) does not know whether an adapter has any connection to any "device" and has no possibility to check if a connection is working. Communication with any device is solely done by the adapter code - there's no interaction with js-controller or admin.

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

No branches or pull requests

4 participants