switching alarm panel Topic is solved

Moderator: leecollings

Post Reply
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

switching alarm panel

Post by JuanUil »

Hi,

I am trying to switch the domoticz security panel in lua.

I tried:

Code: Select all

if (devicechanged['Thuis'] == 'Off') then
	print ('testing')
	commandArray['Security Panel'] = 'Arm Away'
no result

Code: Select all

if (devicechanged['Thuis'] == 'Off') then
	print ('testing')
	commandArray['Alarm Panel'] = 'Arm Away'
no result

Code: Select all

if (devicechanged['Thuis'] == 'Off') then
	print ('testing')
	commandArray['SecPanel'] = 'Arm Away'
no result

anyone any idea what i am doing wrong?
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: switching alarm panel

Post by AllesVanZelf »

I think you have to use: security.armAway()
See: wiki
and search for: Security Panel
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: switching alarm panel

Post by JuanUil »

AllesVanZelf wrote: Wednesday 14 July 2021 15:32 I think you have to use: security.armAway()
See: wiki
and search for: Security Panel
I am using LUA not Dzvents so this is not working.
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: switching alarm panel

Post by AllesVanZelf »

Okay, sorry. Missed that part.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: switching alarm panel

Post by waltervl »

In this topic https://domoticz.com/forum/viewtopic.ph ... el#p247937
the security panel is called "Domoticz Security Panel"
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: switching alarm panel

Post by JuanUil »

waltervl wrote: Thursday 15 July 2021 9:06 In this topic https://domoticz.com/forum/viewtopic.ph ... el#p247937
the security panel is called "Domoticz Security Panel"
thnx for yourreply but also not working, alarm panel isn't switched. :?:
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: switching alarm panel

Post by waltervl »

In this topic also some interesting tips about this issue: https://domoticz.com/forum/viewtopic.php?f=61&t=1785
Can you manually set the security panel (with the PIN code)?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: switching alarm panel

Post by JuanUil »

found the problem!
The panel was not in the devices tab.
So I changed the code, armed and disarmed it manually. then the panel appeared in the devices tab and I could use it in my LUA script.

Thanx everybody.
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
lost
Posts: 699
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: switching alarm panel

Post by lost »

JuanUil wrote: Thursday 15 July 2021 12:59 found the problem!
The panel was not in the devices tab.
So I changed the code, armed and disarmed it manually. then the panel appeared in the devices tab and I could use it in my LUA script.
Just take care that string used to check security panel status is different than the one to change it, for instance:
Check if Disarmed :
devicechanged[devSecPanel] == 'Normal'

Set status (if may be done by something external to secpanel, script, BT/Wifi presence detection using smartphones...):
commandArray[devSecPanel] = 'Disarm'
(To arm, this would be setting 'Arm Away').

This tricked me a few times...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest