For my alarm system i am checking whether or not my phone is on the network.
If my phone isn't in the network my alarm will be turned on.
if somebody else comes home and disables the alarm system a switch called "alarm_manually_disabled" will be enabled.
And of course some other switches are switched during several event.
But the check for switch status is faster than actually switching.
Therefore my alarm will automatically turn on again when somebody is turning the alarm off.
So i set the alarm to off again during the turn off event.
so now when the alarm is turned on automatically, turned off manually it will automatically tun on again and turned off again.
Thats not the way it should work.
So i would like to build in a 1 second delay in an event so this does not happen again.
is that possible?
this is what my log looks like:
2018-10-15 11:16:38.524 Status: User: Admin initiated a switch command (47/phoneOnWifi/Off)
2018-10-15 11:16:38.540 Status: AUTO AAN
2018-10-15 11:16:38.541 Status: AUTO AAN KLAAR
2018-10-15 11:16:39.688 Status: Satel Integra: Partition 1 armed
2018-10-15 11:16:39.713 Status: Notification: ALARM ON
2018-10-15 11:16:48.506 Status: User: Admin initiated a switch command (18/Arm 1 partition/Off)
2018-10-15 11:16:49.083 Status: Satel Integra: Partition 1 disarmed
2018-10-15 11:16:49.098 Status: AUTO AAN
2018-10-15 11:16:49.099 Status: AUTO AAN KLAAR
2018-10-15 11:16:49.135 Status: Notification: ALARM ON
2018-10-15 11:16:49.646 Status: Satel Integra: Partition 1 disarmed
2018-10-15 11:16:49.658 Status: Notification: ALARM MANUALLY OFF
Delay possible for checking switch status?
Moderator: leecollings
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Delay possible for checking switch status?
you can try to use dzVents functions like
.SwitchOn().afterSec(<seconds>) or
.switchOn().afterMin(<minutes>)
to delay the alarm enabling
and then to be sure to have it disabled:
.cancelQueuedCommand() to remove all queued messages
.SwitchOn().afterSec(<seconds>) or
.switchOn().afterMin(<minutes>)
to delay the alarm enabling
and then to be sure to have it disabled:
.cancelQueuedCommand() to remove all queued messages
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
Who is online
Users browsing this forum: No registered users and 1 guest