I’m trying to define an auto-entities card that finds a set of sensors that have IP addresses as their states, and turns them into web URL cards. The following appears to work except that the “name” and “url” templates aren’t evaluated, so I end up with URLs like “http://‘+states[sensor.bar_counter_ip].state+’/”.
How can I fix this?
type: custom:auto-entities
card:
type: entities
card_param: entities
filter:
include:
- integration: wled
domain: sensor
name: "* IP"
options:
type: weblink
name: "{{ states[this.entity_id].name }}"
url: "{{ 'http://'+states[this.entity_id].state+'/' }}"
icon: mdi:wrench
sort:
method: friendly_name
show_empty: false