Jérôme W.

Results 269 comments of Jérôme W.

The format is different in button card, you should be using `service_data` instead of `data` and not target also. Check the documentation for examples

That should work in the latest beta, I think as it can now use the default HA services calls (with the same syntax as your script)

You can inspire yourself from this comment https://github.com/custom-cards/button-card/issues/436#issuecomment-782891871

It doesn't work like that unfortunately, that works only for "text" attributes or numeric **main** state of an entity. `helpers.localize` has no effect here, you should directly access the brightness...

Put the timer as the main entity or the card or if you can't, then set the `timer` `custom_field` to be a `custom:button-card` just showing the state of the timer...

@GillesC, I'll check your code, I have some time over the weekend, sorry for the delay!

> I probably need to adapt this file (https://github.com/custom-cards/custom-card-helpers/blob/master/src/handle-click.ts) as well? Yes, this would require an update on this file, but I'll handle it. ;)

It would also require an update to custom-card-helpers. I didn't take time to do it yet. Also this code is now very old. I feel it would require starting from...

Sorry, I just need to get take time to look at this. It's a complex area.

Unlikely to happen in `mini-graph-card` however this feature is available in `apexcharts-card` now: https://github.com/RomRider/apexcharts-card We'll keep this one `mini` and the other one will have more advanced features.