Marius82
(Marius)
1
I try to create weblinks with lovelace:
- type: entities
title: Router
entities:
- weblink.router_1
- weblink.router_2
But only the link text is showen, there appears no clickable link.
How can I create a clickable link with lovelace?
Thanks!
klogg
(Klogg)
2
Try this:
- type: weblink
url: http://192.168.1.254/
icon: mdi:router-wireless
name: Router
finity
5
What is the syntax with multiple weblinks:
- type: entities
title: Developer Tools
show_header_toggle: false
entities:
- script.restart_hass
- script.update_hass
- sensor.current_version
- sensor.ha_online_version
- script.update_andrey_custom_ui
- switch.debug_view
- type: weblink
name: Asus Router
url: http://192.168.1.1/
icon: mdi:router-wireless
### These next two weblinks don't work ###
- type: weblink
name: Configure Alexa
url: https://alexa.amazon.com/spa/index.html#smart-home
- type: weblink
name: 'Nabu Casa (HA Cloud Acct)'
url: https://account.nabucasa.com
I’m getting the red error boxes on the last two.
clyra
(Clyra)
6
You may also use the markdown card type, like this:
- type: markdown
content: >
[motioneye](http://192.168.0.85:8765)
1 Like
Those two weblinks don’t work because icon is a required option. Try something like this:
- type: weblink
name: Configure Alexa
icon: mdi:amazon-alexa
url: https://alexa.amazon.com/spa/index.html#smart-home
- type: weblink
name: 'Nabu Casa (HA Cloud Acct)'
icon: mdi:home-assistant
url: https://account.nabucasa.com
VDRainer
(🍻)
8
Please add your thump up in the following issue, because i think there should be a default icon and the weblink should open a new tab.
https://github.com/home-assistant/ui-schema/issues/141
1 Like
finity
9
Thanks for the reply but I figured it out already. i should have popped back in here and mentioned that but I forgot all about even asking.
@VDRainer
Done.