Am I free to put additional variables into "self"?
Anything to watch for when doing this?
Any other way to have instance variables across trigger invocations?
Edit: removed some banter.
EasyScript instance variables
EasyScript instance variables
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
Re: EasyScript instance variables
Into self? I think self is undefined there. But there is a global that is common for all EasyScripting scripts.
Code: Select all
global.x = value
if (global.x == value)