Skip to content

Add controller statistics to zwave_js config dashboard#12668

Merged
bramkragten merged 6 commits intohome-assistant:devfrom
raman325:controller_statistics
May 25, 2022
Merged

Add controller statistics to zwave_js config dashboard#12668
bramkragten merged 6 commits intohome-assistant:devfrom
raman325:controller_statistics

Conversation

@raman325
Copy link
Contributor

@raman325 raman325 commented May 12, 2022

Proposed change

Adds controller statistics to the zwave_js config dashboard (screenshot below). I added tooltips because the statistics are not easily understandable but the zwave-js provide clear definitions for each. An example of the tooltip is included in the screenshot. I also formatted the statistics and the properties above it into tables so that it's a little cleaner looking. I'm guessing there's probably a better approach than an HTML table so open to making changes as needed

Dependent on home-assistant/core#71723 (merged)

image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@bramkragten
Copy link
Member

Can we put this in a expandable panel? As it is pretty technical advanced data?

@raman325 raman325 force-pushed the controller_statistics branch from b8df06d to 3519c3b Compare May 19, 2022 23:10
Comment on lines +240 to +246
<span>
${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.driver_version"
)}:
</span>
<span>${this._network.client.driver_version}</span>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the list items for the top part too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason I didn't make that change is because the mwc-list makes it harder to copy and paste the information out of there. Maybe this isn't an issue now that we have diagnostics

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it looks good. There's probably some CSS that can be done to make this look better, but that's a bit above my pay grade 🙂

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's keep it as you have it for now then 😄

@bramkragten bramkragten merged commit d7971c6 into home-assistant:dev May 25, 2022
@raman325 raman325 deleted the controller_statistics branch May 25, 2022 15:29
@github-actions github-actions bot locked and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants