[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
nodo-domotica.nl • Toon onderwerp - Lamp automatisch uit na 5 minuten - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Lamp automatisch uit na 5 minuten
http://www.nodo-domotica.nl/forum/viewtopic.php?f=24&t=1986
Pagina 1 van 3  Volgende »
Auteur:  Annie [ 12 feb 2014, 04:25 ]
Titel:  Lamp automatisch uit na 5 minuten

Hallo;

Is het mogelijk om het volgende te realiseren:
Heb o.a. het volgende in mijn eventlist staan om een lamp aan te schakelen:

EventlistWrite; NewKAKU 0xD60684,On; NewKAKUSend 3,On

Als dit commando ontvangen wordt, gaat er een lamp aan.

Kan ik nu op de één of andere manier een timer toepassen om de lamp vijf minuten te lang laten branden nadat de Nodo het commando NewKAKU 0xD60684,On heeft ontvangen? Na die vijf minuten dient de lamp dan weer uit te gaan. Mocht binnen die vijf minuten tijd een nieuw commando NewKAKU 0xD60684,On worden ontvangen, dan moeten de vijf minuten weer opnieuw ingaan.

Dus:

19:00 commando NewKAKU 0xD60684,On > lamp gaat aan, 300 sec. timer gaat lopen.
19:05 > 300 sec. timer loopt af, Nodo zendt NewKAKUSend 3,Off, lamp gaat uit.

19:10 commando NewKAKU 0xD60684,On > lamp gaat aan, 300 sec. timer gaat lopen.
19:14 commando NewKAKU 0xD60684,On > lamp blijft aan, 303 sec. timer wordt opnieuw gestart.
19:19 > 300 sec. timer loopt af, Nodo zendt NewKAKUSend 3,Off, en lamp gaat uit.

Op deze manier zou ik met een APIR-2150 de lampen aan kunnen schakelen. de lampen zijn dan niet afhankelijk van een "Off" commando van de APIR-2150 maar gaan uit dmv de timer. Heb het een paar keer meegemaakt dat de lampen wel aan gaan door de APIR-2150, maar dat het "Off" commando niet goed wordt ontvangen, waardoor de lampen aan blijven.

Vind toepassen van de timers nogal ingewikkeld, hoop dat iemand kan helpen,

groetjes,

André
Auteur:  mDieli [ 12 feb 2014, 08:17 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Auteur:  rtenklooster [ 12 feb 2014, 08:20 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Auteur:  mDieli [ 12 feb 2014, 08:29 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Auteur:  Annie [ 12 feb 2014, 16:16 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Hoi!

Dacht dat het ingewikkelder zou zijn, dat je eerst timers moest aanmaken en die dan met NewKAKU commands moest aanroepen. De oplossing is inderdaad niet erg ingewikkeld (als je weet hoe het moet teminste). Met de Wiki kwam ik er niet uit, als ik nu naar de Eventlistregels kijk begrijp ik de werking gelukkig dan weer wel :shock:

Als het donker is ga ik even testen. Het schakelaartje DEL / SET in de APIR-2150 blijft een beetje mysterieus. Op SET zou er geen Off-commando verstuurd worden door de APIR-2150 en op DEL wel, maar ik merk geen verschil. Ten behoeve van "radiostilte" had ik liever gezien dat het Off-commando helemaal niet wordt verstuurd maar dat gaat dus niet.....

Bedankt voor jullie snelle reacties!!

André
Auteur:  rtenklooster [ 12 feb 2014, 23:00 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Geen idee hoe dat werkt met die pir's
Ik gebruik chineese pir's van een paar euro.. doen prima.
Afbeelding
Auteur:  mDieli [ 13 feb 2014, 07:44 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Auteur:  rtenklooster [ 13 feb 2014, 08:13 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Auteur:  Annie [ 19 feb 2014, 09:37 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

Hoi;

Misschien handig om te delen t.b.v. andere beginners e.d....:

Spots buiten gaan automatisch aan bij bewegingsdetectie door een APIR-2150. Na 300 sec. schakelt de Nodo ze uit doordat een timer afloopt . Als de spots handmatig werden ingeschakeld, dan gaan ze pas uit als je ze ook weer handmatig uitschakelt.

Vond het dus handig als de spots niet automatisch uitgingen als ik ze handmatig aan had geschakeld. Omdat ik ze via de Webapp handmatig uit- en aanzet en niet met een Kaku-schakelaar heb ik een UserEvent-Device (100,1 = On en 100,2 = Off) aangemaakt met de naam "Led spots achtertuin". Met het in- en uitschakelen van het Device "Led spots achtertuin" wordt ook een variabele met nummer 1 op 1.00 of 0.00 gezet. Als de Variabele de status van 1.00 heeft, dan wordt de actie die normaal door de PIR-detector wordt getriggerd, afgebroken. De regels met UserEvent erin sturen de status naar het Device "Led lampen achtertuin" zodat de statusindicator ook aan- en uitgaat als de PIR-routine in werking treedt.


EventlistWrite; UserEvent 100,1; VariableSet 1,1.00
EventlistWrite; UserEvent 100,1; NewKAKUSend 7,On
EventlistWrite; UserEvent 100,2; VariableSet 1,0.00
EventlistWrite; UserEvent 100,2; NewKAKUSend 7,Off
EventlistWrite; NewKAKU 0xD60684,On; BreakOnVarEqu 1,1.00
EventlistWrite; NewKAKU 0xD60684,On; NewKAKUSend 7,On
EventlistWrite; NewKAKU 0xD60684,On; UserEvent 100,1
EventlistWrite; NewKAKU 0xD60684,On; TimerSet 1,300
EventlistWrite; Timer 1; NewKAKUSend 7,Off
EventlistWrite; Timer 1; UserEvent 100,2


Iedereen heel erg bedankt voor de hulp, zo begint het nog iets te worden! Het zendbereik van de APIR-2150 houdt niet over trouwens, had aanvankelijk de detector hoger op de gevel gezet, maar met dank aan een metalen jalouzie kwam het signaal vaak niet aan bij de Nodo. Heb ook de waarde van de Nodo voor WaitFreeRX op "On" moeten zetten, had de indruk dat Nodo en APIR-2150 tegelijk aan het zenden waren. Nu alles okee.

Groetjes,

André :shock:
Auteur:  Annie [ 19 feb 2014, 23:23 ]
Titel:  Re: Lamp automatisch uit na 5 minuten

O hier nog iets efficiënter, het bleek dat dat de spots twee keer aan en twee keer uit werden geschakeld als de PIR ze aan- en uit zette:

EventlistWrite; UserEvent 100,1; VariableSet 1,1.00
EventlistWrite; UserEvent 100,1; NewKAKUSend 7,On
EventlistWrite; UserEvent 100,2; VariableSet 1,0.00
EventlistWrite; UserEvent 100,2; NewKAKUSend 7,Off
EventlistWrite; NewKAKU 0xD60684,On; BreakOnVarEqu 1,1.00
EventlistWrite; NewKAKU 0xD60684,On; UserEvent 100,1
EventlistWrite; NewKAKU 0xD60684,On; TimerSet 1,300
EventlistWrite; Timer 1; UserEvent 100,2

:mrgreen:
Pagina 1 van 3 Alle tijden zijn GMT + 1 uur