Search found 606 matches

by waaren
Thursday 21 June 2018 7:35
Forum: dzVents
Topic: enable http fetching
Replies: 3
Views: 73

Re: enable http fetching

@Lebo2d9,

if you want forum members to help, you will need to give more info. To start with:

show the complete script
what do you see in the domoticz log
are other scripts working
by waaren
Wednesday 20 June 2018 23:39
Forum: dzVents
Topic: enable http fetching
Replies: 3
Views: 73

Re: enable http fetching

goto [SETUP] [SETTINGS]===>> LOCAL NETWORKS (NO USERNAME/PASSWORD)
and enter 127.0.0.*;

this will allow dzVents to get information from/via domoticz
by waaren
Wednesday 20 June 2018 23:32
Forum: Bugs
Topic: Checking persistent data with history, while the script initializes, gives an error
Replies: 1
Views: 26

Re: Checking persistent data with history, while the script initializes, gives an error

can you please share the complete script ? It is kind of hard to judge what is happening based in this code snippet.

To set an initial value with history true: data = { varname = { initial = 0, history = true, maxItems = 100 } },
by waaren
Monday 18 June 2018 23:30
Forum: Suggestions
Topic: DzVents: Make rooms available as device groups
Replies: 18
Views: 621

Re: DzVents: Make rooms available as device groups

Ries wrote:
Monday 18 June 2018 20:12
How do you differentiate between lux devices that way? As well as computers or phone
Lux devices can be identified by their deviceType or deviceSubType. Please elaborate on the computers or phone. What kind of devices are they ? How are they defined ?
by waaren
Monday 18 June 2018 19:55
Forum: Other questions and discussions
Topic: check domoticz with monit and restart when check fails
Replies: 17
Views: 1935

Re: check domoticz with monit and restart when check fails

I check my domoticz instance using this monit check: # # Check domoticz # check process Domoticz with pidfile /var/run/domoticz.pid start program = "/etc/init.d/domoticz.sh start" stop program = "/etc/init.d/domoticz.sh stop" if not exist for 8 cycles then restart # 8 minutes if failed url http://19...
by waaren
Monday 18 June 2018 19:18
Forum: Suggestions
Topic: DzVents: Make rooms available as device groups
Replies: 18
Views: 621

Re: DzVents: Make rooms available as device groups

I agree. It is probably not dzVents making these devices look all the same, that's why I said I am in need of some guidance here. To illustrate the problem, here's my device list filtered on devices that have 'motion' in their name: As you can see my motion devices are all listed as 'Light/Switch' ...
by waaren
Monday 18 June 2018 16:47
Forum: dzVents
Topic: Persistent (global)data save Time()
Replies: 4
Views: 101

Re: Persistent (global)data save Time()

I want to have the last time a device is switch ON and in most case the last ON time is not equal to the lastUpdate property. So I decided to save the Time() to an (global)data variable. Look like dzVents is not saving the Time() object when doing something like: domoticz.globalData.BadkamerLastMot...
by waaren
Monday 18 June 2018 15:19
Forum: Suggestions
Topic: DzVents: Make rooms available as device groups
Replies: 18
Views: 621

Re: DzVents: Make rooms available as device groups

In my environment a motion sensor is identified by dzVents as motion sensor. So I expect if it is not in your environment that it is something at another level than dzVents's .... if trigger.switchType == "Motion Sensor"then print("XMotion triggered: " .. trigger.name) end 2018-06-18 15:16:40.710 St...
by waaren
Monday 18 June 2018 11:35
Forum: Suggestions
Topic: DzVents: Make rooms available as device groups
Replies: 18
Views: 621

Re: DzVents: Make rooms available as device groups

Domoticz has the ability to assign your devices to a room. I can not find however how to find the devices in a particular room from DzVents. Can we have the rooms available as device groups from the domotiz object? This enables us to create scripts that automatically operate on all devices in a par...
by waaren
Saturday 16 June 2018 13:01
Forum: Other questions and discussions
Topic: problem in the logfile
Replies: 1
Views: 98

Re: problem in the logfile

i have an error in the logfile and i cant explain where its from, i googled it a lot but no answers found yet. every 5 minutes the next problem is in the logfile: 2018-06-16 12:40:00.454 Error: SQL Query("INSERT INTO Percentage (DeviceRowID, Percentage) VALUES ('313', '0')") : database disk image i...
by waaren
Friday 15 June 2018 13:43
Forum: Other questions and discussions
Topic: How / where to find (breaking) changes when code changes are committed to beta
Replies: 0
Views: 72

