Hi folks, I want to set some parameter for few hardware that I have using the openURL method. For this, I need hardware indexes of relevant hardware so i can compile the correct URL. I've tried two approaches how to iterate thorough those: 1. I've created an own list of values, eg. local list = {1,2 ...
thx hoeby, thx waaren, that's exactly what I was looking for. It seems my converion of minutes into hours was wrong, that's why i got different times than shown on dashboard.
Hi there, I'd like to show the sunrise and sunset time that is shown e.g. on the dashboard or in the settings in in a virtual device. I've tried to calculate the time out of sunriseInMinutes but it results in a diferent time than in domoticz. I assume it is because of the location I've set in ...
I suppose you tried all the documented dzvents dump and debug options? Hello waltervl, sure, I did. At the end I found out that although I was saving the identical Information into the variables (see here: https://www.domoticz.com/forum/viewtopic.php?p=288351#p288351 ) like in the virtual devices ...
Add some lines like to show the values in the log: dz.log('extremes.low.temperature: ' .. extremes.low.temperature ,dz.LOG_INFO) Ahh, that's what you meant, got it. Well, I do that - not via the log - but via a virtual devices that hold the daily temperatures and thus also have a history: dz ...
No clue what is going wrong, but it is always wise to add some logging to debug your issue. especcially around the tempMinHist.add(extremes.low.temperature) and tempMaxHist.add(extremes.high.temperature) to see what you get and what you would have expected. Hello waltervl, thx for the hint. But ...
Hi all, I use the following adapted script to record min and max values of temperature and calculate the avg() of both for the last 72h: -- Source: https://www.domoticz.com/forum/viewtopic.php?p=204082#p204082 local httpResponses = 'getMaxTemp' return {on = {timer = {'at 00:00'}, -- Um Mitternacht ...
I don't think this is possible in standard domoticz. You can do something that gets close to this by creating a virtual selector with the various labels (headphones, toothbrush, car, etc.. ) and use a script to power the socket for the set time based on the selector level chosen. in dzVents it ...
I am using dzvents 3.0.2, I assume that is the version of the stable code Might this be the problem? I just checked against the latest stable and could replicate your issue. That leaves you with some choices: 1. Change your script into something like return { on = { timer = { '20 minutes after ...
Hello, I have encountered a strange behavior with this time trigger recently: on = {timer = {'20 minutes after sunrise on mon,tue,wed,thu,fri on 2/3-30/09', -- Summer time during the week 'at 08:00 on sat,sun on 2/3-30/09', -- Summer time, weekend 'at 09:00 on 1/10-31/12,1/1-01/03' -- Winter time ...
Hi all, it works :-). This is what I did: 1) parameter 20 set to "momentary switch" 2) parameter 28 set to what I want to be sent (double, tripple click or click&hold) 3) activate "accept new devices" in domoticz settings 4) do some clicks (which ever are specified in 1) If everything is fine, new ...
Hi folks, I want to trigger a script by pressing a Double Click on a Fibaro FGS-213 switch? I've read here in the forum that something like item.state == "Double Click" can be sed in a script but all I get from my switch is either ON or OFF as a state. I assume that there is a setting that needs to ...
Hello waaren I've turned on the DEBUG logging, but couldn't find any error. I put the values in global variables and when I print them out of the script that sets them it works. But I cannot retrieve them from another script. So I decided to switch to virtual sensors and created one for rain and one ...
Hello waaren, this is my global_data.lua return { helpers = {}, data = { MaxTempGestern = { initial = false }, RegenGestern = { initial = false } } } This is globalData_MaxTempGestern.dzvent , that provides the value for MaxTempGestern: local MaxTemperature = 'getMaxTemp' return {on = {timer ...
Hi wareen, I've done following: 1. Created global_data.lua via domoticz scripting GUIO with following content: return { helpers = {}, data = { MaxTempGestern = { initial = false }, RegenGestern = { initial = false } } } 2. Then, to add values to the variables I have my scripts and provide values ...