FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: Horti am 15 März 2020, 19:29:03

Titel: Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 15 März 2020, 19:29:03
Hallo martinp876,

der Jerome aka jp112sdl, der hier nur noch als Gast unterwegs ist, hat eine beachtliche Sammlung Homebrew-Geräte entwickelt, inkl. eines entsprechenden AddOns für die CCU:
https://github.com/jp112sdl/JP-HB-Devices-addon (https://github.com/jp112sdl/JP-HB-Devices-addon)

Besteht die Hoffnung, dass die irgendwann mal auch vom CUL_HM-Modul unterstützt werden? Ich bin mittlerweile im Besitz eines HB-DIS-EP-42BW und hoffe auch noch ein HB-RC-12-EP zu bekommen. Ich habe zwar auch eine RaspberryMatic im Betrieb für HMIP, aber mit einer deutlich schlechteren Funkabdeckung bei mir zu Hause, so dass ich viel lieber die beiden Geräte direkt in FHEM nutzen würde mit bekannten Vorzügen wie VCCU und WLAN-IOs :)

Da werden mir auch sicherlich andere beipflichten, s. z.B. auch hier:
https://forum.fhem.de/index.php/topic,73954.msg961491.html#msg961491 (https://forum.fhem.de/index.php/topic,73954.msg961491.html#msg961491)
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: weini am 22 März 2020, 11:05:42
Habe mich gerade mit dem Thema herumgeschlagen und fände eine besser integrierte Lösung echt super, siehe: https://forum.fhem.de/index.php/topic,109230.0.html (https://forum.fhem.de/index.php/topic,109230.0.html)
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: kpwg am 22 März 2020, 19:51:07
Ich habe das mittlerweile anders gelöst, da auch HmIP Geräte eingezogen sind: der Raspi hat einen HM-MOD-RPI-PCB bekommen und ist zusätzlich mit debmatic bestückt. Für "normales" HomeMatic nutze ich noch einen CUL mit a-culfw (was übrigens sehr gut läuft), einige neue Gerätehole ich mit der CCU von debmatic ins FHEM. Klar tut man sich damit eine weitere Baustelle auf, aber nach anfänglicher Frickelei läuft das Ganze super. Alex hat das sehr gut dokumentiert, so das man aus dem Stand die Sache ans Laufen bekommt. Damit steht auch das volle Sprektrum von Jeromes Ideen zur Verfügung, man muss nichts mehr frickeln oder softwareseitig modifizieren.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 22 März 2020, 20:33:59
Wie ich bereits geschrieben habe, RaspberryMatic habe ich bereits im Betrieb (ist genauer gesagt eine piVCCU auf demselben Raspi, auf dem auf FHEM läuft, mit einem HM-MOD-RPI-PCB). Wäre aber für die HB-Geräte nur eine Notlösung, da, wie gesagt, bei mir die Funkabdeckung nur mit einem HM-MOD-RPI-PCB schlechter ist als bei FHEM mit mehreren HM-WLAN-GWs. Außerdem gibt es immer wieder Probleme mit HMCCU, wenn der Raspi mal wieder neu gestartet werden muss, absichtlich oder nicht. Wenn keine Hoffnung auf die Einbindung über CUL_HM besteht, würde ich die Lösung irgendwann mal in Angriff nehmen, aber die Hoffnung stirbt zuletzt :)
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: kpwg am 23 März 2020, 09:03:10
Zitat von: Horti am 22 März 2020, 20:33:59
Wie ich bereits geschrieben habe, RaspberryMatic habe ich bereits im Betrieb
Stimmt.. da habe ich nur die Hälfte gelesen und war in Gedanken schon wieder woanders.  ::)
Zitat...bei mir die Funkabdeckung nur mit einem HM-MOD-RPI-PCB schlechter ist als bei FHEM mit mehreren HM-WLAN-GWs.
Mit externen Antennen kann man noch ein wenig optimieren, aber viel möglich ist da oft nicht. Wirklich besser wird es dann nur, wenn der RasPi samt kurzer Antennenkabel und externer Antenne einen exponierten Standort bezieht. Leider geht das nicht immer so, wie man es gerne hätte.
ZitatAußerdem gibt es immer wieder Probleme mit HMCCU, wenn der Raspi mal wieder neu gestartet werden muss, absichtlich oder nicht.
Das ist lösbar: https://forum.fhem.de/index.php/topic,104132.msg993434.html#msg993434 (https://forum.fhem.de/index.php/topic,104132.msg993434.html#msg993434)
Mit ein paar Anpassungen für die piVCCU sollte das machbar sein. Das Problem besteht darin, das FHEM bereits die Schnittstellen der CCU anspricht, welche noch nicht vollständig gestartet ist. Das "Gebilde" kommt dann aus dem Tritt, lässt sich nur mit shutdown restart wiederbeleben. Das delay beim HMCCU Modul wirkt dann auch nicht.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: ext23 am 23 März 2020, 12:59:21
Ich hab auch ein HB-DIS-EP-42BW zusammengebaut, weiß jemand wie ich da jetzt über den Kanal 11 irgendwelche Texte auf das Display bekomme? Von der CCU klappt es mit den Programmen aber ich wollte das von FHEM aus machen.

/Daniel
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: papa am 23 März 2020, 14:43:27
Das geht bestimmt, da ja Jerome nichts neues erfunden hat. Aber ich weiß nicht, wie das aus FHEM anzusteuern ist. Ich habe auch kein entsprechendes Geräte und damit auch wenig Lust, mich damit zu beschäftigen. Bin aber wie immer gerne bereit Unterstützung zu geben.
Man müsste sich halt mal ansehen, wie die originalen Geräte mit Text in FHEM verarbeitet werden.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 23 März 2020, 23:03:51
Man kriegt das Ding (HB-DIS-EP-42BW) mit Sicherheit über HMCCU angesteuert, aber schön ist es für eingefleischte FHEM-HMler bestimmt nicht. Ich könnte mir vorstellen, dass der Aufwand sich für martinp876 in Grenzen halten würde, da das Gerät nach Jeromes Aussage irgendwo im orangenen Forum stark an HM-Dis-WM55 (glaube ich zumindest) angelehnt ist, und HM-Dis-WM55 von FHEM unterstützt wird. Die anderen HB-Geräte sind ja deutlich einfacher gestrickt. Zumindest was HB-DIS-EP-42BW betrifft, würde ich auch gerne als Alpha-Tester zur Verfügung stehen. Aber auch ein "Nein" wäre natürlich eine Antwort, dann wüsste ich wenigstens, dass Warten keinen Sinn mehr macht und ich mich an HMCCU dran machen müsste. ;D
Eine weitere Möglichkeit, Logik direkt innerhalb der CCU zu haben, will ich erst gar nicht in Betracht ziehen, bis jetzt habe ich die CCU nur als eine Art IO-Device betrachtet.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: papa am 24 März 2020, 08:17:45
Ich habe mal einfach alles vom Dis-WM55 zusammenkopiert. Trage mal folgendes in die HMConfig_AskSinPPSustom.pm ein:

$HMConfig::culHmModel{"F343"} = {name=>"HB-DIS-EP-42BW",st=>'display',cyc=>'',rxt=>'c',lst=>'1,p',chn=>"Dis:1:11"};
$HMConfig::culHmRegModel{"HB-DIS-EP-42BW"} = { intKeyVisib     =>1,transmDevTryMax =>1
                         ,powerSupply     =>1,localResDis     =>1,wakeupBehavior  =>1
                         ,wakeupBehavMsg  =>1,wakeupBehavMsg_R=>1,statMsgTxtAlign =>1
                         ,displayInvert   =>1};
$HMConfig::culHmChanSets{"HB-DIS-EP-42BW01"} = { 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-DIS-EP-42BW02"} = { 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-DIS-EP-42BW03"} = { 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-DIS-EP-42BW04"} = { 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-DIS-EP-42BW05"} = { 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-DIS-EP-42BW06"} = { 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-DIS-EP-42BW07"} = { 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-DIS-EP-42BW08"} = { 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-DIS-EP-42BW09"} = { 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-DIS-EP-42BW10"} = { 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-DIS-EP-42BW11"} = { 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-DIS-EP-42BW01"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW02"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW03"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW04"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW05"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW06"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW07"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW08"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW09"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW10"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-DIS-EP-42BW11"} = $HMConfig::culHmRegType{remote};


Keine Ahnung, ob das funktioniert. Vor allem ist mir nicht klar, wofür der Channel 11 ist.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Tom Major am 25 März 2020, 22:36:22
ich hatte letztes Jahr einen ScriptHelper geschrieben um Texte möglichst einfach aus HM Script ans Display zu senden
https://github.com/TomMajor/SmartHome/blob/master/HB-Dis-EP-42BW/Script_Helper/epaper42.tcl (https://github.com/TomMajor/SmartHome/blob/master/HB-Dis-EP-42BW/Script_Helper/epaper42.tcl)

Eventuell reicht es, die Zeilen

append rega_cmd "dom.GetObject('BidCos-RF.$SERIAL:11.SUBMIT').State('$displayCmd');"
array set regaRet [rega_script $rega_cmd]


durch ein entsprechendes Interface bei FHEM zum Senden von raw bytes (falls vorhanden?) zu ersetzen, in displayCmd steht die payload drin die ans Display geht.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 06 April 2020, 17:35:30
Ich habe am Wochenende ein wenig mit dem HB-DIS-EP-42BW und FHEM rumgespielt, musste aber ziemlich schnell die Versuche einstellen. Anlernen liess sich das Ding ohne Weiteres an FHEM und wurde sofort richtig angelegt inkl. der 11 Kanäle. Tastendrücke wurden erkannt und im Event Monitor angezeigt. Doch damit hörte es auch schon auf. "getConfig" konnte kein einziges Mal abgeschlossen werden, ganz egal wie oft ich den Config-Button betätigt habe. Auch ein
set HB-DIS-EP-42BW_01 text Fenster\_auf Fenster\_zu
wie im Wiki zu HM-Dis-WM55 beschrieben, schien nichts zu bewirken, auch die Ausgabe auf dem Display wollte mir nicht gelingen, wobei ich hier nicht ausschließen kann, dass ich auch noch Fehler eingebaut hatte.

Leider war ich relativ blind unterwegs, denn mein HB-DIS-EP-42BW hat keine LED verbaut und auch serielle Ausgaben kann ich nicht ohne größere Modifikationen lesen. Am Ende wusste ich nicht, ob die mangelhafte Kommunikation nun an mir, FHEM, oder dem möglicherweise fehlehaftem CC1101 Modul des HB-DIS-EP-42BW lag. Aber nachdem ich den HB-DIS-EP-42BW wieder an der CCU angelernt hatte, lief es wieder ohne Probleme und FHEM Event Monitor füllte sich mit der Kommunikation zwischen der CCU und dem HB-DIS-EP-42BW.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: frank am 06 April 2020, 17:55:30
du nutzt ein wlan io?
versuch es mit lan oder direkt am gpio.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 06 April 2020, 18:15:46
Nein, in diesem Fall war es eine als LAN-GW gemoddete CCU2.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 09 April 2020, 21:08:02
Hallo,

dank Papa's großartiger "alles vom Dis-WM55 zusammenkopiert" Aktion war ich heute in der Lage, mit Anpassungen, meinen frisch zusammengebauten HB-RC-12-EP unter FHEM in Betrieb zu nehmen!

Vorgehensweise:

Im Verzeichniss "/opt/fhem/FHEM/" eine Datei mit dem Namen "HMConfig_HMHB.pm" erstellen Ich denke es ist egal wie die Datei heißt, wenn "HMConfig" davor steht)

Mit diesen Inhalt, evtl. die Werte "F345" anpassen ( F345 = Farbiges Display, F346 = Mono Display ) und "HB-RC-12-EP-C" / "HB-RC-12-EP-BW":

$HMConfig::culHmModel{"F345"} = {name=>"HB-RC-12-EP-C",st=>'display',cyc=>'',rxt=>'c',lst=>'1,p',chn=>"Dis:1:11"};
$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::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};


Fhem neu starten mit "shutdown restart", bei Docker den kompletten Container einmal durchtreten.

Danach kann man die Fernbedienung ganz normal mit FHEM pairen und einrichten nach
https://wiki.fhem.de/wiki/HM-Dis-WM55_Funk_Statusanzeige (https://wiki.fhem.de/wiki/HM-Dis-WM55_Funk_Statusanzeige)
https://wiki.fhem.de/wiki/HM-RC-12_Funkfernbedienung_12_Tasten (https://wiki.fhem.de/wiki/HM-RC-12_Funkfernbedienung_12_Tasten)


