dzVents 2.0 getting started video
Moderator: leecollings
-
- 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
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
Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
Re: dzVents 2.0 getting started video
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
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
-
- 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
I love the video!
I have now finally converted all my Blockly scripts to Dzvents!
I have now finally converted all my Blockly scripts to Dzvents!
-
- Posts: 132
- Joined: Tuesday 14 January 2014 0:03
- Target OS: Linux
- Domoticz version:
- Contact:
Re: dzVents 2.0 getting started video
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
I would love to learn, but kicking around the 50+ mark and starting to find learning new stuff difficult.
Cheers
- 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
dzVents is almost completely Lua so I suggest you begin with a Lua tutorial. this tutorial could be a good start.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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 132
- Joined: Tuesday 14 January 2014 0:03
- Target OS: Linux
- Domoticz version:
- Contact:
Re: dzVents 2.0 getting started video
Cheers I will take a look...
-
- 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
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
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
- 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
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:
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]
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
}
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 :-)
- 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
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
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
- 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
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 :-)
- 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
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.
Thanks for the pointer and help. If i have new energy i will try again.
I Love Domoticz ! And the community around it :-)
- 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
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
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 :-)
-
- 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
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
Re: dzVents 2.0 getting started video
Change:
Code: Select all
level = domoticz.LOG_DEBUG
Code: Select all
level = domoticz.LOG_INFO
marker = 'living script' -- to easily identify it in the log.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest