Search found 36 matches

by zavjah
Friday 13 May 2022 18:14
Forum: dzVents
Topic: [SOLVED] How to iterate through own list of values or hardware
Replies: 2
Views: 418

Re: [SOLVED] How to iterate through own list of values or hardware

For interested, this is how i solved it:

Code: Select all

local devIdx =  {93,94,95,96,97,98,99,100,101}
for i, dev in pairs(devIdx)
  do
    dz.log(dev)
end
cheers,
Zavjah
by zavjah
Friday 13 May 2022 8:10
Forum: dzVents
Topic: [SOLVED] How to iterate through own list of values or hardware
Replies: 2
Views: 418

[SOLVED] How to iterate through own list of values or hardware

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 ...
by zavjah
Sunday 08 May 2022 13:23
Forum: dzVents
Topic: [SOLVED] Get sunrise and sunset time from domoticz
Replies: 3
Views: 1214

Re: Get sunrise and sunset time from domoticz

Hi there,

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.

Cheers,
zavjah
by zavjah
Saturday 07 May 2022 21:46
Forum: dzVents
Topic: [SOLVED] Get sunrise and sunset time from domoticz
Replies: 3
Views: 1214

[SOLVED] Get sunrise and sunset time from domoticz

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 ...
by zavjah
Monday 25 April 2022 19:33
Forum: dzVents
Topic: avg() calculation of historical variable wrong [Solved]
Replies: 7
Views: 1211

[SOLVED] Re: avg() calculation of historical variable wrong [Solved]

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 ...
by zavjah
Sunday 24 April 2022 13:47
Forum: dzVents
Topic: avg() calculation of historical variable wrong [Solved]
Replies: 7
Views: 1211

Re: avg() calculation of historical variable wrong [Solved]

Hi all,

can anyone tell me how can I dump the values from the persistent variable I've created?

thx
by zavjah
Tuesday 05 April 2022 8:32
Forum: dzVents
Topic: avg() calculation of historical variable wrong [Solved]
Replies: 7
Views: 1211

Re: avg() calculation of historical variable wrong [Solved]

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 ...
by zavjah
Monday 04 April 2022 20:18
Forum: dzVents
Topic: avg() calculation of historical variable wrong [Solved]
Replies: 7
Views: 1211

Re: avg() calculation of historical variable wrong [Solved]

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 ...
by zavjah
Friday 25 March 2022 16:17
Forum: dzVents
Topic: avg() calculation of historical variable wrong [Solved]
Replies: 7
Views: 1211

avg() calculation of historical variable wrong [Solved]

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 ...
by zavjah
Sunday 07 February 2021 13:23
Forum: Switches and Scenes
Topic: delayed shutdown and input user data pop-up window
Replies: 4
Views: 434

Re: delayed shutdown and input user data pop-up window

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 ...
by zavjah
Friday 22 January 2021 12:57
Forum: dzVents
Topic: [SOLVED] Time trigger fires outside of defined date range
Replies: 6
Views: 439

Re: Time trigger fires outside of defined date range

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 ...
by zavjah
Friday 22 January 2021 10:58
Forum: dzVents
Topic: [SOLVED] Time trigger fires outside of defined date range
Replies: 6
Views: 439

[SOLVED] Re: Time trigger fires outside of defined date range

HI waaren,

thanks for testing on the latest stable. I'm glad, that now I know that the script is fine but dzvents wrong.

I'll consider upgrading to beta.

thx
Zavjah
by zavjah
Friday 22 January 2021 8:37
Forum: dzVents
Topic: [SOLVED] Time trigger fires outside of defined date range
Replies: 6
Views: 439

Re: Time trigger fires outside of defined date range

I am using dzvents 3.0.2, I assume that is the version of the stable codlre (see attachment.

Might this be the problem?

I upgraded sometime last summer and it might be that I didn't noticed the change because the trigger fitted the time.

Is this possible?
by zavjah
Thursday 21 January 2021 18:22
Forum: dzVents
Topic: [SOLVED] Time trigger fires outside of defined date range
Replies: 6
Views: 439

[SOLVED] Time trigger fires outside of defined date range

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 ...
by zavjah
Saturday 21 November 2020 20:40
Forum: Switches and Scenes
Topic: Fibaro FGS-213 single click switch activated on double/tripple/hold clicks
Replies: 2
Views: 624

Re: Fibaro FGS-213 single click switch activated on double/tripple/hold clicks

Hi there all interested people,

I've managed to get this to work. See viewtopic.php?p=260428#p260428

Cheers,
zavjah
by zavjah
Friday 06 November 2020 11:05
Forum: Others
Topic: [SOLVED] Double Click on Fibaro single/double Switch FGS213
Replies: 1
Views: 1073

Re: Double Click on Fibaro single/double Switch FGS213

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 ...
by zavjah
Saturday 10 October 2020 21:56
Forum: Others
Topic: [SOLVED] Double Click on Fibaro single/double Switch FGS213
Replies: 1
Views: 1073

[SOLVED] Double Click on Fibaro single/double Switch FGS213

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 ...
by zavjah
Monday 17 August 2020 20:17
Forum: dzVents
Topic: dzVents: MaxMin Temp and Humidity [Solved]
Replies: 38
Views: 4483

Re: dzVents: MaxMin Temp and Humidity [Solved]

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 ...
by zavjah
Monday 17 August 2020 16:12
Forum: dzVents
Topic: dzVents: MaxMin Temp and Humidity [Solved]
Replies: 38
Views: 4483

Re: dzVents: MaxMin Temp and Humidity [Solved]

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 ...
by zavjah
Monday 17 August 2020 15:31
Forum: dzVents
Topic: dzVents: MaxMin Temp and Humidity [Solved]
Replies: 38
Views: 4483

Re: dzVents: MaxMin Temp and Humidity [Solved]

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 ...