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

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
YcKe
Posts: 39
Joined: Sunday 03 July 2016 0:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
User avatar
heggink
Posts: 994
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

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

Post by heggink »

forMin(), no underscore
Docker in Truenas scale, close to latest beta
RFXCOM 433 and 868, zigbee2mqtt,
P1 meter & solar panel
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

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

Post by dannybloe »

for_min was the old syntax prior to 2.0.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
YcKe
Posts: 39
Joined: Sunday 03 July 2016 0:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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)
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

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

Post by randytsuch »

Post Reply