VCCU schaltet doppelt

Begonnen von oehi86, 11 Juni 2016, 11:48:03

Vorheriges Thema - Nächstes Thema

oehi86

Hallo Freunde  ;)

ich habe mal wieder ein kleines Problemchen.
Ich benutze einen HM-RC-4-2 (4-Button Taster) im Schlafzimmer, um bestimme Lampen zu schalten. Bisher hat das immer super funktioniert. Da nun mein CUL zum zweiten mal den Geist aufgegeben hat, habe ich mir nun den HMLAN ovn Homematic gegönnt. Alle Geräte neu angelernt und auch die VCCU eingerichtet...so weit so gut und es funktioniert alles.

Nun zum eigentlichen Problem:
ich habe einen notify mit folgender Definition:
sz_BettTaster_Btn_03:.* set sz_Stehlampe toggle

List vom BettTaster:
Attributes:
   IODev      HMLAN1
   IOgrp      VCCU:HMLAN1
   autoReadReg 4_reqStatus
   expert     2_raw
   firmware   1.2
   model      HM-RC-4-2
   room       Schlafzimmer
   serialNr   LEQ0267217
   subType    remote
   webCmd     getConfig:clear msgEvents

Wenn ich nun den Btn_03 (oder auch einen anderen) drücke, schaltet die Lampe sich ein und ein paar Sek. später wieder aus.

ich habe es mit der Funktion { UntoggleDirect("sz_Stehlampe") } versucht, da passiert leider gar nichts.

Könnt ihr mir helfen?

viele Grüße
Philipp

LuckyDay

schau doch mal in den Eventmonitor, da siehst du deine Events , die das dein notify bekommt

Benni

mit der regexp

sz_BettTaster_Btn_03:.*

reagiert dein notify auf jedes (!) Event, dass der entsprechende Taster erzeugt, egal ob on, off, short, long oder battery .....

wie fhem-hm-knecht schon geschrieben hat: Schau einfach mal im Eventmonitor, welche Events dein Taster beim Drücken so erzeugt.


oehi86

Entschuldigt die lange Ausgabe aber ich bin selber überrascht:  :o  :o  :o  :o

