Page 1 of 1

Attempt to call field 'for_min' (a nil value)

Posted: Tuesday 29 August 2017 22:49
by YcKe
Dear Domoticz users,

I'm currently experimenting with the new dzVents framework which works very well.
But I came across an issue I'm not able to figure out myself.

The statement below is giving me an error:

Code: Select all

domoticz.groups('Verlichting buiten').switchOn().for_min(1)
Error:

Code: Select all

attempt to call field 'for_min' (a nil value)
Am I missing something out here?

Greetz YcKe

Re: Attempt to call field 'for_min' (a nil value)

Posted: Tuesday 29 August 2017 22:52
by heggink
forMin(), no underscore

Re: Attempt to call field 'for_min' (a nil value)

Posted: Wednesday 30 August 2017 8:20
by dannybloe
for_min was the old syntax prior to 2.0.

Re: Attempt to call field 'for_min' (a nil value)

Posted: Wednesday 30 August 2017 10:10
by YcKe
Thank you heggink and dannybloe for your quick reply. It's working now.

Got confused cause of the the readme on the github of dannybloe. (https://github.com/dannybloe/dzVents)

Re: Attempt to call field 'for_min' (a nil value)

Posted: Wednesday 30 August 2017 18:36
by randytsuch