Jérôme W.
Jérôme W.
Please test this extensively with your setup as I might have missed edge cases !
Because `new Date()` followed by `setHours` uses your local time and not the server time. Use moment.js with `moment.tz` instead of the date object. Or maybe you can even use...
What do you mean by `hold_action`? You want it to repeat the action while you hold the button?
Then it's by using `repeat`: ```yaml hold_action: action: call-service service: script.executa_hisense_volume_up repeat: 500 # will run the action every 500ms service_data: entity_id: script.executa_hisense_volume_up ```
Can you be a bit more explicit than "it doesn't work"?
Then you need to modify your script to make bigger increments in volume each time it's fired. Also 200ms is a bit low between repetitions, I'd increase this to 500ms.
That's related to a change in HA Core: https://github.com/home-assistant/frontend/pull/20122 when in panel mode. A possible fix is using card-mod, see this comment: https://github.com/thomasloven/lovelace-layout-card/issues/284#issuecomment-2048424148
Use the keep background feature in stack-in-card