FHEM Forum

FHEM => English Corner => Thema gestartet von: claudio am 30 Juni 2019, 20:06:24

Titel: need help with eltako and fhem
Beitrag von: claudio am 30 Juni 2019, 20:06:24
I would like one of my eltako FSR14-2x channel's to be ON only for a specific amount of time (1 second) no matter what happens. in fact, I need an "impulse" for my garage's door motor, the contact should not stay closed more than 2 - 3 sec at most, ideal would be 0.5 sec. With an ocean remote, I've managed to setup it up as a relay which is ON the whole time the remote's button is pressed, but in fhem, I've only ON and OFF button for my FSR14-2x.
Note that I use a FAM14 also.
How to setup fhem for giving only an 0.5 second impulse to the FSR14-2x relay ?
Titel: Antw:need help with eltako and fhem
Beitrag von: RaspiLED am 30 Juni 2019, 22:04:28
Hi,
on-for-timer 1
Gruß Arnd


Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...
Titel: Antw:need help with eltako and fhem
Beitrag von: claudio am 30 Juni 2019, 23:40:13
thanks, I know this command, but I would like it to be the default when I click "on"
Titel: Antw:need help with eltako and fhem
Beitrag von: amenomade am 01 Juli 2019, 00:42:36
You could define a notify which reacts on "on" and set it back to "off" after 0.5 seconds. Something like:
define backToOff notify etalko1:.on sleep 0.5;;set etlako1 off
Titel: Antw:need help with eltako and fhem
Beitrag von: Christoph Morrison am 01 Juli 2019, 01:00:58
Zitat von: claudio am 30 Juni 2019, 23:40:13
thanks, I know this command, but I would like it to be the default when I click "on"

Just make an "alias" (asuming your device is named eltakoFSR14):

attr eltakoFSR14 eventMap /on-for-timer 1:switch/
attr eltakoFSR14 webCmd switch


As you click on switch in the gui, on-for-timer 1 is executed.
Titel: Antw:need help with eltako and fhem
Beitrag von: claudio am 01 Juli 2019, 01:06:11
Zitat von: amenomade am 01 Juli 2019, 00:42:36
You could define a notify which reacts on "on" and set it back to "off" after 0.5 seconds. Something like:
define backToOff notify etalko1:.on sleep 0.5;;set etlako1 off
yes indeed, however I was wondering if there was a better way within the definition itself, perhaps with on-for-timer ? I want it to be bullet proof since this can block me to get into my house... :o
Titel: Antw:need help with eltako and fhem
Beitrag von: claudio am 01 Juli 2019, 01:10:51
Zitat von: Christoph Morrison am 01 Juli 2019, 01:00:58
Just make an "alias" (asuming your device is named eltakoFSR14):

attr eltakoFSR14 eventMap /on-for-timer 1:switch/
attr eltakoFSR14 webCmd switch


As you click on switch in the gui, on-for-timer 1 is executed.
thanks, that's what I came up with, however, I may change it to the notify way since it cover also the case where the command "on" is send by error to the FSR14. This way, it will fall back to "off" also, don't you think ?
Titel: Antw:need help with eltako and fhem
Beitrag von: RaspiLED am 01 Juli 2019, 20:11:25
Hi, instead of switch use on and it works like a charm ;-) Gruß Arnd


Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...
Titel: Antw:need help with eltako and fhem
Beitrag von: claudio am 11 Juli 2019, 00:53:55
Zitat von: RaspiLED am 01 Juli 2019, 20:11:25
Hi, instead of switch use on and it works like a charm ;-) Gruß Arnd


Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...

doesn't work, this block fhem badly, can't even log in ssh

2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 5570.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::CallFn" at fhem.pl line 1894.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::AnalyzeCommand" at FHEM/SetExtensions.pm line 39.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::CommandSet" at fhem.pl line 1236.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::DoSet" at fhem.pl line 1926.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::EnOcean_Set" at fhem.pl line 3749.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::SetExtensions" at ./FHEM/10_EnOcean.pm line 3315.
2019.07.11 00:45:19 1: PERL WARNING: Deep recursion on subroutine "main::SE_DoSet" at FHEM/SetExtensions.pm line 127.
Titel: Antw:need help with eltako and fhem
Beitrag von: RaspiLED am 11 Juli 2019, 20:09:23
Hi,
well first it works. But now you have a problem between enocean Modul und Perl.
This is out of my turf, but you could try to ,,update all" or the enocean explicit.
Which Version of Perl do you use?
The maintainer of enocean is
FHEM/10_EnOcean.pm           klaus-schauer        EnOcean

Maybe he can help!?

Gruß Arnd


Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...
Titel: need help with eltako and fhem
Beitrag von: RaspiLED am 12 Juli 2019, 06:44:02
Hi,
Maybe I was wrong with on/off. Klaus wrote to me that ,,EnOcean verwendet als Schaltkommandos nicht on/off sondern A0, AI usw." So Could you try A0, AI, ... ?

Refer to: https://wiki.fhem.de/wiki/EnOcean_Starter_Guide

A switch with 4 buttons uses:
A0 for left top
AI (i not 1) for left bottom
B0 for right top
BI for right bottom

Regards, Arnd

Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...