Closed Ayuus closed 10 months ago
This card does not support jinja templates. Once I figure out how to add template support, I'll do so.
OK, clear. Any other way to implement mute/unmute via toggle button?
The media_player.volume_mute
service should already be a toggle, but I guess the behavior be different for LG webOS. Unfortunately until I figure out jinja template support (I'm out of town for a week and won't be able to work on it for a while) you'd need two separate buttons. You could make it so that this button always mutes and the volume up/down buttons should unmute it (unless LG webOS behaves differently).
I'd also appreciate this, I'm trying to selectively enable my theater mode automation and there's no feedback to the toggle.
would also love this for the styling section
I got nunjucks (jinja2 for JavaScript that's 99% the same thing) template support working in my other project. Once I finish updating that I'll work on adding it to this one. ETA would be a week or so.
Template support has been added in v3.1.0. It works for everything in the card - icons, row entries, styles, service call data, etc.
Works great, thx!
Hello,
I expected that custom buttons would allow me to write a template, so I tried to implement a toggle button for muted audio:
However, HA c omplains about "invalid value for Boolean". In Developer Tools, Templates, the code works OK.