Custom-ui weblink with status from device_tracker

Hi there.

I have a lots of network interfaces in my home (iot devices, switches, routers, cameras, etc.) which I modify very often so I thought it will be great to have all links to their web configuration pages in one place.
I created weblink for each device but after I discover Unifi component I realized that this is better way to monitor my devices because I know their statuses. But is there a way to have a weblink with device status (online/offline)?
I tried to put device status as a badge using custom-ui but without any luck.

This is my code in customize section:

  friendly_name: 'Outside'
    entity_id: device_tracker.cam_park


  - name: camera1
    icon: mdi:cctv
  - name: camera2
    icon: mdi:cctv
  - name: camera3
    icon: mdi:cctv
  - name: camera4
    icon: mdi:cctv


    - weblink.camera1
    - weblink.camera2
    - weblink.camera3
    - weblink.camera4


This is what I have now:

But I don’t even know if it is possible to have weblink functionality, to redirect to device webpage after click on its enitty.
Please help.

this is template sensor with custom ui state card. Only to see or check the status. It is not weblink.

Hi Sunonline.

Yes, I know but I wondering if is there a possibility to modify weblink state card to have this functionality which I posted on screenshot or modify my custom state card to have a weblink fuctionality. Or, the third option, write a new custom card by own but I don’t want to reinvent the wheel in case where someone done it already but I can find it.

You can either create weblink or do the weblink on sidebar as panel iframe. <== this display on UI <== this display on sidebar

As weblink you can see the original http setting in the entity_id
As panel iframe, this will not display and see the original http in entity_id

True, using iFrame is not bad (and i will use it for now) but I will not have a status functionality (online/offline) in both cases, so the only way is to create custom weblink card with extra info status based on device tracker state.

Thanks for info :slight_smile:

Someone had just posted about custom HTML in a state card. Custom UI: HTML - custom content in state-cards

I don’t know, but it might accomplish what your trying to do.

Yes. This is exactly what I need and even more :slight_smile: Thanks.