Schaltbefehl an Aktoren mehrfach gesendet

openHAB - open Home Automation Bus

Moderator: Co-Administratoren

Antworten
myhome2018
Beiträge: 18
Registriert: 24.01.2018, 09:31

Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von myhome2018 » 05.02.2018, 12:28

Hallo zusammen,

ich habe am Wochenende meine OpenHab Installation in Betrieb genommen. Alle Komponenten wurden sofort erkannt.

Nun bin ich dabei die ersten Regeln zu definieren. Mein Problem ist folgendes. Ich habe eine Regel die ein Rollo bzw. Jalousie hoch oder runterfahren soll. Das funktioniert zwar, aber der Befehl an die CCU2 wird 10-20 mal geschickt! Entsprechend ist der DutyCylcle angestiegen.

Wenn ich die einzelnen Rollos in der PaperUI direkt anspreche dann wird der Befehl an die CCU2 nur einmal gesendet. Was mache ich falsch??

Hier ein Auszug meines Logs der CCU2:

Code: Alles auswählen

Feb  5 12:15:00 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #39[Ren] 5E4B84->457DFA Ack: 01 01 00 10 49
Feb  5 12:15:01 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #42[Ren] 5E4B84->457DFA Ack: 01 01 07 10 48
Feb  5 12:15:02 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #4B[Ren] 5E4B84->457DFA Ack: 01 01 0F 10 48
Feb  5 12:15:03 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #54[Ren] 5E4B84->457DFA Ack: 01 01 17 10 48
Feb  5 12:15:04 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #5D[Ren] 5E4B84->457DFA Ack: 01 01 1F 10 48
Feb  5 12:15:05 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #66[Ren] 5E4B84->457DFA Ack: 01 01 27 10 48
Feb  5 12:15:06 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #6F[Ren] 5E4B84->457DFA Ack: 01 01 2F 10 48
Feb  5 12:15:07 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #78[Ren] 5E4B84->457DFA Ack: 01 01 37 10 48
Feb  5 12:15:08 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #01[Ren] 5E4B84->457DFA Ack: 01 01 3F 10 48
Feb  5 12:15:09 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #0A[Ren] 5E4B84->457DFA Ack: 01 01 47 10 48
Feb  5 12:15:10 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #13[Ren] 5E4B84->457DFA Ack: 01 01 4F 10 48
Feb  5 12:15:11 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #1C[Ren] 5E4B84->457DFA Ack: 01 01 57 10 48
Feb  5 12:15:12 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #25[Ren] 5E4B84->457DFA Ack: 01 01 5F 10 48
Feb  5 12:15:13 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #2E[Ren] 5E4B84->457DFA Ack: 01 01 67 10 48
Feb  5 12:15:14 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #37[Ren] 5E4B84->457DFA Ack: 01 01 6F 10 48
Feb  5 12:15:15 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #40[Ren] 5E4B84->457DFA Ack: 01 01 77 10 48
Feb  5 12:15:16 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #49[Ren] 5E4B84->457DFA Ack: 01 01 7F 10 48
Feb  5 12:15:17 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #52[Ren] 5E4B84->457DFA Ack: 01 01 87 10 48
Feb  5 12:15:18 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #5B[Ren] 5E4B84->457DFA Ack: 01 01 90 10 48
Feb  5 12:15:19 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #64[Ren] 5E4B84->457DFA Ack: 01 01 98 10 48
Feb  5 12:15:20 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #6D[Ren] 5E4B84->457DFA Ack: 01 01 A0 10 49
Feb  5 12:15:21 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #76[Ren] 5E4B84->457DFA Ack: 01 01 A8 10 48
Feb  5 12:15:22 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #7F[Ren] 5E4B84->457DFA Ack: 01 01 B0 10 49
Feb  5 12:15:23 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #08[Ren] 5E4B84->457DFA Ack: 01 01 B8 10 48
Feb  5 12:15:24 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #11[Ren] 5E4B84->457DFA Ack: 01 01 C0 10 48
Feb  5 12:15:25 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #1A[Ren] 5E4B84->457DFA Ack: 01 01 C8 10 49
Feb  5 12:15:26 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #23[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:27 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #2C[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:28 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #35[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:29 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #3E[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:30 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #47[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:31 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #50[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:32 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #59[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:33 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #62[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:34 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #6B[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:35 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #74[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:36 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #7D[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:37 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #06[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:38 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #0F[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:39 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #18[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:40 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #21[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:41 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #2A[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:42 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #33[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:43 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #3C[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:44 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #45[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:45 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #4E[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:46 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #57[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:47 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #60[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:48 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #69[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 49
Feb  5 12:15:49 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #72[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:50 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #7B[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:51 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #04[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:52 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #0D[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:53 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #16[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:54 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #1F[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:55 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #28[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:56 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #31[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:57 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #3A[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:58 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #43[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Feb  5 12:15:59 homematic-ccu2 user.info multimac: ACK received after 0 repetitions: #4C[Ren] 5E4B84->457DFA Ack: 01 01 C8 00 48
Und hier meine Regel

Code: Alles auswählen

rule "Test Ansteuerung"

when 
    Time cron "* 15 12 * * ?"
then
    homematic_HM_LC_Bl1PBU_FM_ccu2_OEQ1308617_1_LEVEL.sendCommand(UP) 
end
Vielen Dank!

paul53
Beiträge: 2445
Registriert: 26.04.2012, 20:42
Wohnort: Berlin

Re: Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von paul53 » 05.02.2018, 12:49

Der cron job ist falsch deklariert. Versuche es mal mit (täglich 12:15 Uhr)

Code: Alles auswählen

    Time cron "15 12 * * *"
Versionen: HM-CC-TC 2.1, HM-LC-Sw1 1.9, HM-CC-RT-DN 1.1, HM-MOD-RPI-PCB 1.2.1 (keine CCU)

myhome2018
Beiträge: 18
Registriert: 24.01.2018, 09:31

Re: Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von myhome2018 » 05.02.2018, 13:01

Danke für die Antwort. Laut Doku müsste der cron job aber eigentlich passen.

Ich habe dennoh deine Variante getestet.

Ergebnis:

Code: Alles auswählen

2018-02-05 12:59:54.140 [ERROR] [e.internal.engine.RuleTriggerManager] - Cannot create timer for rule 'Test Ansteuerung': CronExpression '15 12 * * *' is invalid.

paul53
Beiträge: 2445
Registriert: 26.04.2012, 20:42
Wohnort: Berlin

Re: Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von paul53 » 05.02.2018, 13:22

myhome2018 hat geschrieben:CronExpression '15 12 * * *' is invalid
Dann hält sich OpenHab nicht an die Linux-Konventionen. Ich habe mich schon über das Fragezeichen am Ende gewundert. Vielleicht klappt es so ?

Code: Alles auswählen

        Time cron "0 15 12 * * ?"
EDIT: Habe mir die Rules - openHAB 2 angesehen: Diese Version sollte funktionieren.
Versionen: HM-CC-TC 2.1, HM-LC-Sw1 1.9, HM-CC-RT-DN 1.1, HM-MOD-RPI-PCB 1.2.1 (keine CCU)

myhome2018
Beiträge: 18
Registriert: 24.01.2018, 09:31

Re: Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von myhome2018 » 05.02.2018, 13:38

Hallo Paul,

das stimmt allerdings. OpenHab nutzt nicht die Standard cron Konvention. In der OpenHab Doku wird auf folgendes verlinkt:

http://www.quartz-scheduler.org/documen ... -lesson-06

Der Vorteil dieser Konvention ist dass man cron jobs sogar sekundengenau definieren kann.

Zurück zu meinem Problem. Deine zweite Vrainate hat funktioniert :D

Code: Alles auswählen

Time cron "0 15 12 * * ?"
Der Fehler lag in dem * für die Sekundenangabe. Entsprechend wurde der Job jede Sekunde ausgeführt.

Vielen Dank für deine Hilfe! :D

Benutzeravatar
eiGelbGeek
Beiträge: 685
Registriert: 24.07.2014, 17:46
Wohnort: Ruhrpottrandgebiet

Re: Schaltbefehl an Aktoren mehrfach gesendet

Beitrag von eiGelbGeek » 09.02.2018, 11:18

Doch das was Openhab nutzt ist Standard ..... es ist halt Java .... Quartz Cron .... :mrgreen:
Nur weil es nicht geht, muss es nicht kaputt sein ^^

Apple for Work, Linux for Network, iOS for Mobility and still Windows for Solitaire

Antworten

Zurück zu „openHAB“