-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
Mark not connected charge points as unavailable #355
Comments
The stations are connected via OCPP 1.6J. So it makes sense if WS connection is lost and/or last heartbeat is ago, the station should have state Unavailable. |
i am not sure about this. i see the benefit, but it would be a major re-interpretation of ocpp status values. on this table, we are only reading and showing the status values that are sent with the ocpp message. no intermediate magic, no re-interpretation, no "marking a json station with the state unavailable, if it is disconnected" |
@goekay So I should implement this in the controller/service which handles the web socket connections? Can you give me a hint where to go? |
I would argue that a disrupted web socket connection alone is not indicative that the station is offline. We should only react on a missed heartbeat. So we would need to compare current time > previous heartbeat + interval -> change state in database to something like heartbeat missed. |
Since charge points can operate while been offline so the term "Unavailable" won't be correct from CP perspective. I think it would be better use "Unknown", but this isn't an official status. I agree with @csamsel that web socket connection shouldn't be the indication for offline in order to handle the SOAP connections, too. But the implementation must compare against the last received PDU, not just Heartbeat. Beside that, may be this should be (also) a email notification. |
maybe marking json stations as "not connected" additional to the ocpp status is the way to go? i am thinking an asterisk or superscript or something like that. |
Yeah. Make the state an additional column/field independent of the OCPP state sounds reasonable. |
Mark not connected JSON charge points as disconnected (#355)
* Mark not connected JSON charge points as disconnected (steve-community#355) SVG from https://uxwing.com/cloud-connection-offline-icon/ * Bump jooq.version from 3.16.3 to 3.16.4 Bumps `jooq.version` from 3.16.3 to 3.16.4. Updates `jooq-meta` from 3.16.3 to 3.16.4 Updates `jooq-codegen` from 3.16.3 to 3.16.4 Updates `jooq` from 3.16.3 to 3.16.4 Updates `jooq-codegen-maven` from 3.16.3 to 3.16.4 --- updated-dependencies: - dependency-name: org.jooq:jooq-meta dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jooq:jooq-codegen dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jooq:jooq dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jooq:jooq-codegen-maven dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump slf4j-api from 1.7.35 to 1.7.36 Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.35 to 1.7.36. - [Release notes](https://github.com/qos-ch/slf4j/releases) - [Commits](qos-ch/slf4j@v_1.7.35...v_1.7.36) --- updated-dependencies: - dependency-name: org.slf4j:slf4j-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump jcl-over-slf4j from 1.7.35 to 1.7.36 Bumps [jcl-over-slf4j](https://github.com/qos-ch/slf4j) from 1.7.35 to 1.7.36. - [Release notes](https://github.com/qos-ch/slf4j/releases) - [Commits](qos-ch/slf4j@v_1.7.35...v_1.7.36) --- updated-dependencies: - dependency-name: org.slf4j:jcl-over-slf4j dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump spring-framework-bom from 5.3.15 to 5.3.16 Bumps [spring-framework-bom](https://github.com/spring-projects/spring-framework) from 5.3.15 to 5.3.16. - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](spring-projects/spring-framework@v5.3.15...v5.3.16) --- updated-dependencies: - dependency-name: org.springframework:spring-framework-bom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump maven-pmd-plugin from 3.15.0 to 3.16.0 Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.15.0 to 3.16.0. - [Release notes](https://github.com/apache/maven-pmd-plugin/releases) - [Commits](apache/maven-pmd-plugin@maven-pmd-plugin-3.15.0...maven-pmd-plugin-3.16.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-pmd-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump maven-compiler-plugin from 3.9.0 to 3.10.0 Bumps [maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/apache/maven-compiler-plugin/releases) - [Commits](apache/maven-compiler-plugin@maven-compiler-plugin-3.9.0...maven-compiler-plugin-3.10.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-compiler-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Sevket Gökay <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@goekay if you can share a little that how are you detecting that |
Checklist
Specifications
Expected Behavior
After a charge point looses connection and no heartbeat is received anymore the backend should mark the charge point as unavailable.
Actual Behavior
If a charge point disconnects/looses backend connection the charge point is never marked as unavailable. The charge point is listed with its last state.
Steps to Reproduce the Problem
Additional context
The last entry never showed up again. It should be unavailable or removed from list.
The text was updated successfully, but these errors were encountered: