AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.55k stars 183 forks source link

Card title #738

Closed kei81131 closed 3 months ago

kei81131 commented 3 months ago

For the card "title", if it is possible to show an entity state? like using template

codemunkie15 commented 3 months ago

You can use the config-template-card as a workaround to use templates in the config of any card.

https://github.com/iantrich/config-template-card

 - type: custom:config-template-card
    entities:
      - sensor.wiser_lts_temperature_nursery
    card:
      type: custom:webrtc-camera
      url: nursery_camera
      title: ${states['sensor.wiser_lts_temperature_nursery'].state}
kei81131 commented 3 months ago

You can use the config-template-card as a workaround to use templates in the config of any card.

https://github.com/iantrich/config-template-card

- type: custom:config-template-card
   entities:
     - sensor.wiser_lts_temperature_nursery
   card:
     type: custom:webrtc-camera
     url: nursery_camera
     title: ${states['sensor.wiser_lts_temperature_nursery'].state}

It works great, thank you so much