How / where to find (breaking) changes when code changes are committed to beta

@developers, @gizMocuz, Thank you for the excellent product you are working on. I really love it !! While working on a script I noticed that one api call did returned a different json as before. In this case it was the /json.htm?type=command¶m=getlog call. In Beta's after V3.9580 or around that,...
by waaren
Friday 15 June 2018 13:14
Forum: Bugs and Problems
Topic: 3.9639 z-wave causes webinterface to crash
Replies: 8
Views: 206

Re: 3.9639 domoticz stops soon after reboot

Turns out the webinterface doenst work. But scripts that do not involve z-wave do work. /tmp/domoticz.txt does not exist Turns out domotica is actually running but shows offline in the web browser. the # at the beginning of the line is a comment so effectively you are not logging to a file and/or d...
by waaren
Friday 15 June 2018 11:50
Forum: Bugs and Problems
Topic: 3.9639 z-wave causes webinterface to crash
Replies: 8
Views: 206

Re: 3.9639 domoticz stops soon after reboot

Is there a logfile somewhere? I looked in var/log but and in the directory but didnt see anything obvious on my system the logfile location and activation is defined in /etc/init.d/domoticz.sh. Relevant part of my file: DESC="Domoticz Home Automation System" NAME=domoticz USERNAME=root PIDFILE=/var...
by waaren
Friday 15 June 2018 11:42
Forum: dzVents
Topic: Parameterised scripts
Replies: 1
Views: 84

Re: Parameterised scripts

@Andyf66 , There are many ways to accomplish this varying from using wildcards in the on = section for the activation part, to the use of arrays, groups or description fields to identify what action should be taken for which device. Also possibilities to use datafiles, require (function) modules, gl...
by waaren
Friday 15 June 2018 11:31
Forum: Bugs and Problems
Topic: 3.9639 z-wave causes webinterface to crash
Replies: 8
Views: 206

Re: 3.9639 domoticz stops soon after reboot

Version 3.9639 Platform: Jessie lite Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat Description: Domoticz stopped within 2 minutes after reboot after updating ...
by waaren
Friday 15 June 2018 11:25
Forum: Bugs and Problems
Topic: 3.9639 dzvents persistant data failure
Replies: 4
Views: 124

Re: 3.9639 dzvents persistant data failure

@Ries,

I would check the ownership of the file and dir and check if the user running domoticz have the required accessrights.
if you mv the file on the OS level and let the script execute again you will find out if the permission problem is on the file level or on the dir level.
by waaren
Friday 15 June 2018 11:16
Forum: Bugs and Problems
Topic: [Solved] Read loglines with json command skip Status logs
Replies: 7
Views: 116

Re: [Solved] Read loglines with json command skip Status logs

@jvdz. thanks !

I will update the wiki and also post a question in slack or GITHub on how we can get this kind of information documented without digging in the sources or using network monitors :)
by waaren
Friday 15 June 2018 11:07
Forum: dzVents
Topic: Help with a Formula for Light Level based on Time
Replies: 2
Views: 151

Re: Help with a Formula for Light Level based on Time

Please have a look at this function. If you want you can just delete the debug blocks but I left it in as that was a small puzzle in itself :D -- timeBasedBrightness.lua return { on = { devices = { "brightnessTrigger" }}, -- I use this button to activate script during development and testing logging...
by waaren
Friday 15 June 2018 2:40
Forum: Examples & Solutions
Topic: dzVents implementation of identifying user via domoticz log
Replies: 1
Views: 123

dzVents implementation of identifying user via domoticz log

The dzVents variant of the Lua script of @jdvz for @ericP to enable an Email when someone switched a device. This script uses the async openURL function of dzVents to get the latest logmessages. Thanks to Jos and Eric. -- getUserFromLog.lua triggerDevice = 969 -- define the switch you want to monito...
by waaren
Friday 15 June 2018 2:26
Forum: dzVents
Topic: irrigation pump [Solved]
Replies: 7
Views: 225

Re: irrigation pump [Solved]

... a dzvents script to turn my irrigation pump on if one or more of the zones is on and turn it off when all the zones are off. i wanted to lower the wear on the relays and the pump by waiting 5 seconds before turning the pump off because most of the time when we switch zones we first turn the one...