Page 1 of 1

sample script AN158 Power Meter

Posted: Tuesday 27 September 2016 18:03
by superhuub
Hello,

I am a bit new to programming with lua. There are examples but I have not found one for this:

I have an Everspring Switch with power meter (AN158). This is working as expected with z-wave. Now I would like to have a lua script which triggers a commandArray when for example the powermeter reaches an svalue above 40. But it does not work because the svalue reads out with the syntax 86.0

Does anybody have an example?

Many thanks in advance,
Huub.