Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prog alarme
#27
@Jayzy
Tu as avancé avec ton alarme...?
Je te propose une autre série de règles...

Prenons une installation d'alarme simple :
Un capteur de presence
Un dispositif d'activation
Une sirène

RÈGLES :
ALARME_OFF
Si
digicode_alarme=true
alarme=true
Alors
alarme=false
scenario_sirene=false
ALARME_ON
Si
digicode_alarme=true
alarme=false
Alors
timer_alarme=2 minutes
timer_alarme=start
ALARME_ON_TIMER
Si
timer_alarme=true
Alors
alarme=true
timer_alarme=0
timer_alarme=stop

CAPTEUR
Si
capteur_alarme=true
alarme=true
Alors
scenario_sirene=true

SCENARIO SIRENE
Étape 1 :
Durée : 30 secondes
Action : rien
Étape 2 :
Durée : 3 minutes
Action : sirene=true
Étape 3 :
Action sirène=false


Les scripts permettraient d'avoir que une seule règle pour l'allumage ou l'extinction de l'alarme.

J'attend tes (vos) remarques...
Steeve MARTINS
Calaos User

Calaos v3 sur Intel BOXNUC5CPYH | Wago 750-842 (2.0)| Eco-Devices
Reply


Messages In This Thread
Prog alarme - by jayzy - 04-30-2014, 07:41 PM
RE: Prog alarme - by Arnaud - 04-30-2014, 08:20 PM
RE: Prog alarme - by jayzy - 04-30-2014, 08:24 PM
RE: Prog alarme - by steevedu49 - 04-30-2014, 08:28 PM
RE: Prog alarme - by Arnaud - 04-30-2014, 08:51 PM
RE: Prog alarme - by Thibaut - 04-30-2014, 08:57 PM
RE: Prog alarme - by jayzy - 04-30-2014, 09:10 PM
RE: Prog alarme - by steevedu49 - 04-30-2014, 09:25 PM
RE: Prog alarme - by jayzy - 04-30-2014, 09:35 PM
RE: Prog alarme - by steevedu49 - 04-30-2014, 10:03 PM
RE: Prog alarme - by dariushbabri - 12-10-2017, 04:48 PM
RE: Prog alarme - by steevedu49 - 04-30-2014, 10:11 PM
RE: Prog alarme - by jayzy - 04-30-2014, 10:24 PM
RE: Prog alarme - by steevedu49 - 05-01-2014, 12:12 AM
RE: Prog alarme - by jayzy - 05-01-2014, 12:53 PM
RE: Prog alarme - by steevedu49 - 05-01-2014, 01:21 PM
RE: Prog alarme - by jayzy - 05-01-2014, 01:46 PM
RE: Prog alarme - by Alex59400 - 05-05-2014, 11:14 PM
RE: Prog alarme - by jayzy - 05-06-2014, 12:27 AM
RE: Prog alarme - by tony - 05-09-2014, 12:15 PM
RE: Prog alarme - by jayzy - 05-09-2014, 01:29 PM
RE: Prog alarme - by Thibaut - 05-09-2014, 01:35 PM
RE: Prog alarme - by tony - 05-09-2014, 02:35 PM
RE: Prog alarme - by Thibaut - 05-09-2014, 03:36 PM
RE: Prog alarme - by jayzy - 05-09-2014, 02:54 PM
RE: Prog alarme - by Alex59400 - 05-09-2014, 08:10 PM
RE: Prog alarme - by tony - 05-10-2014, 09:15 AM
RE: Prog alarme - by steevedu49 - 05-11-2014, 11:55 PM
RE: Prog alarme - by jayzy - 05-12-2014, 11:44 AM
RE: Prog alarme - by steevedu49 - 05-12-2014, 07:43 PM
RE: Prog alarme - by jayzy - 05-12-2014, 10:55 PM
RE: Prog alarme - by tony - 10-04-2014, 08:53 AM
RE: Prog alarme - by Arnaud - 10-04-2014, 11:15 AM
RE: Prog alarme - by jayzy - 10-14-2015, 07:58 PM
RE: Prog alarme - by tom - 10-16-2015, 11:49 AM
RE: Prog alarme - by Arnaud - 10-16-2015, 03:09 PM
RE: Prog alarme - by tony - 12-04-2015, 06:44 PM
RE: Prog alarme - by Thibaut - 12-04-2015, 07:15 PM
RE: Prog alarme - by tony - 04-17-2016, 07:39 PM
RE: Prog alarme - by Thibaut - 04-17-2016, 08:01 PM
RE: Prog alarme - by tony - 04-18-2016, 08:47 PM
RE: Prog alarme - by noyasystem - 08-10-2017, 09:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)