Hello.
I have a problem running some scripts in dzVents.
for instance this test script:
return {
on = {
timer = {'every minute'},
httpResponses = { 'testUrl*' },
},
execute = function(dz, item)
if item.isHTTPResponse then
dz.utils.dumpTable(item)
dz.log('Domoticz and dzVents version ...
Search found 12 matches
- Saturday 08 October 2022 23:18
- Forum: Other questions and discussions
- Topic: Autentication problem dzVents
- Replies: 1
- Views: 239
- Saturday 02 January 2021 14:04
- Forum: dzVents
- Topic: Calculate the Amps of a group
- Replies: 3
- Views: 361
Re: Calculate the Amps of a group
Hey Waaren.
Thanks man for the quick response.
I have adapted your changes to my script and now get the following errors:[
list] 2021-01-02 13:59:00.168 Status: dzVents: Info: Amperage: ------ Start internal script: Script #1:, trigger: "every 1 minutes"
2021-01-02 13:59:00.188 Status: dzVents ...
Thanks man for the quick response.
I have adapted your changes to my script and now get the following errors:[
list] 2021-01-02 13:59:00.168 Status: dzVents: Info: Amperage: ------ Start internal script: Script #1:, trigger: "every 1 minutes"
2021-01-02 13:59:00.188 Status: dzVents ...
- Friday 01 January 2021 20:08
- Forum: dzVents
- Topic: Calculate the Amps of a group
- Replies: 3
- Views: 361
Calculate the Amps of a group
Hello to you all.
I'm having some difficulties on the following sctipt.
return {
on = { timer = { "every 1 minutes" }}, -- Change to your liking to 1,2,3,4,5,6,10,12,15 or 20
logging =
{
level = domoticz.LOG_DEBUG, -- Change to LOG_DEBUG to debug / Change to LOG_ERROR if script is running ...
I'm having some difficulties on the following sctipt.
return {
on = { timer = { "every 1 minutes" }}, -- Change to your liking to 1,2,3,4,5,6,10,12,15 or 20
logging =
{
level = domoticz.LOG_DEBUG, -- Change to LOG_DEBUG to debug / Change to LOG_ERROR if script is running ...
- Sunday 10 May 2020 18:48
- Forum: Examples & Solutions
- Topic: setRainVar to rainfall in mm of last defined hours [SOLVED]
- Replies: 17
- Views: 13533
Re: setRainVar to rainfall in mm of last defined hours [SOLVED]
Thanks for the pompt reply.
The problem is that I don't have a rainDevice. I would like to use "Buienradar"to predict the amount af rain that will fall the next 24 hours.
The problem is that I don't have a rainDevice. I would like to use "Buienradar"to predict the amount af rain that will fall the next 24 hours.
- Sunday 10 May 2020 16:29
- Forum: Examples & Solutions
- Topic: setRainVar to rainfall in mm of last defined hours [SOLVED]
- Replies: 17
- Views: 13533
Re: setRainVar to rainfall in mm of last defined hours [SOLVED]
Hello Waaren.
How can I use this script?
I would like to use it as a trigger for the irrigation of my garden.
I have one switch witch power my waterpump for the irrigation named "Beregening".
I would like to have it switched on for one hour if the rainfall of the previous day is less than 2 mm.
How ...
How can I use this script?
I would like to use it as a trigger for the irrigation of my garden.
I have one switch witch power my waterpump for the irrigation named "Beregening".
I would like to have it switched on for one hour if the rainfall of the previous day is less than 2 mm.
How ...
- Tuesday 10 March 2020 22:43
- Forum: dzVents
- Topic: Error in script [Solved]
- Replies: 6
- Views: 1050
Re: Error in script [Solved]
You are quite right Waaren.
Beginners unexperience
Beginners unexperience
- Saturday 07 March 2020 14:34
- Forum: dzVents
- Topic: Error in script [Solved]
- Replies: 6
- Views: 1050
Re: Error in script [Solved]
Thanks again.
There where also 2 writing errors in the script.
This is the working script:
return
{
active = true,
on = {
timer = {
'at 18:15 on thu'
},
},
execute = function(domoticz, timer)
local espressomachine = domoticz.devices('Espressomachine')
if (timer.trigger == 'at 18:15 on thu ...
There where also 2 writing errors in the script.
This is the working script:
return
{
active = true,
on = {
timer = {
'at 18:15 on thu'
},
},
execute = function(domoticz, timer)
local espressomachine = domoticz.devices('Espressomachine')
if (timer.trigger == 'at 18:15 on thu ...
- Friday 06 March 2020 17:35
- Forum: dzVents
- Topic: Error in script [Solved]
- Replies: 6
- Views: 1050
Error in script [Solved]
Can anyone point me to the error in this script?
I don't see any :shock: .
return
{
active = true
on = {
timer = {
'at 17:29 on fri'
}
},
execute = function(domoticz, timer)
local esperessomachine = domoticz.devices('espressomachine')
if (timer.trigger == 'at 18:45 on thu') then ...
I don't see any :shock: .
return
{
active = true
on = {
timer = {
'at 17:29 on fri'
}
},
execute = function(domoticz, timer)
local esperessomachine = domoticz.devices('espressomachine')
if (timer.trigger == 'at 18:45 on thu') then ...
- Monday 02 March 2020 20:34
- Forum: dzVents
- Topic: Switching on severall devices [Solved]
- Replies: 5
- Views: 1049
Re: Switching on severall devices [Solved]
Allready figured it out after some tweaking.
This is the final sctipt:
return
{
on =
{
devices = {
['bewegings melder'] = { 'between 10 minutes after sunset and sunrise' },
}
},
execute = function(dz, item)
if item.active then
local fitting = dz.devices('Fitting')
local steeg = dz ...
This is the final sctipt:
return
{
on =
{
devices = {
['bewegings melder'] = { 'between 10 minutes after sunset and sunrise' },
}
},
execute = function(dz, item)
if item.active then
local fitting = dz.devices('Fitting')
local steeg = dz ...
- Monday 02 March 2020 18:06
- Forum: dzVents
- Topic: Switching on severall devices [Solved]
- Replies: 5
- Views: 1049
Re: Switching on severall devices [Solved]
Thanks for your responce. The following error occurs now: 2020-03-02 18:03:42.215 Status: dzVents: Error (2.4.19): error loading module 'Script #3' from file '/home/pi/domoticz/scripts/dzVents/generated_scripts/Script #3.lua':
2020-03-02 18:03:42.215 ...domoticz/scripts/dzVents/generated_scripts ...
2020-03-02 18:03:42.215 ...domoticz/scripts/dzVents/generated_scripts ...
- Sunday 01 March 2020 16:34
- Forum: dzVents
- Topic: Switching on severall devices [Solved]
- Replies: 5
- Views: 1049
Re: Switching on severall devices [Solved]
Thanks Waaren for the quick reply.
I have copied your script into domoticz
Now I get this message:
2020-03-01 16:31:59.531 ...domoticz/scripts/dzVents/generated_scripts/Script #3.lua:5: unexpected symbol near '['
2020-03-01 16:32:00.423 Status: dzVents: Error (2.4.19): error loading module 'Script ...
I have copied your script into domoticz
Now I get this message:
2020-03-01 16:31:59.531 ...domoticz/scripts/dzVents/generated_scripts/Script #3.lua:5: unexpected symbol near '['
2020-03-01 16:32:00.423 Status: dzVents: Error (2.4.19): error loading module 'Script ...
- Saturday 29 February 2020 13:18
- Forum: dzVents
- Topic: Switching on severall devices [Solved]
- Replies: 5
- Views: 1049
Switching on severall devices [Solved]
Hello.
I have a small problem. I'm trying to write a script to switch on 3 lights outside for 1 minute if a detector "bewegings melder' detectes movement. Thescript only needs to be activated 10 minutes after sunset. Also one of the lights does'nt have to be switched on if a switch "sauna bezoek' is ...
I have a small problem. I'm trying to write a script to switch on 3 lights outside for 1 minute if a detector "bewegings melder' detectes movement. Thescript only needs to be activated 10 minutes after sunset. Also one of the lights does'nt have to be switched on if a switch "sauna bezoek' is ...