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

Add EP device type(s) in Endpoint list #941

Open
lboue opened this issue Oct 31, 2024 · 1 comment
Open

Add EP device type(s) in Endpoint list #941

lboue opened this issue Oct 31, 2024 · 1 comment

Comments

@lboue
Copy link
Contributor

lboue commented Oct 31, 2024

Hello,

That would be nice if we had device type(s) in Endpoint list.
This would avoid having to open the EP to see the associated device type(s).

<!-- Node Endpoints listing -->
<div class="container">
<md-list>
<md-list-item>
<div slot="headline">
<b>Endpoints</b>
</div>
</md-list-item>
${guard([this.node?.attributes.length], () => getUniqueEndpoints(this.node!).map((endPointId) => {
return html`
<md-list-item type="link" href=${`#node/${this.node!.node_id}/${endPointId}`}>
<div slot="headline">
Endpoint ${endPointId}
</div>
<ha-svg-icon slot="end" .path=${mdiChevronRight}></ha-svg-icon>
</md-list-item>
`;
}))}
</md-list>
</div>

image

We already have this in the matter-endpoint-view.ts:

<!-- Endpoint clusters listing -->
<div class="container">
<md-list>
<md-list-item>
<div slot="headline">
<b>Clusters on Endpoint ${this.endpoint}</b>
</div>
<div slot="supporting-text">
Device Type(s): ${getEndpointDeviceTypes(this.node, this.endpoint).map(deviceType => { return deviceType.label }).join(" / ")}
</div>
</md-list-item>

I'll look into how to make this addition.

Regards

@lboue
Copy link
Contributor Author

lboue commented Nov 16, 2024

Here's what I'd like it to look like:

image

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

No branches or pull requests

1 participant