Skip to content
This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ All notable changes to this project are documented here. The format follows

## [Unreleased]

## [0.1.1] - 2026-10-30

### Changed

- A port to another of your switches shows a link symbol (⇄) instead of an arrow up: the arrow
sat on both ends of the same cable, although "up" usually means towards the router.

## [0.1.0] - 2026-10-30

First release.
Expand All @@ -23,5 +30,6 @@ First release.
tries again after 15 seconds and reads the ports again once the switch is back; it says when
the integration is too old.

[Unreleased]: https://github.com/eizedev/managed-switch-card/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/eizedev/managed-switch-card/compare/v0.1.1...HEAD
[0.1.1]: https://github.com/eizedev/managed-switch-card/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/eizedev/managed-switch-card/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ the device connected to each port. It shows what the

[![Open your Home Assistant instance and open this repository in HACS.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=eizedev&repository=managed-switch-card&category=plugin)

<img src="https://raw.githubusercontent.com/eizedev/managed-switch-card/main/assets/card.png" alt="Three switches as cards: green ports at 1 Gbit/s, orange at 100 Mbit/s, white without link, arrows on the links between the switches, the device name under each port" width="100%">
<img src="https://raw.githubusercontent.com/eizedev/managed-switch-card/main/assets/card.png" alt="Three switches as cards: green ports at 1 Gbit/s, orange at 100 Mbit/s, empty without link, a link symbol on the ports between the switches, the device name under each port" width="100%">

**Documentation: [ha-managed-switch.eize.dev/card](https://ha-managed-switch.eize.dev/card/)**

Expand Down
Binary file modified assets/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "managed-switch-card",
"version": "0.1.0",
"version": "0.1.1",
"description": "Lovelace card that draws a managed switch's front panel from the Managed Switch (SNMP) Home Assistant integration",
"license": "MIT",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions src/managed-switch-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ManagedSwitchCard extends LitElement {
@click=${() => this._open(e.device ?? e.link)}
>
<span class="jack">
${port.uplink ? html`<ha-icon icon="mdi:arrow-up-bold" class="badge up"></ha-icon>` : nothing}
${port.uplink ? html`<ha-icon icon="mdi:swap-horizontal-bold" class="badge link"></ha-icon>` : nothing}
${port.poe && powered(states[e.poe ?? ""])
? html`<ha-icon icon="mdi:flash" class="badge poe"></ha-icon>`
: nothing}
Expand Down Expand Up @@ -331,7 +331,7 @@ export class ManagedSwitchCard extends LitElement {
--mdc-icon-size: 14px;
color: var(--text-primary-color, #fff);
}
.badge.up {
.badge.link {
left: 2px;
top: 2px;
}
Expand Down
Loading