I’m trying to use a tap_action to set an input number to a specific value… it’s working for increment/decrement but not for the specific value. Code is:
Ok… I don’t know what happened there… maybe there was a hidden character/tab/space or something weird in my code, but I tried editing it to match yours, didn’t work. Then copied and pasted your code in and changed the entity names… now it works.
Either way, you got me to the successful conslusion! Thank you!
No I’m really suspecting that it was because you had 18 (a number) as ‘18’ (a string). If I try in the editor to make it ‘18’ it automatically removes the quotes even before I can save it.
Very weird. I have just tested whether it matters if entity_id is inside service_data, or if it has to have target. And both ways work, so it’s not anything to do with that either.