09.11.2018, 07:38
You don't need to call tonumber, the result of event.getvalue and grp.getvalue is already a number if proper data type is set.
Code:
value = event.getvalue()
setpoint = grp.getvalue('20/0/5')