[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/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)
Toon onderwerp - werking eventlist • nodo-domotica.nl

nodo-domotica.nl

werking eventlist

Voor hulp om je Nodo aan de praat te krijgen

werking eventlist

Berichtdoor bryan241 » 04 nov 2012, 21:41

Ik heb een vraag over de werking van de eventlist.
Met behulp van een userevent wil ik een paar regels uit de eventlist triggeren.
Ik dacht bv door een device aan te maken met userevent 10,1 (aan) en userevent 10,2 (uit).

Als ik dan vanuit de webapp het device aan zet zie ik netjes dat de nodo userevent 10,1 verstuurt.

In de eventlist staat een regel met:

eventlist 1; userevent 10,1; sendnewkaku 1,on

Wat moet ik aanpassen in de eventlist zodat deze regel daadwerkelijk uitgevoerd wordt?
Bij mij wordt nmlk deze regel niet uitgevoerd.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: werking eventlist

Berichtdoor Teunissm » 04 nov 2012, 22:02

Bryan,

Begrijp ik het goed dat jij met een nodo een event in zijn eigen eventlist wil triggen?

Als dat het geval is dan zou de regel in de eventlist moeten kloppen. Het device wat je hebt aangemaakt (in de webapp) Moet je instellen met "userevent" en niet met "senduserevent".

Dit werkt in mijn geval in ieder geval.

Marcel
NES 3.6.9 Beta Master Nodo
Mega met zelfbouwnodo met energie monitoring (I2C),
Nodo small 3.6.9 Beta met licht meting en temperatuur/vocht meting (RF),
Nodo small 3.6.9 Beta als RGBLed dimmer (RF).
Teunissm
 
Berichten: 79
Geregistreerd: 04 sep 2011, 13:58

Re: werking eventlist

Berichtdoor manjh » 04 nov 2012, 22:15

Klopt. SendUserevent is een commando, waardoor de Nodo een UserEvent zal uitsturen.
UserEvent is puur een event, dat de Nodo zal willen oplossen, en dat is wat jij wilt.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: werking eventlist

Berichtdoor bryan241 » 05 nov 2012, 07:49

Ik wil inderdaad een event uit de eigen eventlist triggeren.
Maar dit gaat helaas niet, of er moet nog iets in de eventlist komen met wildcards ofzo, maar ik weet niet wat.

Het idee is dat ik met behulp van 1 commando een schakelaar aan kan zetten.
En als ik 1 commando gebruik om de schakelaar uit te zetten worden er eerst wat andere zaken gedaan.
Ik probeer netjes een pc uit te schakelen, waarvoor ik een minuut wacht voordat ik de schakelaar van de pc uitzet.

Ik denk dat het kan onder aktiviteiten, maar dan zie ik de status van de pc niet.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: werking eventlist

Berichtdoor bryan241 » 06 nov 2012, 13:31

Ik weet niet of het een bug is, of een wens, maar ik heb het toegevoegd als wens.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: werking eventlist

Berichtdoor manjh » 06 nov 2012, 13:46

Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: werking eventlist

Berichtdoor bryan241 » 06 nov 2012, 15:56

Ik heb een device aangemaakt met:
Aan: Userevent 1,1
Uit: Userevent 1,2

Nu wil ik op basis van userevent 1,1 de volgende aktie doen:
Sendnewkaku 1,on
Op basis van userevent 1,2 wil ik de volgende akties doen:
Senduserevent 1,3
TimerSetMin 1,2
En op basis van het aflopen van de timer wil ik het volgende commando uitvoeren:
Sendnewkaku 1,off

Als het userevent ervoor zorgt dat de eventlijst wordt uitgevoerd is er geen probleem, maar dat gebeurd niet.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: werking eventlist

Berichtdoor manjh » 06 nov 2012, 17:12

OK, dat kan. Heb het zojuist gedaan.
EventList:
EventList 8; UserEvent 1,1; SendNewKAKU 1,On
EventList 9; UserEvent 1,2; TimerSetMin 1,1
EventList 10; Timer 1,0; SendNewKAKU 1,Off
toggle on:
>Input=HTTP(141.138.136.245), Event=UserEvent 1,1
Output=HTTP(141.138.136.245), Event=UserEvent 1,1
Output=RF, Unit=11, Event=NewKAKU 1,On
Output=HTTP(141.138.136.245), Event=NewKAKU 1,On

toggle off:
Input=HTTP(141.138.136.245), Event=UserEvent 1,2
Output=HTTP(141.138.136.245), Event=UserEvent 1,2
Internal=Timers, Unit=11, Event=Timer 1,0
Output=RF, Unit=11, Event=NewKAKU 1,Off
Output=HTTP(141.138.136.245), Event=NewKAKU 1,Off

WebApp settings in Devices:
device type: UserEvent
switch type: toggle
userevent on: 1,1
userevent off: 1,2

Let op: er zit een bugje in de WebApp. Als je een device eerst aanmaakt als KAKU (bijvoorbeeld), en je verandert daarna het type in UserEvent, dan krijg je niet de juiste invoer velden.
Kies dan eerst voor SendUserEvent, en verander daarna het type naar UserEvent. Dan gaat het goed.
Ik zal hier een issue voor aanmaken.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: werking eventlist

Berichtdoor bryan241 » 06 nov 2012, 17:19

Bedankt,

Het werkt :-)
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14


Keer terug naar Nodo aan de praat krijgen

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers. en 4 gasten

cron