2016-06-11 14:33:40 CUL_HM sz_BettTaster battery: ok
2016-06-11 14:33:40 CUL_HM sz_BettTaster sz_BettTaster_Btn_03 Short
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:40 CUL_HM sz_BettTaster_Btn_03 Short (to F16235)
2016-06-11 14:33:40 CUL_HM sz_BettTaster_Btn_03 trigDst_F16235: noConfig
2016-06-11 14:33:40 CUL_HM sz_BettTaster_Btn_03 trigger: Short_32
2016-06-11 14:33:40 CUL_HM sz_BettTaster_Btn_03 trigger_cnt: 32
2016-06-11 14:33:40 CUL_HM sz_Stehlampe deviceMsg: off (to VCCU)
2016-06-11 14:33:40 CUL_HM sz_Stehlampe level: 0
2016-06-11 14:33:40 CUL_HM sz_Stehlampe pct: 0
2016-06-11 14:33:40 CUL_HM sz_Stehlampe off
2016-06-11 14:33:40 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:40 CUL_HM sz_BettTaster battery: ok
2016-06-11 14:33:40 CUL_HM sz_BettTaster sz_BettTaster_Btn_03 Short
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:40 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 Short (to F16235)
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigDst_F16235: noConfig
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigger: Short_32
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigger_cnt: 32
2016-06-11 14:33:41 CUL_HM sz_BettTaster battery: ok
2016-06-11 14:33:41 CUL_HM sz_BettTaster sz_BettTaster_Btn_03 Short
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_Stehlampe set_toggle
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 Short (to F16235)
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigDst_F16235: noConfig
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigger: Short_32
2016-06-11 14:33:41 CUL_HM sz_BettTaster_Btn_03 trigger_cnt: 32
2016-06-11 14:33:41 CUL_HM sz_Stehlampe deviceMsg: off (to VCCU)
2016-06-11 14:33:41 CUL_HM sz_Stehlampe level: 0
2016-06-11 14:33:41 CUL_HM sz_Stehlampe pct: 0
2016-06-11 14:33:41 CUL_HM sz_Stehlampe off
2016-06-11 14:33:41 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:41 CUL_HM sz_Stehlampe deviceMsg: off (to VCCU)
2016-06-11 14:33:41 CUL_HM sz_Stehlampe level: 0
2016-06-11 14:33:41 CUL_HM sz_Stehlampe levelMissed: desired:100
2016-06-11 14:33:41 CUL_HM sz_Stehlampe pct: 0
2016-06-11 14:33:41 CUL_HM sz_Stehlampe off
2016-06-11 14:33:41 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:42 CUL_HM sz_Stehlampe deviceMsg: off (to VCCU)
2016-06-11 14:33:42 CUL_HM sz_Stehlampe level: 0
2016-06-11 14:33:42 CUL_HM sz_Stehlampe pct: 0
2016-06-11 14:33:42 CUL_HM sz_Stehlampe off
2016-06-11 14:33:42 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:42 HMLAN HMLAN1 loadLvl: low
2016-06-11 14:33:42 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:42 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:42 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:42 CUL_HM sz_Stehlampe on
2016-06-11 14:33:42 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:42 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:42 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:42 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:42 CUL_HM sz_Stehlampe on
2016-06-11 14:33:42 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:43 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:43 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:43 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:43 CUL_HM sz_Stehlampe on
2016-06-11 14:33:43 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:43 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:43 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:43 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:43 CUL_HM sz_Stehlampe on
2016-06-11 14:33:43 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:44 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:44 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:44 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:44 CUL_HM sz_Stehlampe on
2016-06-11 14:33:44 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:44 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:44 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:44 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:44 CUL_HM sz_Stehlampe on
2016-06-11 14:33:44 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:45 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:45 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe on
2016-06-11 14:33:45 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:45 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:45 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe on
2016-06-11 14:33:45 CUL_HM sz_Stehlampe timedOn: off
2016-06-11 14:33:45 CUL_HM sz_Stehlampe deviceMsg: on (to VCCU)
2016-06-11 14:33:45 CUL_HM sz_Stehlampe level: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe pct: 100
2016-06-11 14:33:45 CUL_HM sz_Stehlampe on
2016-06-11 14:33:45 CUL_HM sz_Stehlampe timedOn: off

Ma_Bo

#4
Mach mal eine Änderung in deiner DEF :

sz_BettTaster_Btn_03:trigger_cnt:.* set sz_Stehlampe toggle

Damit reagiert das notify nur noch auf 1 reading und nicht auf alle.
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.

oehi86

der Ansatz war sehr gut aber leider wieder keine Änderung  :o >:(

Logfile Auszug:
016.06.11 16:26:27 3: CUL_HM set sz_Stehlampe toggle
2016.06.11 16:26:27 3: CUL_HM set sz_Stehlampe toggle
2016.06.11 16:26:27 3: CUL_HM set sz_Stehlampe toggle

Kann das an meiner VCCU in Verbindung mit dem HMLAN liegen?

MadMax-FHEM

Vielleicht mal den Filter des EventMonitor so setzen wie die regex des notify und schauen was dann noch "durch geht"...

Wenn mehrere Events (trotz Filter) kommen, dann ist klar, dass mehrfach geschaltet wird.

-> Filter anpassen bis es passt, dann hast du auch den passenden regex für den notify gefunden...
(Filter anpassen: Filter wieder "gröber" machen und schauen was kommt und dann was raussuchen was passen könnte und neu probieren)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

martinp876

events werden so oft gemeldet wie sie kommen.
hast du schon event-on-change-reading gesetzt? Wer das nicht macht ist selber schuld

am besten gleich überall:

attr TYPE=CUL_HM   event-on-change-reading .*
save


und das nächste mal code-tags beim posten verwenden.
und nicht vergessen die definition deines Notify einmal komplett zu posten. Raten ist nicht mein Ding.

LuckyDay

Ist deine Fernbedienung überhaupt richtig gepairt?
ich denke mal nicht!
wer soll denn F16235 sein, deine VCCU wohl nicht.

Zitat2016-06-11 14:33:40 CUL_HM sz_BettTaster_Btn_03 Short (to F16235)