Search found 39 matches

by abdolhamednik
Sunday 12 September 2021 14:29
Forum: Third party and supplementary tools
Topic: access without static ip?
Replies: 4
Views: 3240

Re: access without static ip?

It's free and it works great for me
could u plz tell me a brief description about how to use it
by abdolhamednik
Sunday 12 September 2021 10:15
Forum: Third party and supplementary tools
Topic: access without static ip?
Replies: 4
Views: 3240

access without static ip?

hello everybody

is there any way or tool to access an RPi with domoticz installed, from anywhere on internet, when we can not purchase a static ip address for it?
:?: :!:
by abdolhamednik
Saturday 19 June 2021 11:56
Forum: LUA
Topic: Showing the cause of brightening
Replies: 0
Views: 277

Showing the cause of brightening

Hello friends I have a problem thank you to help me. I have a collection of programs that some of them are devoid and some of them. For different modes in the worker system, one is activated. Now I want a plan that when the alarm is activated, it is clear that this is the problem because of which ...
by abdolhamednik
Monday 17 May 2021 13:33
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Log for when Smart is changed by Event: when smart=1 : 2021-05-17 15:57:11.870 (GSB) Light/Switch (R9(1.44)<3-3>[66]**) 2021-05-17 15:57:11.831 Status: User: unity-tech (IP: 192.168.1.80) initiated a switch command (66/R9(1.44)<3-3>[66]**/On) 2021-05-17 15:57:12.565 Status: LUA: smart=1 chon kelid ...
by abdolhamednik
Monday 17 May 2021 13:24
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Hello, thank you for your help. I will test the program again and send you the log report System log for when I manually change Smart: when smart=1 : 2021-05-17 15:49:50.156 (GSB) Light/Switch (light) 2021-05-17 15:49:50.088 Status: LUA: hello.... 2021-05-17 15:49:50.104 Status: LUA: DEBUG ...
by abdolhamednik
Monday 17 May 2021 6:59
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Hi there,your friend Thank you greatly for your help and guidance. I edited the program you sent yesterday a little bit and it was kind of right. I'll out the program here and continue the description. program: commandArray ={} print('hello....') if uservariablechanged then if uservariables['smart ...
by abdolhamednik
Sunday 16 May 2021 9:03
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

I'll put the smart program and the light on here. I'd appreciate it if you told me exactly the flaw in the program or edited the program for me. smart program(Device): commandArray ={} smart = tonumber(uservariables['smart']) if devicechanged['auto/man']=='Open' then commandArray['Variable:smart ...
by abdolhamednik
Sunday 16 May 2021 6:47
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Both programs are adjunct when they're on the all option.
But when they are on option ,uservariable, they don,t habe rrror, but in this case it doesn't run, that means the light don't go off or on whit smart changes.
by abdolhamednik
Sunday 16 May 2021 6:14
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Hi thank you very much for your help. I copied both programs you wrote but is gives the error : 2021-05-16 08:31:34.738 Error: EventSystem: in NEW1: [string "--[[commandArray = {}..."]:37: attempt to index a nil value (global 'uservariablechanged') smart is also available in uservariables, but I don ...
by abdolhamednik
Saturday 15 May 2021 13:05
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

Re: write the program to the changing varants of a variable?

Hello, thank you for your guidance.. Is it possible to write a program for me as a small example? I want a program that turns on the lights when a variable called Smart changes. Example: commandArray ={} smart=tonumber(uservariables['smart']) if smart ==1 then commandArray['light']='On' else if ...
by abdolhamednik
Saturday 15 May 2021 9:18
Forum: LUA
Topic: write the program to the changing varants of a variable?
Replies: 15
Views: 1274

write the program to the changing varants of a variable?

Hi, I have a problem writing the program.thank you for your help, I want to write a program that runs when a variable changes. It is important to me that the program be run only when it changes. Can I do this through command 'uservariablechanged' ? How to use the a command ' uservariablechanged ...
by abdolhamednik
Wednesday 17 February 2021 11:07
Forum: LUA
Topic: which script type? how function?
Replies: 7
Views: 477

Re: which script type? how function?

waaren i'd really like to understand the robust functional "domoticz" and "lua" completely but i found no complete step-by-step guide . so, the forum is the only way for me lua.org; i think it differs somehow from the lua in domoticz and neither the manual DomoticzManual.pdf nor the wiki https://www ...
by abdolhamednik
Wednesday 17 February 2021 7:51
Forum: LUA
Topic: which script type? how function?
Replies: 7
Views: 477

Re: which script type? how function?

thanks waaren. u are a helpful kind person this is the result: 2021-02-17 10:19:01.247 Status: EventSystem: Script event triggered: Is_Smart 2021-02-17 10:19:01.276 Status: LUA: L_out No change 1day! 2021-02-17 10:19:01.277 Status: LUA: Wind No change 1day! 2021-02-17 10:19:01.307 Status ...
by abdolhamednik
Tuesday 16 February 2021 12:13
Forum: LUA
Topic: which script type? how function?
Replies: 7
Views: 477

Re: which script type? how function?

very good waaren...like always :) can u help me what to do with this tiny all-triggered script. i see it there in log rarely :? commandArray = {} wind = tonumber(uservariables['wind']) storm = tonumber(uservariables['storm']) WIND_MAX = tonumber(uservariables['WIND_MAX']) temp_out = tonumber ...
by abdolhamednik
Tuesday 16 February 2021 6:58
Forum: LUA
Topic: which script type? how function?
Replies: 7
Views: 477

