Hello there!
I use mushroom-number card, I want to add minus and plus to the right and left of the slider so that I can change the value of the mushroom-number to plus or minus 5% (step).
I suppose I need to enter some code in “value”, but I tried a lot of things and I can’t imagine what it should look like…
Here is an example of code that I’m using for plus button:
oh, and now I see value: '{{ state_attr(number.ustavka_uvlazhneniia, "value") + step}}' is looking for a state attribute called value - there is none though… see the screenshot above of dev-tools States.
You probably want value: '{{ states("number.ustavka_uvlazhneniia") | int + step }}' or something like that to get the value of the state, cast it to int and add the step value (which I don’t know where it comes from).
You can just test your templates in developer tools if you are uncertain if something works. You’ll get live results there.
Add the ability to increase or decrease the value of a number entity with a single service call instead of having to call the number.set_value service using a template that does calculations on the current state.