Unterstützung Homematic HB-Geräte

Begonnen von Horti, 15 März 2020, 19:29:03

Vorheriges Thema - Nächstes Thema

maclovlin

Zitat von: Horti am 09 April 2020, 22:10:17
Hast Du denn noch irgendwas an papas pm-Datei geändert, außer der Modell-ID und -Bezeichnung?

Nein, nur die beiden Werte.

Horti

Und sowas wie
set HB-DIS-EP-42BW_01 text Fenster\_auf Fenster\_zu
(natürlich sinngemäß) geht bei Dir jetzt ohne Probleme und ohne weitere Tricksereien/Anpassungen?

maclovlin

#17
Zitat von: Horti am 09 April 2020, 22:19:36
Und sowas wie
set HB-DIS-EP-42BW_01 text Fenster\_auf Fenster\_zu
(natürlich sinngemäß) geht bei Dir jetzt ohne Probleme und ohne weitere Tricksereien/Anpassungen?

Ja, keine Probleme.
Danach nochmal den Pairing Taster betätigen und das Display wird aktualisiert.

Wobei bei der HB-RC-12-EP-C scheinen nur 11 Zeichen pro Zeile zu passen und der 12te Button fällt noch aus der Reihe...

papa

Wenn das funktioniert, können wir das gern in das AskSin++ Addin mit aufnehmen. Kannst Du nen Pull-Request machen?
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Horti

Zitat von: maclovlin am 09 April 2020, 22:23:15
Ja, keine Probleme.
Danach nochmal den Pairing Taster betätigen und das Display wird aktualisiert.

OK, dann muss ich noch mal nach meiner Hardware schauen.

maclovlin

Zitat von: papa am 09 April 2020, 22:52:36
Wenn das funktioniert, können wir das gern in das AskSin++ Addin mit aufnehmen. Kannst Du nen Pull-Request machen?

Ich will die RC erstmal ein paar Tage testen. Dann kann ich es gerne mit dem Pull Request versuchen.

maclovlin

#21
Zitat von: Horti am 09 April 2020, 22:54:01
OK, dann muss ich noch mal nach meiner Hardware schauen.

Basiert deine Hardware auch auf dem 1284p? Wenn ja dann könntest du evtl. das Testscript von Major Tom mal einspielen...
https://github.com/TomMajor/SmartHome/tree/master/PCB/HB-RC-12-EP#displaytest

Um die Hardware zu Testen, meine ich.

frank

Zitat von: maclovlin am 09 April 2020, 22:23:15
und der 12te Button fällt noch aus der Reihe...
in deiner datei sehe ich auch nur die behandlung von channel 1 bis 11. channel 12 fehlt.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

maclovlin

@Papa:

Die Taste 12 verhält sich eigenartig bei der RC, hier ein kurzer Auszug aus dem Log:


<--- Btn 2 --->
2020-04-10 09:44:27 CUL_HM HM_F34502 HM_F34502_Dis_02 Short
2020-04-10 09:44:27 CUL_HM HM_F34502_Dis_02 Short 1_0 (to broadcast)
2020-04-10 09:44:27 CUL_HM HM_F34502_Dis_02 trigger: Short_0
2020-04-10 09:44:27 CUL_HM HM_F34502_Dis_02 trigger_cnt: 0

<---- Btn 12 --->
2020-04-10 09:44:29 CUL_HM HM_F34502 battery: ok
2020-04-10 09:44:29 CUL_HM HM_F34502 Btn12 Short
2020-04-10 09:44:29 CUL_HM HM_F34502 trigDst_broadcast: noConfig
2020-04-10 09:44:29 CUL_HM HM_F34502 trigger: Short_0
2020-04-10 09:44:29 CUL_HM HM_F34502 trigger_cnt: 0


Da steht immer Btn12, bei den anderen Tastern HM_F34502_Dis_01 bis 11 Short.

Ich weiß nicht ob es so eine große Rolle spielt, merkwürdig ist das Ganze schon.

maclovlin

Zitat von: frank am 10 April 2020, 09:52:43
in deiner datei sehe ich auch nur die behandlung von channel 1 bis 11. channel 12 fehlt.

Sehr gut, hier die geänderte Version:
$HMConfig::culHmModel{"F345"} = {name=>"HB-RC-12-EP-C",st=>'display',cyc=>'',rxt=>'c',lst=>'1,p',chn=>"Dis:1:12"};
$HMConfig::culHmRegModel{"HB-RC-12-EP-C"} = { intKeyVisib     =>1,transmDevTryMax =>1
                         ,powerSupply     =>1,localResDis     =>1,wakeupBehavior  =>1
                         ,wakeupBehavMsg  =>1,wakeupBehavMsg_R=>1,statMsgTxtAlign =>1
                         ,displayInvert   =>1};
$HMConfig::culHmChanSets{"HB-RC-12-EP-C01"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C02"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C03"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C04"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C05"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C06"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C07"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C08"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C09"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C10"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C11"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C12"} = { displayWM =>"[long|short|help] -lineX- -textNo1- -color1- -icon1- [-textNo2- -color2- -icon2-] ...[-textNo6- -color6- -icon6-] "
                                                ,peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmRegChan {"HB-RC-12-EP-C01"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C02"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C03"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C04"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C05"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C06"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C07"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C08"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C09"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C10"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C11"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C12"} = $HMConfig::culHmRegType{remote};

Horti

Zitat von: maclovlin am 10 April 2020, 09:43:06
Basiert deine Hardware auch auf dem 1284p? Wenn ja dann könntest du evtl. das Testscript von Major Tom mal einspielen...
https://github.com/TomMajor/SmartHome/tree/master/PCB/HB-RC-12-EP#displaytest

Um die Hardware zu Testen, meine ich.

Ja, ist die Standardimplementierung aus dem orangenen Forum. Das Display an sich funktioniert auch, in Verbindung mit meiner CCU habe ich auch keine Probleme damit. Aber bei meinem letzten Versuch mit FHEM stockte die Kommunikation, ob das an dem Display selber, an FHEM oder an den IO-Devices lag, habe ich noch nicht genauer untersuchen können

maclovlin

#26
Habe heute noch ein wenig an der Konfig rumgespielt, was ich absolut nicht hinbekomme ist das ich dynamisch oder überhaupt Icons setzen kann, so wie
es überall auf den Screenshots zu sehen ist.

So hatte ich es versucht:
set HM_F34502_Dis_02 displayWM short line1 an red closed

Hat jemand nen Tipp?

maclovlin

Habe die RC heute zu HM-DIS-EP-WM55 umgeflasht (id geändert).

Immer wenn ich versuche die Icons zu setzen bekomme ich bei dem Device "MISSING ACK".

Weiß nicht mehr weiter ...

papa

Kommt denn irgendwas auf der seriellen Konsole ?
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

maclovlin

Nichts für mich verwertbares.

Serieller Log bei drücken der 1 Taste:
01 debounce
01 pressed
01 released
<- 0B 3D A2 40 F34502 001122 01 0A  - 290375
-> 0A 3D 80 02 001122 F34502 00  - 290500
waitAck: 01
01


Log in FHEM:
2020.04.11 15:08:26 3 : MQTT2_DEVICE set whz_fensterlampe off
2020.04.11 15:08:26 3 : CUL_HM set HM_F34502_Dis_01 displayWM short line1 aus red error
2020.04.11 15:08:26 1 : Das Device HM_F34502 hat ausgeloest, der Event sah so aus: HM_F34502_Dis_01 Short
2020-04-11 15:08:26 CUL_HM HM_F34502 battery: ok
2020-04-11 15:08:26 CUL_HM HM_F34502 CMDs_done
2020-04-11 15:08:26 CUL_HM HM_F34502 HM_F34502_Dis_01 Short


Ich schalte dabei über ein Notify eine Lampe an und aus.