[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/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 - Event van schakelaars naar webapp sturen - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Event van schakelaars naar webapp sturen
http://www.nodo-domotica.nl/forum/viewtopic.php?f=24&t=900
Pagina 1 van 3  Volgende »
Auteur:  rhannink [ 11 okt 2012, 19:50 ]
Titel:  Event van schakelaars naar webapp sturen

Auteur:  BasPost [ 11 okt 2012, 21:17 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Hier ben ik nou zelf ook benieuwd naar, ik heb namelijk hetzelfde en vroeg me dat ook al af.
Auteur:  h143 [ 11 okt 2012, 21:45 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Hallo remco,

Als eerst moet je je ontvangers resetten zodat deze niet meer op de afstandsbediening reageerd.
Vervolgens leer je de ontvanger in op de nodo door bijvoorbeeld newkaku 1 on te versturen
Nu kun je de lamp met de webapp schakelen.

Vervolgens klik je op de afstandsbediening op met welke knop je de lamp wilt schakelen.
Nu kijk je in de eventlog welke hex code er binnen komt bijvoorbeeld:
NewKAKU 0x227D580,On;

Nu progameer je in de eventlist het volgende

NewKAKU 0x227D580,On; sendnewkaku 1,On
NewKAKU 0x227D580,Off; sendnewkaku 1,Off

Op deze manier kun je in de webapp zien of een lamp aan of uit is.

Het signaal wordt dan zo verstuurd

Afstandsbediening -> nodo -> ontvanger
Auteur:  proza [ 11 okt 2012, 21:57 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Dat is niet het juiste antwoord op de vraag, welke als volgt was opgezet:

Hoe kan ik de webapp nu vertellen dat er een lamp is aangezet door een schakelaar?

Hier gaat het dus om de traditionele schakelaar die in de wanddoos zit met daarachter een KAKU device.
Auteur:  markuser [ 11 okt 2012, 22:45 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Zo doe ik het:

EventlistWrite; NewKaku 0x74C318B,On; delay 5 !*** schakelaar Rechts***
EventlistWrite; NewKaku 0x74C318B,On; Userevent 2

Voordeel is wanner je dit gebruikt, de lampen ook niet gaan dimmen van hard naar zacht als je 2x op de schakelaar drukt.

Mark
Auteur:  BasPost [ 12 okt 2012, 07:49 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Ik heb dus achter al mijn design schakelaars de AWMR-210 en de AWMR-230 geïnstalleerd. Ik zou net als Remco een "on/off" status willen zien in de webapp als ik mijn verlichting met de wandschakelaars bedien.
Echter zie ik geen event in de eventlog als ik de wandschakelaars bedien.

@markuser, goeie tip trouwens van de delay! Dit gebeurd bij mij vaak inderdaad, vindt de vrouw niet altijd prettig! :D
Auteur:  markuser [ 12 okt 2012, 15:29 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Hoi,

Hierdoor zie je dus ook in de webapp of de lampen aan of uit staan!

Onder de userevent staat bij mij 3 lampen.

Mark
Auteur:  rhannink [ 13 okt 2012, 18:54 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Auteur:  bryan241 [ 13 okt 2012, 19:30 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Als het niet anders kan is het wel mogelijk om een plugin te schrijven die dat voor je doet.

Iets dergelijks als:

-event komt binnen.
-start userplugin.
-userplugin stuurt een bericht naar de webapp om de status aan te passen.
Je moet dan wel bij elke nieuwe schakelaar de userplugin bijwerken...

Groeten,

Bryan
Auteur:  markuser [ 13 okt 2012, 19:56 ]
Titel:  Re: Event van schakelaars naar webapp sturen

Hoi Remco,

Dat is precies wat ik ook heb, mocht de Nodo niet werken dan zet de schakelaar de lamp aan.
Je kunt de schakelaar met een Kaku programmeren.

De KAKU schakelaar schakelt bij mij 3 lampen aan.
De nodo ontvangt het signaal van de schakelaar. wacht 5 seconden en zet ze nog een keer aan. En dan ook nog in de goede dimstand (userevent2). Staan ze al aan door de schakelaar, dan gebeurd er niets.

EventlistWrite; NewKaku 0x74C318B,On; delay 5 !*** schakelaar Rechts***
EventlistWrite; NewKaku 0x74C318B,On; Userevent 2


Mark
Pagina 1 van 3 Alle tijden zijn GMT + 1 uur