ady624 / webCoRE

webCoRE is a web version of CoRE
GNU General Public License v3.0
249 stars 976 forks source link

Using plus in expression in combination with a sensor value doesn't work #32

Closed c7pher closed 7 years ago

c7pher commented 7 years ago

case: [Weatherstation : dewpoint] + 1 (with dewpoint set to 13) = 131

using a double negative works: [Weatherstation : dewpoint] - (-1) = 14

Also dividing and multiplying work as intended.

screenshot 2017-10-26 at 00 54 29

screenshot 2017-10-26 at 00 55 39

c7pher commented 7 years ago

using the offset 1 as a variable is ignored completly, either wich calculation I try

idpaterson commented 7 years ago

That value might be coming out of your device handler as a string. One way to handle that is to use int([Weatherstation : dewpoint]) + 1 to convert it to a number.

c7pher commented 7 years ago

confirmed working