what is the file I should edit? index.js? or module.json?
could you send me some examples to better understand how they works?
My knowledge of jason programming is very very limited
A clever switch
Re: A clever switch
You shouldn't edit it (unless you want to change BatteryPolling module for some reason)
BatteryPolling was referenced just as example of using Cron module to run some code based on schedule. You should create your own module for your needs.
Typically module consists of two files: index.js (with module code) and module.json (with default settings and module capabilities)
Start learning how to write a module here: https://github.com/Z-Wave-Me/home-autom ... e-a-module
BatteryPolling was referenced just as example of using Cron module to run some code based on schedule. You should create your own module for your needs.
Typically module consists of two files: index.js (with module code) and module.json (with default settings and module capabilities)
Start learning how to write a module here: https://github.com/Z-Wave-Me/home-autom ... e-a-module
Re: A clever switch
Many Many thanks.pofs wrote: Start learning how to write a module here: https://github.com/Z-Wave-Me/home-autom ... e-a-module
This is what I was looking for. A startining point to learn about home-automation