Fhemduino - "Baumarkt" Funksteckdosen aus und einschalten

Begonnen von joachimt, 10 Mai 2014, 15:35:44

Vorheriges Thema - Nächstes Thema

joachimt

hi,

you need a second IR Code to turn your light off.
Normaly it is next to your Code in tristate mode.


Try define pir1 FHEMduino 6044153 6044156 (or 6044150).

The second code is your off code.
If that works manually, define a notify as decribed a few posts above.

hope that works for your device.

best regards

Joachim

palicaj

#16
I have PIR sensors , and they send only code when sensor detect movement.
So no signal when pir goes off.

Im only getting IR6465353

And i want , when i detect IR6465353 from pir1, to turn light1 for 60 seconds. (or for example after 120 seconds turn on alarm)
an then i have pir2 , where i want to turn light2 .... andd so on.


Im trying to use this:
define act_on_Steckdose_B_On notify FSD_Steckdose_B:on  define FSD_Steckdose_off at +00:00:10 set FSD_Steckdose_B off

But, dont work for me (i dont know how to use it to connect action with detection of PIR)


joachimt

Ah, ok I understand.

But what you need anyway is a way in fhem to turn your light off.
Assuming your fhem command is for example  "set light1 off"
try

define act_on_pir1_movement_detected notify pir1:on define light1_off at 00:00:30 set light1 off

But remember the fhem command - set light1 off- must work.

best regards

joachim

palicaj

#18
Problem is that notify do not react when pir detect movement.
I get record in log, but no action, nothing happened.
If i klick on Picture, then notify Works.
So it looks like notify do not register everything...
I dont know why.

command set light1 off or set light1 on Works!
Also with notify , but only with my mose click , not with help of PIR

joachimt

Hi palicaj,

I was able to reproduce your error and I think a found the solution.

As I said in my first post I am myself just a beginner in fhem programming.
Debugging what is going on when and how triggers and notifys are created
I found out that there was a wrong return value in my FHEMduino_fsd Parse
Function.
I fixed it and attached the new file. Hope that It works for you now.

Remember to use my version of 00_fhemduino.pm because there is routing decision which module
to use when receiving an IR... Code.

my %matchListSlowRF = (
    "1:IT"              => "^i......\$",
    "2:FHEMduino_EZ6"     => "E...........\$",
    "3:FHEMduino_KW9010"  => "K...........\$",
    "4:FHEMduino_fsd"  => "^IR.......\$",
);

Please let me know when your application is working.

Best regards

Joachim