Vielen Dank an Papa!!!
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 09 April 2020, 22:10:17
Das sind ja gute Nachrichten! Ich frage mich dann wirklich, woran es bei mir gelegen haben mag. Hast Du denn noch irgendwas an papas pm-Datei geändert, außer der Modell-ID und -Bezeichnung?

Oder gibt es zw. HB-RC-12-EP und HB-DIS-EP-42BW irgendeinen Unterschied, den ich noch nicht bedacht habe?
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 09 April 2020, 22:12:30
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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag 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?
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 09 April 2020, 22:23:15
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...
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag 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?
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 09 April 2020, 22:54:01
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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 10 April 2020, 09:41:05
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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 10 April 2020, 09:43:06
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 (https://github.com/TomMajor/SmartHome/tree/master/PCB/HB-RC-12-EP#displaytest)

Um die Hardware zu Testen, meine ich.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: frank am 10 April 2020, 09:52:43
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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 10 April 2020, 10:16:33
@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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 10 April 2020, 10:23:01
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};
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 10 April 2020, 14:48:05
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 (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 (https://forum.fhem.de/index.php/topic,109254.msg1039235.html#msg1039235) 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
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 10 April 2020, 21:21:36
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?
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 11 April 2020, 13:18:30
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 ...
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: papa am 11 April 2020, 14:14:17
Kommt denn irgendwas auf der seriellen Konsole ?
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 11 April 2020, 15:09:30
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.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 11 April 2020, 18:09:23
Habe einen kleinen Erfolg zu verzeichnen, die Attribute "Icon, Icon Farbig, Text Fett, Text Farbig, Linie nach Zeile" können über regBulk gesetzt werden.
Wie hier im Screenshot zu sehen ist: https://homematic-forum.de/forum/viewtopic.php?f=76&t=50160&p=503115#p503115 (https://homematic-forum.de/forum/viewtopic.php?f=76&t=50160&p=503115#p503115)

Beispiel, Icon mit der ID 3 setzen:
set HM_F34502_Dis_01 regBulk 01 92:03

01 --> Reglist
92 --> Register
03 --> ID des Icons

Beispiel, Linie nach Zeile:
set HM_F34502_Dis_01 regBulk 01 90:01

01 --> Reglist
90 --> Register
01 --> Register

Hier der aufbereitet Ausschnitt ausm SRC:
bool showLine (uint8_t value) const { return this->writeRegister(0x90, 0x01, 0, value & 0xff); }
    bool showLine () const { return this->readRegister(0x90, 0x01, 0, false); }

    bool textColored (uint8_t value) const { return this->writeRegister(0x90, 0x02, 0, value & 0xff); }
    bool textColored () const { return this->readRegister(0x90, 0x02, 0, false); }

    bool iconColored (uint8_t value) const { return this->writeRegister(0x90, 0x04, 0, value & 0xff); }
    bool iconColored () const { return this->readRegister(0x90, 0x04, 0, false); }

    bool textBold (uint8_t value) const { return this->writeRegister(0x90, 0x08, 0, value & 0xff); }
    bool textBold () const { return this->readRegister(0x90, 0x08, 0, false); }

    bool iconNumber (uint8_t value) const { return this->writeRegister(0x92, value & 0xff); }
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 12 April 2020, 12:06:05
Die Konfigdatei hat sich auch ein wenig geändert, hatte keinen "text" Befehl an den Tastern 10-12:
$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-C0A"} = { 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-C0B"} = { 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-C0C"} = { 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-C0A"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C0B"} = $HMConfig::culHmRegType{remote};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C0C"} = $HMConfig::culHmRegType{remote};
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 23 April 2020, 23:36:03
Guten Abend,

kann nun auch einen Erfolg mit meinem HB-DIS-EP-42BW vermelden. Nachdem ich den FrequenzTest-Scetch für den 1284p angepasst und laufen lassen habe, kann nun auch mein FHEM mit dem Ding kommunizieren. (Komischerweise habe ich Berichte gelesen, dass CCU eher Probleme mit den fehlerhaften CC1101-Modulen hatte und FHEM toleranter war, bei mir war es genau umgekehrt)

Nun ja, richtig weit bin ich damit noch nicht, Pairing und getConfig geht, ich kann nun auch mit
set HB-DIS-EP-42BW_01 text Fenster\_auf Fenster\_zu
Fixtexte setzen. Wie man andere Formattierungen anpasst, hat ja maclovlin mit seinen Register-Hacks schon rausgefunden, aktuell kämpfe ich aber noch mit der Anzeige von Texten, das Perl-Script aus dem Wiki-Artikel (https://wiki.fhem.de/wiki/HM-Dis-WM55_Funk_Statusanzeige#99_myUtils) zu dem verwandten HM-Dis-WM55 ist für mich noch ein böhmisches Dorf. Aber vielleicht können wir ja auch TomMajors Script hierfür irgendwie adaptieren.

P.S.: ohne viel Ahnung von tcl und rega zu haben dürften doch nur die Zeilen 179 und 180 im Script von TomMajor (https://github.com/TomMajor/SmartHome/blob/master/HB-Dis-EP-42BW/Script_Helper/epaper42.tcl#L179) CCU-spezifisch sein und sollten sich einfach an FHEM adaptieren lassen?  ??? Naja, leider habe ich von Perl nicht viel mehr Ahnung, aber ich vermute, dass zumindest die Zeilen
$HMConfig::culHmChanSets{"HB-DIS-EP-42BW01"} = { 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-..." };

noch angepasst werden müssen?
Für mich macht zumindest "[long|short|help]" und "color1" keinen Sinn, auch wenn "[long|short|help]" optional sein dürfte. Wenn mir jemand folgen kann und schneller beim Programmieren/Lernen als ich ist, wäre ich für Tips/Vorschläge sehr dankbar  ;D
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 24 April 2020, 21:42:41
Guten Abend,

ich habe gerade mit meinen neu gewonnenen Kenntnissen noch mal den ganzen Thread durchgelesen, und stelle fest, dass meine Erkenntnisse gar nicht so neu sind. So schrieb ja schon Tom Major:

Zitat von: Tom Major am 25 März 2020, 22:36:22
ich hatte letztes Jahr einen ScriptHelper geschrieben um Texte möglichst einfach aus HM Script ans Display zu senden
https://github.com/TomMajor/SmartHome/blob/master/HB-Dis-EP-42BW/Script_Helper/epaper42.tcl (https://github.com/TomMajor/SmartHome/blob/master/HB-Dis-EP-42BW/Script_Helper/epaper42.tcl)

Eventuell reicht es, die Zeilen

append rega_cmd "dom.GetObject('BidCos-RF.$SERIAL:11.SUBMIT').State('$displayCmd');"
array set regaRet [rega_script $rega_cmd]


durch ein entsprechendes Interface bei FHEM zum Senden von raw bytes (falls vorhanden?) zu ersetzen, in displayCmd steht die payload drin die ans Display geht.

und maclovlin
Zitat von: maclovlin am 10 April 2020, 21:21:36
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?

"set displayWM" passt schlicht nicht zu den beiden Geräten HB-DIS-EP-42BW und HB-RC-12-EP. Genau so wie es ein "set displayWM" für HM-Dis-WM55 und "set displayEP" für HM-Dis-EP-WM55 gibt, brauchen wir noch ein set-Befehl für die beiden neuen Device-Typen oder vielleicht auch je Device-Typ. Aber im Prinzip muss man ja "nur" das Script von Tom Major von tcl nach perl konvertieren und die passende Anweisung für die Übermittlung des Befehls per Funk aufrufen. Ich habe mir mal, größenwahnsinnig wie ich bin, dazu CUL_HM.pl angeschaut und sofort jegliche Hoffnung verloren, da je durchzusteigen. martinp876, wenn Du das lesen solltest, bitte schau mal, ob Du das nicht einbauen kannst. Wie gesagt, eigentlich läuft das Display bei mir mit HMCCU, aber mit CUL_HM wäre das noch viel cooler 8)
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: papa am 24 April 2020, 21:58:41
Es gint nur ein "normales" display Kommando bei der HM-RC-19 - vielleicht ist das ja kompatibel. Ich denke Jermoe hat sich da nichts neues ausgedacht, sondern auf etwas bestehendes gesetzt.
display        => "-text- [comma|no] [unit] [off|1|2|3] [off|on|slow|fast] -symbol-"
Aber wirkliche Ahnung habe ich davon nicht.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: maclovlin am 26 April 2020, 15:49:49
Tach,

ich habe es aufgegeben...

und bin auf Debmatic mit HMCCU umgestiegen.

Die Erfahrung ist recht positiv, subjektiv scheinen die Homemmatic Geräte mit Debmatic problemloser zu laufen, z.B das pairing.

Da ich mehr Geräte von Jerome habe, bleibe ich vorerst bei dieser Lösung.
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Horti am 26 April 2020, 21:22:59
Schade, ein Mitstreiter weniger :(

Mit meiner piVCCU läuft das Ding ja auch ohne Probleme, nur die Funkabdeckung ist halt bescheiden, weil ich nicht sämtliche IO-Devices doppelt haben will. Allerdings habe ich das Display per HMCCU gar nicht in FHEM eingebunden und rufe nur das tcl-Script von Tom Major per HMCCU auf. Funktioniert prima, aber die Tasterkanäle lassen sich so nicht nutzen.

Aber ich habe die Hoffnung noch nicht ganz aufgegeben, vielleicht schaffe ich es noch, dem Display FHEM beizubringen oder umgekehrt :)
Titel: Antw:Unterstützung Homematic HB-Geräte
Beitrag von: Loctotex am 16 Juli 2020, 19:40:55
Hallo Zusammen.
Ich hab das bei mir wie folgt geändert:

# HB-RC-12-EP
$HMConfig::culHmRegDefine{"iconHBRC"}         = {a=>146,   s=>1,   l=>1,  min=>00, max=>40,   c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"Icon"};
$HMConfig::culHmRegDefine{"showLineHBRC"}     = {a=>144.0, s=>0.1, l=>1,  min=>0,  max=>1,    c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"show Line"};
$HMConfig::culHmRegDefine{"textColoredHBRC"}  = {a=>144.1, s=>0.1, l=>1,  min=>0,  max=>1,    c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"text colored"};
$HMConfig::culHmRegDefine{"iconColoredHBRC"}  = {a=>144.2, s=>0.1, l=>1,  min=>0,  max=>1,    c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"Icon colored"};
$HMConfig::culHmRegDefine{"textBoldHBRC"}     = {a=>144.3, s=>0.1, l=>1,  min=>0,  max=>1,    c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"text Bold"};
$HMConfig::culHmRegDefine{"invertDisplayHBRC"}= {a=>6.0,   s=>0.1, l=>0,  min=>0,  max=>1,    c=>'',   p=>'n', f=>'',  u=>'',    d=>0,  t=>"invert Display"};


for my $readingRemote0 (keys %{$HMConfig::culHmRegType{remote}}) {
    $HMConfig::culHmRegType{custom_remoteHBRC}{$readingRemote0} = 1;
}
$HMConfig::culHmRegType{custom_remoteHBRC}{iconHBRC} = 1;
$HMConfig::culHmRegType{custom_remoteHBRC}{showLineHBRC} = 1;
$HMConfig::culHmRegType{custom_remoteHBRC}{textColoredHBRC} = 1;
$HMConfig::culHmRegType{custom_remoteHBRC}{iconColoredHBRC} = 1;
$HMConfig::culHmRegType{custom_remoteHBRC}{textBoldHBRC} = 1;

$HMConfig::culHmModel{"F345"} = {name=>"HB-RC-12-EP-C",st=>'display',cyc=>'',rxt=>'c',lst=>'1',chn=>"Dis:1:12"};
$HMConfig::culHmRegModel{"HB-RC-12-EP-C"} = { invertDisplayHBRC => 1};
$HMConfig::culHmChanSets{"HB-RC-12-EP-C01"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]",
                                                text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C02"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C03"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C04"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C05"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C06"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C07"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C08"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C09"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C0A"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C0B"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };
$HMConfig::culHmChanSets{"HB-RC-12-EP-C0C"} = { peerChan  =>"-btnNumber- -actChn- ... single [set|unset] [actor|remote|both]"
                        ,text      =>"-txt1- -txt2-..." };


$HMConfig::culHmRegChan {"HB-RC-12-EP-C01"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C02"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C03"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C04"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C05"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C06"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C07"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C08"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C09"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C0A"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C0B"} = $HMConfig::culHmRegType{custom_remoteHBRC};
$HMConfig::culHmRegChan {"HB-RC-12-EP-C0C"} = $HMConfig::culHmRegType{custom_remoteHBRC};


Läuft bei mir bis jetzt ganz gut. Kann gern getestet werden.