Indeed, i see, and also waarde=waarde+1 needs to be this waarde = waarde + 1 and same for local waarde=0 to local waarde = 0.
Now it is working again
Search found 26 matches
- Friday 22 September 2023 16:29
- Forum: dzVents
- Topic: dzvents test script did work now not more
- Replies: 3
- Views: 569
- Friday 22 September 2023 12:35
- Forum: dzVents
- Topic: dzvents test script did work now not more
- Replies: 3
- Views: 569
dzvents test script did work now not more
local device0 = 'test 1'
local device1 = 'test 2'
local device2 = 'test 3'
local device3 = 'test 4'
local device4 = 'test 5'
local device5 = 'test 6'
local device6 = 'test 7'
local device7 = 'test 8'
local device8 = 'test 9'
local device9 = 'test 10'
local device10 = 'test 11'
local device11 ...
local device1 = 'test 2'
local device2 = 'test 3'
local device3 = 'test 4'
local device4 = 'test 5'
local device5 = 'test 6'
local device6 = 'test 7'
local device7 = 'test 8'
local device8 = 'test 9'
local device9 = 'test 10'
local device10 = 'test 11'
local device11 ...
- Friday 01 September 2023 11:12
- Forum: Bash / PowerShell / Batch etc.
- Topic: Script to restart Domoticz if it crashes
- Replies: 199
- Views: 141303
Re: Script to restart Domoticz if it crashes
I did run the script, without a problem.
But crontab won't run the script. I use ubuntu.
But crontab won't run the script. I use ubuntu.
- Sunday 16 April 2023 15:07
- Forum: dzVents
- Topic: multi switches off another switch on
- Replies: 4
- Views: 588
Re: multi switches off another switch on
Great this works, now i am going to implement it in the real situation. It is a whole lot different than i could think of.
- Sunday 16 April 2023 12:19
- Forum: dzVents
- Topic: multi switches off another switch on
- Replies: 4
- Views: 588
Re: multi switches off another switch on
local waarde = 'Hoeveel_groepen_open'
local device0 = 'test 0'
local device1 = 'test 1'
local device2 = 'test 2'
local device3 = 'test 3'
return {
on = {
devices = {
'device1' or 'device2' or 'device3'
},
variables = {
'waarde'
},
},
-- custom logging level for this script ...
- Saturday 15 April 2023 0:15
- Forum: dzVents
- Topic: multi switches off another switch on
- Replies: 4
- Views: 588
multi switches off another switch on
I want to turn on a virtual switch on when switch 1 to 10 are all off? and the virtual switch off when more that 2 switches are on.
So
switch 1 is off
switch 2 is off
switch 3 is off
switch 4 is off
switch 5 is off
switch 6 is off
switch 7 is off
switch 8 is off
switch 9 is off
switch 10 is off ...
So
switch 1 is off
switch 2 is off
switch 3 is off
switch 4 is off
switch 5 is off
switch 6 is off
switch 7 is off
switch 8 is off
switch 9 is off
switch 10 is off ...
- Thursday 02 February 2023 0:11
- Forum: dzVents
- Topic: switch turn on off at temperature
- Replies: 8
- Views: 760
Re: switch turn on off at temperature
the following part can be deleted from the script.
function(domoticz)
-- return true or false
end
And please start simple and use the script examples in the documentation https://www.domoticz.com/wiki/DzVents:_next_generation_Lua_scripting#Some_trigger_examples
Of course i already did ...
- Wednesday 01 February 2023 15:31
- Forum: dzVents
- Topic: switch turn on off at temperature
- Replies: 8
- Views: 760
Re: switch turn on off at temperature
the following part can be deleted from the script.
function(domoticz)
-- return true or false
end
And please start simple and use the script examples in the documentation https://www.domoticz.com/wiki/DzVents:_next_generation_Lua_scripting#Some_trigger_examples
Of course i already did that ...
- Wednesday 01 February 2023 10:14
- Forum: dzVents
- Topic: switch turn on off at temperature
- Replies: 8
- Views: 760
Re: switch turn on off at temperature
return
{
on = {
-- device triggers
devices = {
-- scripts is executed if the device that was updated matches with one of these triggers
'Woonkamer keuken', -- device name
-- 'abc*', -- triggers for all devices which name begins with abc
},
-- timer riggers
timer = {
-- timer triggers ...
{
on = {
-- device triggers
devices = {
-- scripts is executed if the device that was updated matches with one of these triggers
'Woonkamer keuken', -- device name
-- 'abc*', -- triggers for all devices which name begins with abc
},
-- timer riggers
timer = {
-- timer triggers ...
- Wednesday 01 February 2023 0:48
- Forum: dzVents
- Topic: switch turn on off at temperature
- Replies: 8
- Views: 760
switch turn on off at temperature
I am working on a dzvents script to turn my "verdelers" on and off when a temperature sensor is above or below a value. Also i want to use thermostat setpoints.
But first first, i did try to turn a switch on but it is not working.. And i did read and read the instructions but i don't find the ...
But first first, i did try to turn a switch on but it is not working.. And i did read and read the instructions but i don't find the ...
- Sunday 29 January 2023 18:06
- Forum: dzVents
- Topic: Switching my Heatpump curve
- Replies: 2
- Views: 626
Re: Switching my Heatpump curve
I am searching for something similar. I am complete useless when it comes to coding from nothing, i can read it, but start....
But i do have almost 50 temperature sensors and every room i want a (virtual) thermosstate. i have 30 groups.
and a heatpump, i also can't have it that all groups are ...
But i do have almost 50 temperature sensors and every room i want a (virtual) thermosstate. i have 30 groups.
and a heatpump, i also can't have it that all groups are ...
- Thursday 17 May 2018 1:14
- Forum: Kodi (XBMC)
- Topic: Kodi Mediaserver Support
- Replies: 357
- Views: 130291
Re: Kodi Mediaserver Support
00000000000000000000000000
- Wednesday 27 September 2017 16:37
- Forum: Blockly
- Topic: Time condition not working
- Replies: 4
- Views: 1511
Re: Time condition not working
you need the time also in else if
- Sunday 28 May 2017 0:04
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
- Saturday 27 May 2017 23:32
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Re: Use lux sensor with motion sensor
the <= and or >= are not working ether. I already attempted that.
I will try to use the if without the blue icon
ps. no my motion sensors don't have a build in lux sensor. I use a mysensors lux sensor. And indeed it is wierd that the tuinverlichting blocky is somewhat working. no the lux is far ...
I will try to use the if without the blue icon
ps. no my motion sensors don't have a build in lux sensor. I use a mysensors lux sensor. And indeed it is wierd that the tuinverlichting blocky is somewhat working. no the lux is far ...
- Saturday 27 May 2017 23:04
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Re: Use lux sensor with motion sensor
Log from the tuinverlichting this day.
- Saturday 27 May 2017 22:57
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Re: Use lux sensor with motion sensor
This one is not working
this one is working
This one is working at down and the lights didn't go on at day. But this blocky is al working with a 7 lux and less from the light sensor.
- Saturday 27 May 2017 21:51
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Re: Use lux sensor with motion sensor
yes i am sure. my outdoor light don't effect the light meter. And it is so dark here that i don't have any light at night. So how do i make it than. The lights need to go on at 0.
- Friday 26 May 2017 23:32
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Re: Use lux sensor with motion sensor
it is comming from the sunset and sunrise. but even without the elseif. I get the same results.
- Friday 26 May 2017 23:13
- Forum: Blockly
- Topic: Use lux sensor with motion sensor
- Replies: 10
- Views: 3966
Use lux sensor with motion sensor
The code is working if i use sunset and sunrise
But i now want to use the lux sensor. But i can't get it working.
The lights go not on and when i use the =/ and i hold a light on the lux sensor. So the lux sensor is above 2 lux, the lights still go on????
So no lights with >< and lights on when ...
But i now want to use the lux sensor. But i can't get it working.
The lights go not on and when i use the =/ and i hold a light on the lux sensor. So the lux sensor is above 2 lux, the lights still go on????
So no lights with >< and lights on when ...