Search found 8 matches

by jeroenb42
Saturday 13 October 2018 13:20
Forum: Python
Topic: Python create water sensor
Replies: 1
Views: 166

Re: Python create water sensor

I got my own question answered so I thought I would share the results. The homewizard has 2 water values (at least in my case), waterflow and water usage. I created the sensors using the following code: Waterflow Domoticz.Device(Name="Water", Unit=self.water_id, TypeName="Waterflow").Create() Water ...
by jeroenb42
Thursday 11 October 2018 11:09
Forum: Python
Topic: Python create water sensor
Replies: 1
Views: 166

Python create water sensor

I have been working on updating the Homewizard plugin created by @Wobbles (I have an energylink which his code does not yet cover) and I am trying to add a water sensor. I have seen images of people who have a water meter in Domoticz with an indication of liter. I've managed to create a counter that...
by jeroenb42
Thursday 28 June 2018 13:15
Forum: dzVents
Topic: Error: attempt to index global 'domoticz' (a nil value) [Solved]
Replies: 6
Views: 941

Re: Error: attempt to index global 'domoticz' (a nil value) [Solved]

Ah, thanks for that. Did not realize there was a LUA with and without dzVents.
Followed this thread: viewtopic.php?t=7642
and got what I wanted, global functions.
Thanks all
by jeroenb42
Thursday 28 June 2018 12:01
Forum: dzVents
Topic: Error: attempt to index global 'domoticz' (a nil value) [Solved]
Replies: 6
Views: 941

Re: Error: attempt to index global 'domoticz' (a nil value) [Solved]

Can't find the info right now but if I am not mistaken you also need to pass domoticz as 1st value. Try if changing urlEncode = function (str) to urlEncode = function (domoticz, str) in helpers and domoticz.helpers.urlEncode("test test") to domoticz.helpers.urlEncode(domoticz, "test test") in your ...
by jeroenb42
Thursday 28 June 2018 10:16
Forum: News & Updates
Topic: Domoticz version 4.9700 released (Stable)
Replies: 194
Views: 50574

Re: Domoticz version 4.9700 released (Stable)

Got a message in my browser about a new update, clicked on it and got the new version 4.97 on my Pi3. What I no longer have are any switches..... Tried to remove domoticz.js and did sudo ./updaterelease, clear browser cache and app cache, still no switches Of course did not create a backup because ...
by jeroenb42
Thursday 28 June 2018 10:06
Forum: dzVents
Topic: Error: attempt to index global 'domoticz' (a nil value) [Solved]
Replies: 6
Views: 941

Error: attempt to index global 'domoticz' (a nil value) [Solved]

It's going to be something completely silly but I can't figure it out, nor can I Google the answer. I created a global_data.lua file in the domoticz/scripts/dzVents/scripts directory. I know that Domoticz finds it because it contained a typo which showed up in the log. Fixed the typo to give this re...
by jeroenb42
Monday 25 June 2018 8:13
Forum: News & Updates
Topic: Domoticz version 4.9700 released (Stable)
Replies: 194
Views: 50574

Re: Domoticz version 4.9700 released (Stable)

Got a message in my browser about a new update, clicked on it and got the new version 4.97 on my Pi3. What I no longer have are any switches..... Tried to remove domoticz.js and did sudo ./updaterelease, clear browser cache and app cache, still no switches Of course did not create a backup because h...
by jeroenb42
Wednesday 09 May 2018 10:43
Forum: Suggestions
Topic: Virtual sensor for duration/time
Replies: 2
Views: 666

Virtual sensor for duration/time

I am looking for a virtual sensor which can track duration/time. I want to track how long certain devices are on/in use. I have implemented a way to test whether these devices are on in another sensor and I would like to record how long these devices are on each day. I have been able to implement th...