Design your SVG floorplan or dashboard for HABPanel with Inkscape

Hi

I’m really having fun recreating a UI with SVG.

There is just one thing that I’m struggling with.

In a Widget, it is possible to read an itemValue and add to it.

For example, read a value of 10, add 5 and update the Item.

<button class="btn-pad btn-lg.round" ng-click="sendCmd(TheHour, +itemValue(TheHour)+5)"><i class="glyphicon glyphicon-chevron-up"></i></button>

Taken from the widgets used here - Individual Alarm clock for each Day of week, with adjustable duration

If I try a similar code in the SVG file, the Item value is appended, rather than added.

ng-click
sendCmd('Church1ON_ALARM_SUN_M',+(itemValue('Church1ON_ALARM_SUN_M')+5))

Pressing the button a few times results in

10555555

Rather than updated values of :

10
15
20
25

Have any of you got an idea of what I can try?

**** update ****

This works as expected…

ng-click
sendCmd('Church1ON_ALARM_SUN_M',(itemValue('Church1ON_ALARM_SUN_M')-5))

Which gives this

45
40
35
30
25
20

But changing it back to + just appends it like a string