It seems that when we reference any item, it always comes back as type string, so I can’t perform any addition or subtraction otherwise I get the error:
No message body reader has been found for class java.lang.String, ContentType: application/octet-stream
I tried to access the current value via the props and by items.itemname.state.
Thanks for that. Yeah it was a typo but only because I was testing so many things… unfortunately it isn’t the fix. I’ve seen other examples of using functions like math.round() on states in the yaml works, but I’ve no idea how to convert the string to a float in order to do simple addition/subtraction.
I have decided for now that I will need to create some rule to increment or decrement and then either call that from the widget or change a string item and let a rule watch for changes
Ok for anyone stuck on any similar issues I was able to use =Number.parseFloat(). I was originally just using parseFloat() which obviously didn’t work.