Hello
I have already created several user widgets. Is really a good way to adapt / expand openhab. Now, when I press a key, I want to do an addition / subtraction and save the value in an item.
Basically this works very well, but I have not (yet) found any documentation on how I can perform float operations. This solution gives an error message. The question is how do I calculate the Neuwert!
I would love to have a source for documentation so that I can develop myself thoroughly.
<div ng-if="itemValue('Minus') =='OFF'">
<button2 class="btn btn-lg" style="background: green; color: white"
var float Neuwert = Grenze_Diesel + 0.01
ng-click="sendCmd('Grenze_Diesel', itemValue('Neuwert'))">
It's off! Switch on
</button2>
</div>