dzVents 2.0 getting started video

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: dzVents 2.0 getting started video

Post by Sarcas »

Well done. Looking forward to volume 2!
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
kamercer
Posts: 1
Joined: Wednesday 13 June 2018 12:27
Target OS: Linux
Domoticz version:
Contact:

Re: dzVents 2.0 getting started video

Post 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
Peterus
Posts: 15
Joined: Wednesday 09 October 2019 14:34
Target OS: Linux
Domoticz version: 2021.1
Location: Stockholm, Sweden
Contact:

Re: dzVents 2.0 getting started video

Post by Peterus »

I love the video!
I have now finally converted all my Blockly scripts to Dzvents!
alarm_guy1
Posts: 132
Joined: Tuesday 14 January 2014 0:03
Target OS: Linux
Domoticz version:
Contact:

Re: dzVents 2.0 getting started video

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
alarm_guy1
Posts: 132
Joined: Tuesday 14 January 2014 0:03
Target OS: Linux
Domoticz version:
Contact:

Re: dzVents 2.0 getting started video

Post by alarm_guy1 »

Cheers I will take a look...
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: dzVents 2.0 getting started video

Post by mojojojo490 »

Thanks for the video. For starters it is really great!
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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]
I Love Domoticz ! And the community around it :-)
User avatar
boum
Posts: 130
Joined: Friday 18 January 2019 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: dzVents 2.0 getting started video

Post 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
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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
}}
   
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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.
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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

:-)
I Love Domoticz ! And the community around it :-)
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: dzVents 2.0 getting started video

Post 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
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
plugge

Re: dzVents 2.0 getting started video

Post by plugge »

Thuis wrote: Wednesday 29 June 2022 12:11 If i have new energy i will try again.
Change:

Code: Select all

level =  domoticz.LOG_DEBUG
Into:

Code: Select all

level =  domoticz.LOG_INFO
marker = 'living script' -- to easily identify it in the log.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest