[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/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 - bewegingssensor pir-2050 • nodo-domotica.nl

nodo-domotica.nl

bewegingssensor pir-2050

Met de Nodo commando's en dee Eventlist kun je vrijwel elke domotica wens realiseren. De Nodo beschikt hiervoor over een eigen script-taal waarmee u uw domotica wensen kunt realiseren. Plaats hier uw vragen en tips die hier op betrekking hebben.

bewegingssensor pir-2050

Berichtdoor markuser » 11 nov 2012, 10:45

Hallo,

Ik heb een beweginssensor gekocht van kaku. Een pir-2050

Als het donker is schakelt de sensor het licht aan met het onderstaande script.
EventListWrite; ClockDaylight 3,0; VariableSet 5,0
EventListWrite; ClockDaylight 2,0; VariableSet 5,1

EventListWrite; Kaku K10,On; BreakOnVarEqu 5,1
EventListWrite; Kaku K10,On; TimerSetMin 7,1
EventListWrite; Kaku K10,On; SendNewKAKU 45,on
EventListWrite; Timer 7,0; SendNewKAKU 45,Off

Dat werkt prima.

Echter wanneer ik het licht inschakel via de webapp en dan naar buiten loop gaat de verlichting uit na 1 minuut. (logisch) Wat ik wil is wanneer ik de verlicht achterthuis handmatig inschakel het bovenstaande script word uitgeschakeld. En wanneer ik natuurlijk de lampen achterthuis weer uitschakel het script weer z'n werk doet.

Mvg,
Mark
Laatst bijgewerkt door markuser op 11 nov 2012, 19:45, in totaal 1 keer bewerkt.
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: bewegingssensor pir-250

Berichtdoor manjh » 11 nov 2012, 10:57

Dat kan.
Schakel vanuit de webapp niet de NewKaku, maar gebruik twee userevents.
1e userevent doet het volgende in de eventlist:
* zet een variabele op 1, bijvoorbeeld 6
* schakel NewKaku aan
2e userevent:
* zet variabele 6 op 0
* Schakel NewKaku uit
Vervolgens neem je in het al bestaande stukje een test op variabele 6 op: break als die 1 is.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: bewegingssensor pir-250

Berichtdoor bryan241 » 11 nov 2012, 11:05

Dat kan, maar dan krijg je wel een kleine inschakelvertraging. Doordat eerst het event van de PIR naar de nodo wordt gestuurd en daarna de lamp door de nodo wordt ingeschakeld.

Als dat niet erg is (anders kan het volgens mij niet) dan moet je in de nodo kijken welk event er binnen komt zodra je langs de PIR loopt. En dan laat je de nodo het licht schakelen.

In je script kun je dan een variabele opnemen die ervoor zorgt dat het script om de lamp uit te zetten alleen wordt uitgevoerd als het licht door de PIR is aangeschakeld.

Mocht je er niet uitkomen, dan zal ik een voorbeeld proberen te produceren :D
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: bewegingssensor pir-250

Berichtdoor markuser » 11 nov 2012, 11:30

Hoi,

Wat een denkwerk op de zondagmorgen ;)

Zou zoiets werken ? Is nu een beetje lastig testen met daglicht.

EventListWrite; Userevent 20; VariableSet 6,1
EventListWrite; Userevent 20; SendNewKaku 45,on

EventListWrite; Userevent 21; VariableSet 6,0
EventListWrite; Userevent 21; SendNewKaku 45,off

EventListWrite; ClockDaylight 3,0; VariableSet 5,0
EventListWrite; ClockDaylight 2,0; VariableSet 5,1

EventListWrite; Kaku K10,On; BreakOnVarEqu 5,1
EventListWrite; Kaku K10,On; BreakOnVarEqu 6,1
EventListWrite; Kaku K10,On; TimerSetMin 7,1
EventListWrite; Kaku K10,On; SendNewKAKU 45,on
EventListWrite; Timer 7,0; SendNewKAKU 45,Off

Vraag me eingelijk ook af hoe ik kan schakelen onder devices tussen een userevent 20 en 21. Onder 1 knop.

Mark
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: bewegingssensor pir-250

Berichtdoor proza » 11 nov 2012, 15:58

Laatst bijgewerkt door proza op 24 dec 2012, 12:57, in totaal 1 keer bewerkt.
- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: bewegingssensor pir-2050

Berichtdoor markuser » 12 nov 2012, 21:47

Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: bewegingssensor pir-2050

Berichtdoor proza » 12 nov 2012, 23:16

- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: bewegingssensor pir-2050

Berichtdoor markuser » 24 dec 2012, 11:48

Hoi Proza,

Even weer verder gegaan met mijn bewegingssensor.
Is het niet handig dat het signaal van de beweginssensor word genegeerd? Is dat mogelijk?
Dan is de sensor uitgeschakeld, en kan ik de lamp handmatig schakelen.

Dit ga ik nu testen,

EventListWrite; Userevent 20; VariableSet 5,5
EventListWrite; Userevent 20; SendNewKaku 45,on

EventListWrite; Userevent 21; SendNewKaku 45,off

EventListWrite; ClockDaylight 3,0; VariableSet 5,0
EventListWrite; ClockDaylight 2,0; VariableSet 5,1

EventListWrite; Kaku K10,On; BreakOnVarEqu 5,1
EventListWrite; Kaku K10,On; BreakOnVarEqu 5,5
EventListWrite; Kaku K10,On; SendNewKAKU 45,on
EventListWrite; Kaku K10,On; TimerSetMin 7,1
EventListWrite; Timer 7,0; SendNewKAKU 45,Off

EventListWrite; Kaku K10,Off; BreakOnVarEqu 5,1
EventListWrite; Kaku K10,On; BreakOnVarEqu 5,5
EventListWrite; Kaku K10,Off; SendNewKAKU 45,on
EventListWrite; Kaku K10,Off; TimerSetMin 7,1
EventListWrite; Timer 7,0; SendNewKAKU 45,Off


Onder device wil ik dan een userevent aan / uit (20/21) schakelen, echter dat werkt niet.

Mark
Laatst bijgewerkt door markuser op 24 dec 2012, 12:27, in totaal 1 keer bewerkt.
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: bewegingssensor pir-2050

Berichtdoor proza » 24 dec 2012, 12:27

Succes, ben benieuwd naar je bevindingen. :!:
- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: bewegingssensor pir-2050

Berichtdoor markuser » 24 dec 2012, 12:29

Hoi,

Het zou handig zijn dat een signaal van de beweginssensor word genegeerd? Is dat mogelijk?

Schakelen tussen uservent 20 en 21 werkt nog niet, nog even verder puzzelen.

Mark
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Volgende

Keer terug naar Nodo scripts

Wie is er online?

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

cron