joseska
(Jose M Luis)
1
Hi… we are trying to use an attribute of one entity for using as url of iframe card… I have tried different ways but not work:
- url: state_attr(‘states.sensor.nodered_f0e19ba8_039c98’, ‘noticia1’).topic
- url: {{ state_attr(‘states.sensor.nodered_f0e19ba8_039c98’, ‘noticia1’).topic }}
- url: >
{{ states.sensor.nodered_f0e19ba8_039c98.attributes.noticia1.topic }}
all of this not work…
any idea???
thanks…
jocnnor
(Jim O'Connor)
2
The iframe card can’t take templates. You’d need a custom job for that.
This guy just so happened to make said job.
You’ll need to create a template sensor to extract the attribute into its own sensor.