Page 2 of 2
Re: dzVents 2.0 getting started video
Posted: Sunday 04 March 2018 18:56
by Sarcas
Well done. Looking forward to volume 2!
Re: dzVents 2.0 getting started video
Posted: Thursday 14 June 2018 22:25
by kamercer
This video was really useful to me, once I found it! How about a link in the wiki? Anyway, I've made a basic index on the topics covered:
1:40 index in Wiki
2:19 open Domoticz example
3:00 adjust Settings
5:21 open blank dzVents
7:50 living room script -> switches kitchen on
10:44 running the living room switch
11:40 explain devices
12:10 explain device object
14:50 print living.state
17:00 if statement
19:40 dimto(25)
21:15 hallway script, using a timer as a trigger
23:30 hallway flash light every minute
25:55 other timer possibilities
28:50 devices plus timer in on section
31:17 the domoticz object
34:45 the domoticz methods
35:00 using print
35:20 execute URL
35:50 make sound
36:10 device object
36:58 text object with two strings combined
39:20 use device ID instead of name
Re: dzVents 2.0 getting started video
Posted: Sunday 08 December 2019 22:21
by Peterus
I love the video!
I have now finally converted all my Blockly scripts to Dzvents!
Re: dzVents 2.0 getting started video
Posted: Saturday 29 February 2020 16:36
by alarm_guy1
Hi, is there a very very basic tutorial for someone that has no none nada programming experience, like a hand held walkthrough.
I would love to learn, but kicking around the 50+ mark and starting to find learning new stuff difficult.
Cheers
Re: dzVents 2.0 getting started video
Posted: Saturday 29 February 2020 17:24
by waaren
alarm_guy1 wrote: ↑Saturday 29 February 2020 16:36
Hi, is there a very very basic tutorial for someone that has no none nada programming experience, like a hand held walkthrough.
I would love to learn, but kicking around the 50+ mark and starting to find learning new stuff difficult.
dzVents is almost completely Lua so I suggest you begin with a Lua tutorial.
this tutorial could be a good start.
Re: dzVents 2.0 getting started video
Posted: Saturday 29 February 2020 17:25
by alarm_guy1
Cheers I will take a look...
Re: dzVents 2.0 getting started video
Posted: Sunday 12 July 2020 11:51
by mojojojo490
Thanks for the video. For starters it is really great!
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 11:07
by Thuis
I thought id finaly go and try dzvents, so this could be a good starting point.
Great video, what drives me crazy after hours of trying different combinations, i get stuck at 10:42. I think i did the same as in the video.
I can see it writes the file. I can see i initiated a switch command (1379/Living/On), but there is no log showing.
I do this:
Code: Select all
return{
active = true,
on = {
devices = {
'Living'
},
},
execute = function(domoticz, device)
domoticz.log('Living lights are switched')
end
}
If i add before end: " print('test test') " is see the "test test" in the log.
What am i doing wrong?
Version: 2022.1 (build 14352)
dzVents Version: 3.1.8
Python Version: 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 11:17
by boum
I would say you need to check your log level.
Either change it in the settings, on the script return array, or locally in the domoticz.log second parameter:
https://www.domoticz.com/wiki/DzVents:_ ... ptional.29
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 11:58
by Thuis
like this ? probably wrong, still nothing.
Code: Select all
return{
active = true,
on = {
devices = {
'Living'
},
logging = {
level = domoticz.LOG_DEBUG
},
execute = function(domoticz, device)
domoticz.log('Living lights are switched')
print('test test')
end
}}
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 12:11
by Thuis
Thanks for the help, i give up, ive been trying for a few hours now, and stuck at some stupid logging thing, let alone the rest of the dzvents stuff.
Thanks for the pointer and help. If i have new energy i will try again.
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 12:21
by Thuis
I want structured text implemented in domoticz
VAR
activate: BOOL;
living: BOOL;
light: BOOL;
END_VAR
IF activate AND living THEN
light:=TRUE;
END_IF

Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 15:01
by azonneveld
Thuis wrote: ↑Wednesday 29 June 2022 12:21
I want structured text implemented in domoticz
The language is not much of importance, it is the library that comes with it.
For your STX wish, LUA looks a lot like it, if you mean STX from IEC 61131-3
Re: dzVents 2.0 getting started video
Posted: Wednesday 29 June 2022 23:19
by plugge
Thuis wrote: ↑Wednesday 29 June 2022 12:11
If i have new energy i will try again.
Change:
Into:
Code: Select all
level = domoticz.LOG_INFO
marker = 'living script' -- to easily identify it in the log.