I use the Webpage Card Configuration to view my webcams as the feed is live and not delayed like it is with eg Picture Glance Card Configuration and the other options listed here
I am using small 7" tablets so screen space is limited, rather than having a additional button or switch
to turn on a light as well as the webpage card, is there any way to add a ‘tap’ action to this Webpage card please?
Expected a value of type `undefined` for `tap_action` but received `{"action":"call-service","service":"homeassistant.toggle","service_data":{"entity_id":"light.den"}}`."
I have checked in hacs but could not find a custom card to suite. I have tried searching this forum and Google to no joy.
I was hoping someone had a suggestion to get this working please?
You can use a picture elements card to display the iframe as a custom element. You’ll need to use the under the hood name to get this though. Also, you’ll need the custom card loader card that preloads the element.
And then, just place a button in front iframe in one of the corners.
" You define your custom card as a custom element. It’s up to you to decide how to render your DOM inside your element. You can use Polymer, Angular, Preact or any other popular framework (except for React – more info on React here)."
WAY WAY WAY above my skill level! and the level of time I can commit to this unfortunately
I was hoping it was a different custom card from hacs or a code change in the card Visual Code Editor?
I do love Home Assistant and the community is great (I don’t post a lot but I do read a lot of posts) but its still a long way before none expert IT literate people can do more than the basics.
A lot of the other cards have this, why not this one? maybe devs have not had time? its on this list but not as easy as it sounds? or not thought of it?
Now going to search how to add a feature request for this as ‘I think’ it may be a good option in the card.
Because an iframe is meant to display a website, the actions you take on the iframe should be passed to the website. If it were linked to a button or action, you wouldn’t be able to use the controls on the website. You’re using it for a work around for displaying a camera which already has a solution, the picture card.