He he, I did something similar some time ago, but using set of button cards placed within layout card… what a hell of the job, wish you made this card earlier Here is outcome of my work, perhaps will give you some inspiration to further develop your card:
I was not looking at what you had, just what I had myself, so some of them where already handled by your first version.
Regarding speed, then it was the connected speed I referred to, which the color or text in the first one showed.
Actual speed I find not that useful in the button.
The reason for this is that the speed might vary a lot between for example an ESPHome sensor and a NAS, so in order to post meaning numbers, then you would have to change the suffix between Kb, Mb and Gb and then it becomes hard to compare.
The actual speed I have moved to a slider/bar card that shows the current RX and TX values in relation to the actual connected speed.
You know that speeds of 2.5Gb/s and 5Gb/s also exist and if it is an AP then a whole other range of speeds can come in to play too.
If you want it to be a universal card, then maybe make the speed to color relation user defined.
True, was struggling a bit myself with this. My switch has 10GB SFP+ ports. I have connected devices with 2.5GB ports to it. However if i query via SNMP it tells me 4.2ish GB…? The current implementation treats this as blue (the switch itself also only has a blue light on the front of it which suggest it sees a kind of 10GBish thing). But definitely something to keep track of and indeed introduce later if possible.
To speed things up for those willing to try it out: i have now attached two yaml files with entity declarations needed. See github link above for what and how.
First phase of HACS compliance is done. PR in progress… I hope… You can already add it via HACS->custom repositories->
Repository: partach/switch_port_card
Type: Dashboard
(had to remove hacs_ in repository name)