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