
Search found 6 matches
- Wednesday 02 January 2019 22:10
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
- Wednesday 02 January 2019 10:45
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
Re: LUA script set security status
Solved by using OpenURL
Code: Select all
commandArray['OpenURL']='http://localhost/json.htm?type=command¶m=setsecstatus&secstatus=2&seccode=SECCODE'
- Sunday 30 December 2018 9:35
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
Re: LUA script set security status
Hi Jos, Thanks, a problem with the name was my idea. So i was testing. But on both names no succes for switches the status of the Alarm. In the browser the name of de SecPanel is ' Domiticz Security Panel' All scripting examples in this forum and on the internet are the same. I will give it a try to ...
- Saturday 29 December 2018 20:54
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
Re: LUA script set security status
Here is the complete code -------------------------------- ------ Variables to edit ------ -------------------------------- device1 = "Phone: OnePlus 5" --Phone #1 device2 = "Phone: OnePlus" --Phone #2 device3 = "Phone: iPhone" --Phone #3 device4 = "Phone: OnePlus 2" --Phone #4 debug = false ...
- Saturday 29 December 2018 15:53
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
Re: LUA script set security status
Hi,
Device1 is changed to off when i'm testing
When using a print in the code it appears in the log. So it seems that this is OK.
Device1 is changed to off when i'm testing
When using a print in the code it appears in the log. So it seems that this is OK.
- Saturday 29 December 2018 10:20
- Forum: LUA
- Topic: LUA script set security status
- Replies: 12
- Views: 2354
LUA script set security status
Hello all, I'm trying to set the security status trough LUA scripting. It seems the Security change isn't activated. When using the Security Panel all works fine. commandArray = {} if (otherdevices[device1] == "Off") then --Security system to be armed if it's disarmed and no one is at home ...