How do you (if at all) track status of your wifi devices? I’d like to have all of them in one (big) card. For now i do have them, but i use decluttering template and vertical stack card configured so that i get a list of all devices, like:
But, each time i add a new device i have to manually add it to this card. Is there a better way? Something in style of “battery state card” - this card automatically finds all cards with, say word “battery” in entity’s name. The reason i can’t use it (or don’t know how?) is that i have above data in different sensors:
sensor.device1_wifi
sensor.device1_ip
sensor.device1_mac
is there any other way to automate this? So when i’d add a wifi device then it would automatically appear on my card?
Something in style: when “automation” finds, say, “sensor.device1_ip” it will also add in the card “sensor.device1_wifi” and “sensor.device1_mac”, all nice in one line…
Yeah… well…
I absolutely love Thomas’s cards, it’s just… he assumes we all know programming pretty well, so his cards are so poorly supported with expamles… it’s no way that i’ll assemble anything usefull with it…
I did, sure. But nothing usefull comes out of my hands… mostly they are made with entities card, which puts only one entity in one line.
BTW… i didn’t mean anything bad with above statement… is kind of logical that “manual” is short, since his cards always have tons of stuff… i guess it’s impossible to explain them all. I’d say that they are more or less ment for advanced users.
Note that bssid is internally converted to my router/AP’s name inside card, so i know on which AP is module connected.
So that means that 4 different sensor with same name must be found. I’m not sure that this is even possible, so i studied a bit a different approach:
maybe i could change esphome sensors and collect all this data in to one single sensor with attiubutes, but i didn’t find any info if esphome is capable of creating attributes.
Second option is to join all data into one sensor inside esphome, say in this form:
name/wifi/mac/bssid
this can be splitted in card (same way as with devices, suggested by guys in THIS topic). But, again, until now i didn’t manage to find any working solution for “joioning” mulitple sensor values into one in side esphome.
Do you need all that Wi-Fi info in individual sensors? Why don’t you create just one sensor per device with all that information (IP, MAC, etc.) as attributes, similar to most of device_tracker sensors?
I’d like using attributes more than have a sensor for each parameter, unless I wanna have history for that specific parameter (which probably will be the case for wifi_signal, but not for text sensors).
Why i need it? Well, i guess it goes from back then when i’ve had problems with connection and with this list i could instantly see if any of my modules is offline. Now i’m (hopefiully) done with connection problems, but i think that monitoring of wifi devices is still usefull.
I could create one single sensor in HA, i agree, but then i did nothing…since in this case i’ll have to create one additional manually each time i add another sensor, which i tend to avoid - my goal is that new device will automatically appear on my list when it’s first connected.
As said, It seems that esphome doesn’t support creating attributes in sensors (at least i didn’t find any info about it).
Other option would be to create a kind of template sensor inside esphome with lambda, but this is again out of my knowledge, since i’d have to put together multiple epshome’s sensors in one, say, like:
I have a card for all my esphome WIFI signals, that I originally used to see what the signals were when I upgraded to Unifi. This will create a card with a bar chart of all the signals of any entity that has _wifi_signal in it, you just need to change yours to - entity_id: sensor.*_wifi*
Nice one, thanks! That’s definitely way more easily readable than just numbers.
I can’t stop thinking of Edward’s question (why to you need all that info)… and, maybe he is right: maybe i really don’t (anymore)… as said: i created that card back then when i’ve had problems with router settings.
I guess that wifi strength tells me more or less all i need: if wifi signal is “good enough” and/or if device is online. After all, it doesn’t matter which AP is connected to…
for the custom:auto-entities. That might capture others entities with IP in the name too.
Maybe you want to share the yaml for the card you have at the moment (the one you fill “manually”)? It would be the base to have it filled by “auto-entites”
I’m not an expert in ESPHome, so I cannot help here. But if you cannot have attributes, then keep the other data in individual sensors as it is… Play a bit with those cards and I’m sure you will find a way to show the info you are looking for.
Sure. it’s pretty big, though, since it also includes “decluttering template”. Note that clicking on device causes esp module to start rescan wifi. It can happen that module connects to far most AP (it shows by poor wifi signal) and rescan “brings it back” to nearest AP. Ok, that part is not strictly necesarry…