Enocean Taster Impuls verlängern

Begonnen von gagamicha, 23 August 2016, 17:26:14

Vorheriges Thema - Nächstes Thema

gagamicha

Hallo Zusammen ich nutze unter anderem folgenden Taster in FEHM mit einem Enocean USB Modul am PI 1



define 4_Garage_4_Holder EnOcean FFCC9604
attr 4_Garage_4_Holder IODev TCM310
attr 4_Garage_4_Holder devStateIcon .*:fts_garage
attr 4_Garage_4_Holder eventMap BI:Taster
attr 4_Garage_4_Holder manufID 7FF
attr 4_Garage_4_Holder room Garage
attr 4_Garage_4_Holder subType switch
attr 4_Garage_4_Holder switchMode pushbutton
attr 4_Garage_4_Holder webCmd Taster



Der Impuls ist leider zu kurz sodass mein Torantrieb nicht immer das Signal mit bekommt.
Hat jmd eine Idee wie ich den Impuls zwischen "taster drücken" und "taster loslassen" verlängern kann?

Viele Grüße

krikan

Wenn es sich bei Deinem Problem nicht um ein Reichweitenproblem handelt und/oder der (unbekannte) Aktor nicht falsch über FHEM angesteuert wird, könntest Du probieren:

Das Attribut switchMode löschen bzw. auf den default switch stellen
Schaltvorgänge mit der Befehlsfolge ausführen:
set <device> [value]; sleep <msekunden>; set <device> released

gagamicha

Ok danke für dein Feedback ich steuere damit ein Thermokon Jalousie aktor an und nutze aber nur den einen Ausgang für meinen Garagentor Kontakt.
Bei allen anderen 3 Toren geht das auch aber das eine hat die im ersten post genannten Probleme ... mein koppelrealis schaltet auch das ist hörbar aber das tor geht nicht immer auf , der impuls muss sehr wahrscheinlich minimal länger sein.

Ich habe jetzt mit dem genannten befehl gespielt, aber bekomme es nicht zum laufen.
set 4_Garage_4_Holder BI; sleep 1000; set 4_Garage_4_Holder released
lässt mein FHEM nicht mehr starten ... wie genau kann ich die Zeile ansprechen =?

Gruß

krikan

Ich tippe mehr auf Reichweitenprobleme, wenn es sonst funktioniert.

Das gibst Du bitte zum Testen in der Kommandozeile von FHEM ein und drückst die <Enter>-Taste
So bitte nicht in die fhem.cfg.
1000 sec für http://fhem.de/commandref.html#sleep sind vermutlich zu lang. Probiere es bitte mit 0.2 oder ähnlich.
Ansonsten bitte mal ins Log schauen.

SouzA

Hi,

ich hatte auch mal nen paar Aussetzer...
Aus der EnOcean commandref:

Observing Functions
Interference or overloading of the radio transmission can prevent the reception of Fhem commands at the receiver. With the help of the observing function Fhem checks the reception of the acknowledgment telegrams of the actuator. If within one second no acknowledgment telegram is received, the last set command is sent again. The set command is repeated a maximum of 5 times. The maximum number can be specified in the attribute observeCmdRepetition.
The function can only be used if the actuator immediately after the reception of the set command sends an acknowledgment message.
The observing function is turned on by the Attribute observe. In addition, further devices can be monitored. The names of this devices can be entered in the observeRefDev attribute. If additional device are specified, the monitoring is stopped as soon as the first acknowledgment telegram of one of the devices was received (OR logic). If the observeLogic attribute is set to "and", the monitoring is stopped when a telegram was received by all devices (AND logic). Please note that the name of the own device has also to be entered in the observeRefDev if required.
If the maximum number of retries is reached and still no all acknowledgment telegrams has been received, the reading "observeFailedDev" shows the faulty devices and the command can be executed, that is stored in the observeErrorAction attribute.

Vielleicht hilft das ja bei dir auch...

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

krikan

Zitat von: SouzA am 27 August 2016, 17:09:25
Observing Functions
Funktioniert mMn leider nur bei bidirektionalen Aktoren. Hier geht es aber -zumindest der gezeigten FHEM-Defintion nach- um unidirektionale Thermokon-Aktoren in einer ungenannten Variante.

Gruß, Christian

SouzA

Ja, da hast du recht.
Dass die unidirektional sind, wusste ich nicht.

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

gagamicha

Hallo zusammen,

also die Verzögerung von 1s funktioniert bei mir jetzt zuverlässig.

Wie bekomm ich die jetzt aber als Taster Funktion fest implementiert ?

Grüße

krikan

#8
Man könnte ein http://fhem.de/commandref#cmdalias für die Befehlsfolge definieren und über das Attribut devStateIcon des FHEM-EnOcean-Devices einbinden, so dass ein Klick aufs Icon das cmdAlias aufruft.

Oder einen dummy definieren, dessen Event ein notify triggert, das die passende Befehlsfolge absetzt.

Gruß, Christian