Iframe URL from attribute entity

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…

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.

thanks… I will try…