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

New sensors for last update and online/offline connection status #107

Open
atc99 opened this issue Oct 11, 2024 · 1 comment
Open

New sensors for last update and online/offline connection status #107

atc99 opened this issue Oct 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@atc99
Copy link

atc99 commented Oct 11, 2024

Add a new sensor for last update received (datetime) and an online/offline Connection Status. Naming is not fixed and is just a suggestion. Adding these could enable support for other automation notifications or more advanced rules related to load-balancing.

  • Last Update (Received)
    • Last time a command was received from the JB
  • Last Update (Sent)
    • Last time a command was sent to the JB for a configuration change (current changes, etc)
  • Connection Status
    • [Online,Offline] enum.
    • JPP sends offline for all JB's it has been processing commands for when shutting down.
    • JPP calculates this based on how long it has been since the JB was last seen. Should be aligned with the 3-5 minute online/offline charging current setting.
@atc99 atc99 changed the title New sensor state for last update or online/offline connection status New sensors for last update and online/offline connection status Oct 12, 2024
@atc99
Copy link
Author

atc99 commented Oct 16, 2024

It looks like the last_changed attribute may cover the last update (received) and possibly the sent when using a template variable.

The connection status may also be able to be determined by the last_changed attribute or it could be an automation that updates a manually created sensor based on a last_changed attribute, but having JPP actively update it may be useful.

@ivanfmartinez ivanfmartinez added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants