Search found 4 matches

by gurzixo
Monday 17 September 2018 22:44
Forum: dzVents
Topic: Cannot activate persistent data
Replies: 5
Views: 1010

Re: Cannot activate persistent data

Thanks dannybloe!

Forty years of development, half a million LOC (C, C++ but novice in lua) and still BS in the eyes! you made my day.
You could have added a smiley in your first response as a hint :-)
I was starting to analyse and try to understand self.callEventHandler() ... Nice piece of code ...
by gurzixo
Monday 17 September 2018 20:32
Forum: dzVents
Topic: Cannot activate persistent data
Replies: 5
Views: 1010

Re: Cannot activate persistent data

Thanks dannybloe for your quick answer and your kind words.

I modified my script as follows:
return {
active = true,
on = {
['timer'] = {
'every minute'
}
},
data = {
mydata = { initial = 10 },
},
execute = function(domoticz)
print("Old mydata: ")
print(mydata)
print("domoticz.data ...
by gurzixo
Monday 17 September 2018 19:18
Forum: dzVents
Topic: Cannot activate persistent data
Replies: 5
Views: 1010

Cannot activate persistent data

Hello,

I am struggling for 2 days to activate persistent data.

I run Domoticz on a Raspberry pi, and have 2 zsticks reading house and solar panel consumption. I want to create a composite meter showing how much electricity I use from the utility; the problem is that sometime I create more ...
by gurzixo
Wednesday 10 August 2016 2:32
Forum: Other questions and discussions
Topic: Stupid question: How to light a lamp with a switch?
Replies: 1
Views: 918

Stupid question: How to light a lamp with a switch?

Hello,

I am new to Domoticz :D , and have been able to make it work on a RPI, detect chacon switchs using rfxcomm and activate a sonoff relay using espeasy. I even have been able to use scenes; but I have not found yet how to activate a switch (Domoticz name for a lamp!) when another (real) switch ...