Search found 5 matches

by Raducanu
Thursday 09 June 2016 13:33
Forum: LUA
Topic: [Solve] LUA : attempt to index global 'devicechanged' (a nil value)
Replies: 15
Views: 22017

Re: LUA : attempt to index global 'devicechanged' (a nil value)

I'm also new to LUA, but if i understand https://www.domoticz.com/wiki/Events correctly, you have to specify what changed...

Code: Select all

commandArray = {}
 if (devicechanged['Inter lum salon'] == 'On')  then
     commandArray['Lumiere Salon']='Toggle'
 end
 return commandArray

by Raducanu
Thursday 09 June 2016 11:37
Forum: Show your projects
Topic: [DIY] Garden irrigation and learning project
Replies: 80
Views: 40265

Re: [DIY] Garden irrigation and learning project

Hi, just found your project. I'm trying the same at my place. Can you tell me if the Soil Moisture Sensor are working fine and reliable? Regarding the valve: I'm using three Hunter Magnet Valves, powered by 24VDC, controller by a 4 way relais connected to my RPI2. Price is around 17€/each (amazon g ...
by Raducanu
Tuesday 07 June 2016 20:14
Forum: Other questions and discussions
Topic: Some newbie Questions
Replies: 5
Views: 1141

Re: Some newbie Questions

Yeah, i could use user var, but it could be interesting to see highest temp of a day...
by Raducanu
Tuesday 07 June 2016 8:46
Forum: Other questions and discussions
Topic: Some newbie Questions
Replies: 5
Views: 1141

Re: Some newbie Questions

I figured out that Blockly is not really useful for comparing temeratures. So i start to dig something together with lua (never did LUA before, the script works, but there are better ways for it) The script gets the current temerature and compares it with a saved temperature value in a virtual dummy ...
by Raducanu
Monday 06 June 2016 9:56
Forum: Other questions and discussions
Topic: Some newbie Questions
Replies: 5
Views: 1141

Some newbie Questions

Hello, at the weekend is started using domoticz to manage and control my automatic garden watering systems. I have one magnetic valve (will be extended to 3 in the next week). I connected this valve (hunter 24V 1" BSP valve) via a relais to my raspberry GPIO. I can control the valve via a switch ...