Alarm without virtual switches?

Moderator: leecollings

Post Reply
cyclops1982
Posts: 13
Joined: Monday 20 March 2017 13:28
Target OS: -
Domoticz version:
Contact:

Alarm without virtual switches?

Post by cyclops1982 »

Hi,

I've been using domoticz for a while and sometimes visit here. THere's loads of info here, but difficult to find.
I'm also a developer by hart, and want to do things nicely.

I recenlty got a POPP KFOB-C which unfortunatly only works well with the 'Send scene'.
This allows me to start a scene only.

I want to use the keyfob to create a "i'm leaving home" and "i'm back home" scenario. The main important part in that is the alarm system needs to go on and off. The security panel should replace it. i have found that the Security panel shows up in the scene selection, but it does not really work (there's no Arm home, Arm away - just 'on/off/stop'). My initial question would be - can this work? Can i use a scene to set my security panel/alarm to 'Armed away' ?

It seems that a lot of people are using virtual switches. I don't mind them, but it would be better without.I think the dzVents global variables or user variables could replace them, but those are not controlable from the scenes as well.
What i don't like about the virtual switches is that i need to add them to the interface before they show up in the scenes drop down list. It would be much better if the scenes allowed me to switch any device without having to add it, as it's just a bit ugly having an 'Alarm turn on' virtual switch that you shouldn't actually press ever...

So, just trying to do things cleanly, but struggling to find a way!
User avatar
lonebaggie
Posts: 86
Joined: Tuesday 31 January 2017 13:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: England
Contact:

Re: Alarm without virtual switches?

Post by lonebaggie »

You can hide switches from UI with $ in the switch name.

I have written a universal script that can trigger and link switches together including hiding and in-hiding switches

viewtopic.php?f=38&t=19217
User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: Alarm without virtual switches?

Post by Antori91 »

Hello,
Also, if you don't allow users to see a switch from UI (with Setup/More Options/Edit User/Set Devices for a user), you will not see it if you log with a non admin user.
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests