no sorry, but I guess you want the ‘remaining’ attribute to be displayed?
you can eg make the color change on state (grey for idle, orange for active), so you can see that in the icon, and then have the attribute show the remaining time, (when active only)
Yes, I would like the remaining value, the countdown.
I’ve inserted the “attributes.remaining” code but that does not work.
I can’t see the digits of the timer remaining.
Why?
I’ve try 2 solutions but they don’t work; here you are the 2 solutions tested:
But now I try again, and now work… but the time does not move… it’s always stable to 0:10:00.
you were right, seem not auto update, even if I update the page, always 10 minutes
if the issue would lie with displaying a timer (sorry I dont have one to test, but will do so later on), you could maybe go around that more easily (than modding all sorts of unnecessary stuff) by creating a template sensor on the attribute of the timer and add it to the button like I just did here
edit
confessing I cant make it happen either using my proposed techniques, sorry bout that. As it stands the attributes isnt even updated in the state machine and a regular jinja template cant make that happen either.
its probably in internal timer and I do have a script somewhere using that, but have to find that…
btw start reading here Display remaining seconds of timer in frontend - #46 by 123 where all of this has been discussed, sorry I hadnt looked that up earlier
to give you an idea to work with, showing the time left in seconds, so you would only need to format that to your liking (and make it use the timer setting, instead of my hard coded way now)
I have the entity on living area lights so I use the popup for hold_action to manage hue lights. But with the tap I am toggling the office light via KNX.
The problem is that I would like to display the state of the office_light and also change the background on the card. With my code the background is always #f0c209, no matter if office_light is on or off.
This is a Jinja template and can not be used in the button card …
You should really read up on the difference.
It could be a template sensor though.
However, as I have displayed the last button, you should really do that. The master (Romrider) suggest that as way to go for templates, easy as can be.
If must you can embed it in another card and position it to the spot you want
Yeah, I’ve created a template named sensor.sensore_timer_scaldabagno (it work)
If I put it on my button_card code the custom_field become [object] as you can see below:
from now, if you change code, please only post the changed code ? unless you got a complete new config ofc… btw, your error here is you’re missing the .state in the template.
Anyways, as I posted above, you should embed the button-card with entity timer in your other button-card. Dixit button-card Author/Magician
this is a bit more fledged out, with adequate services:
suffices for that. But, above was asked to have that show in a notification field. At first I hadnt realized timer entity uses the internal clocking and can not be shown by its attribute.
Embedding a button-card makes it all happen, no secondary helpers needed.
Sorry but that must be a config mistake. The button card embed is using its own entity, so you can use any thing on the main button. Or nothing for that matter
been meaning to ask for sometime but forgot:
Chrome seems to behave differently from Safari in many ways, and this is a bad one…
using a (decluttering) card config like:
- type: custom:button-card
confirmation:
text: >
Open cover at 'My' position?
entity: '[[command]]_my'
Is there anything we can do as user to hide that/make it show like Safari? If not would this warrant an issue in the repo…?So you can fix it resource side?