which script type? how function?

hello everyone as a beginner here in lua, am i right? all: script will run with change in everything: minutes, variables, devices time: will run every minutes device: will run when any device changes, e.g a sensor's temperature, a relay, an input contact,... again am i right? we can have many ...
by abdolhamednik
Saturday 16 January 2021 6:53
Forum: Switches and Scenes
Topic: to define a motor as a selector switch...
Replies: 6
Views: 454

Re: to define a motor as a selector switch...

and now, a problem:
if user clicks level2, motor will run 10sec until window connected to it reaches for example to 40degrees
but if user first clicks level1 and then level 2, window will not reach 40 but to 60degrees!
how should the script know that?
by abdolhamednik
Saturday 16 January 2021 5:54
Forum: Switches and Scenes
Topic: to define a motor as a selector switch...
Replies: 6
Views: 454

Re: to define a motor as a selector switch...

thanks waaren i think i understood what u said: 1. manual light/switch Untitled.jpg 2. type: selector / selector switch 3. id and unit code: i don't know ?? 4. add device 5. then the code below: commandArray = {} if devicechanged['motorControl'] == 'Level1' then commandArray[#commandArray + 1 ...
by abdolhamednik
Friday 15 January 2021 18:29
Forum: Switches and Scenes
Topic: to define a motor as a selector switch...
Replies: 6
Views: 454

Re: to define a motor as a selector switch...

yes. exactly but i dont know how. i wrote this below script but it doesn't work. (lua - device) : commandArray = {} if devicechanged['motor'] == '1/3 open' then commandArray[#commandArray + 1] = { ['motor' ] = 'On' } commandArray[#commandArray + 1] = { ['motor' ] = 'Off AFTER ' .. 5 } end if ...
by abdolhamednik
Friday 15 January 2021 17:24
Forum: Switches and Scenes
Topic: to define a motor as a selector switch...
Replies: 6
Views: 454

to define a motor as a selector switch...

hello everybody i want to define a motor as a selector switch. so when i click on different buttons, it runs until reaches multiple positions, e.g 1st button off, 2nd btn. run for 10 sec, 3rd btn. for 20 sec, 4th for 30 sec is it possible? if yes, by script or here in switches tab? thanks Untitled ...
by abdolhamednik
Thursday 29 October 2020 9:10
Forum: LUA
Topic: Is it possible to read data from log into a script
Replies: 5
Views: 733

Re: Is it possible to read data from log into a script

Most code needed in Lua to do this, is already part of dzVents (100 % Lua) and I don't think it makes sense to redo this work. So If dzVents is ok for you I can get you an example.
that's very good. i would be thankful