Neues Modul HMCCU für Homematic CCU

Begonnen von zap, 19 August 2015, 19:45:30

Vorheriges Thema - Nächstes Thema

zap

#1140
Ich habe gerade die Version 3.8 eingecheckt. Es gibt einige wichtige Änderungen, die u.U. dazu führen, dass einige Attribute nicht mehr korrekt funktionieren:

  • HMCCUDEV,HMCCUCHN: In den Attributen ccureadingfilter und ccureadingname wurde bisher ',' für die Trennung mehrerer Filter bzw. Regeln verwendet. Statt ',' muss nun ';' verwendet werden.
  • HMCCU: Das Attribut substdefaults wurde durch ccudef-substitute ersetzt.

Neu in Version 3.8:

Default-Attribute im I/O Device:

Einführung von Default-Attributen für Reading-/Datapoint-Filter, Readingnames, Ersetzungen (Substitute) und Readingname-Formate im jeweiligen I/O Device. Die Default-Werte werden an eventuell in den Einzel-Devices definierte Attribute angehängt (außer ccudef-readingformat)!

  • ccudef-readingfilter : legt den Default Filter für alle HMCCUDEV/HMCCUCHN Devices fest.
  • ccudef-readingname : legt Ersetzungsregeln für Readingnames für alle HMCCUDEV/HMCCUCHN Devices fest.
  • ccudef-substitute: legt Ersetzungsregeln für Datenpunkt-Werte für alle HMCCUDEV/HMCCUCHN Devices fest.
  • ccudef-readingformat : legt das Format der Readingnamen für alle HMCCUDEV/HMCCUCHN Devices fest (z.B. name oder datapoint). Dieser Default-Wert gilt nicht für virtuelle Gruppen Devices (z.B. Heizungsgruppen). Hier wird immer 'name' verwendet, da sich Datenpunkte überschneiden können.

Entsprechend wurde HMCCUConf.pm um Templates für eine CCU2 erweitert. Dort sind nun Vorgaben für die o.g. 3 Attribute definiert, die mit dem Befehl "set defaults" im I/O Device aktiviert werden können. Durch diese Templates werden Readings generiert, die (weitgehend) mit CUL_HM kompatibel sind.

Unterstützung OSRAM Lightify Addon der CCU2 (experimentell):

HMCCU unterstützt nun das Adressierungsschema von OSRAM Lampen ("OL-"), die in der CCU2 über das OSRAM Lightify Addon eingebunden sind. Bitte mal testen, ob alles funktioniert, insbesondere die automatische Aktualisierung von Readings.

HMScript mit Parametern:

Bei dem Befehl "set hmscript" im I/O Device können nun Parameter an das auszuführende Homematic Script übergeben werden. Im folgenden Beispiel gibt das Script die Datenpunkte eines Kanals aus. Der Kanalname wird als Parameter übergeben:


string sDPId;
object oChannel = dom.GetObject ("$CCUDEV");
foreach(sDPId, oChannel.DPs().EnumUsedIDs())                                   
{
   object oDP = dom.GetObject(sDPId);
   WriteLine (oDP.Name());
}


Ausführung, wenn das Script als /opt/fhem/partest.scr gespeichert ist:


set myccu hmscript /opt/fhem/partest.scr dump CCUDEV=MyDevChannel


Der optionale Parameter 'dump' sorgt für die Ausgabe im FHEM WebGUI.

Sonstiges:


  • HMCCUCHN Devices unterstützen nun ebenfalls den Befehl "get deviceinfo"
  • HMCCU ermittelt den Typ von Kanälen und speichert ihn im Internal chntype (nur bei HMCCUCHN Devices)
  • Ein Fehler beim Befehl "set rpcserver restart" wurde behoben

Für Interessierte zum Schluss noch die neuen Default-Attribute:


   "CCU2" => {
   _description     => "HomeMatic CCU2",
   "ccudef-readingfilter" => '^(LOW_?BAT|UNREACH)$',
   "ccudef-readingformat" => 'datapoint',
   "ccudef-readingname"   => '^(.+\.)?AES_KEY$:sign;^(.+\.)?LOW_?BAT$:battery;^(.+\.)?UNREACH$:Activity;^(.+\.)?TEMPERATURE$:+measured-temp;^(.+\.)?SET_TEMPERATURE$:+desired-temp;^(.+\.)?HUMIDITY$:+humidity;^(.+\.)?LEVEL$:+pct;^(.+\.)?CONTROL_MODE$:+controlMode',
   "ccudef-substitute"    => 'AES_KEY!(0|false):off,(1|true):on;LOWBAT,LOW_BAT!(0|false):ok,(1|true):low;UNREACH!(0|false):alive,(1|true):dead;MOTION!(0|false):noMotion,(1|true):motion;DIRECTION!0:stop,1:up,2:down,3:undefined;WORKING!0:false,1:true;INHIBIT!(0|false):unlocked,(1|true):locked'
   }


Einige der Vorschläge für die CUL_HM Kompatibilität konnte ich nicht umsetzen, da EQ-3 hier insbesondere bei der gemischten Verwendung von Nicht-IP mit HMIP Inkonsistenzen eingebaut hat. Insofern bleibt es jedem selbst überlassen, die Default-Attribute nach eigenen Wünschen anzupassen.
2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

Yil

#1141
Hi zap,

die default-Werte an der HMCCU sind definitiv eine gute Entwicklung und machen das Arbeiten mit dem Modul an vielen Stellen leichter! Danke dafür.

eine Frage zum Attribut ccureadingfilter: hier habe ich keine Kommas als Trenner, sondern '|' -> also z.B.: (LOWBAT|STATE). Was ändert sich hier?

VG Yil
HM CCU3 und HCU mit ca. 50 HM-Komponenten inkl. Bausätzen
fhem auf RPi mit Sonos, EnOcean-CUL, ZWAVE-CUL und Bluetooth,
HUE, UniFi

zap

Zitat von: Yil am 21 Januar 2017, 14:13:07
die default-Werte an der HMCCU sind definitiv eine gute Entwicklung und machen das Arbeiten mit dem Modul an vielen Stellen leichter! Danke dafür.

eine Frage zum Attribut ccureadingfilter: hier habe ich keine Kommas als Trenner, sondern '|' -> also z.B.: (LOWBAT|STATE). Was ändert sich hier?

Mit der Einführung der Default-Attribute habe ich konsequenterweise auch aus den Templates die Datenpunkte LOWBAT, UNREACH usw entfernt.

Bei ccureadingfilter musst Du in Deinem Fall nichts ändern, denn '|' ist kein Trenner sondern Teil eines regulären Ausdrucks. Hier ein Beispiel, bei dem etwas geändert werden müsste:

Alt (Liste von 2 Filtern durch Komma getrennt): ccureadingfilter LEVEL,^PRESS.*

Neu (Komma durch Semikolon ersetzt): ccureadingfilter LEVEL;^PRESS.*

2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

kjmEjfu

#1143
Hi,

ich stehe heute vor einem seltsamen Problem - vielleicht habe ich aber auch nur irgendwo auf den vielen Seiten zu dem Thema etwas überlesen.
Und zwar versuche ich eine HmIP-SMI  in FHEM hinzuzufügen. In der CCU2 ist bereits angelernt und funktioniert wie gewünscht.

Dementsprechend habe ich ein

get d_ccu devicelist

gemacht.
Anschließend versuche ich ein

get d_ccu deviceinfo HmIP-SMI

Bekomme nun aber ein Popup mit

HMCCU: d_ccu Invalid name or address


und danach steht der RPC Server auf Error.

Stoppen, Neustart und erneuter Versuch bringt das gleiche Resultat.

So sieht das im Logfile aus:

2017.01.21 17:51:06 0: RPC server(s) starting
2017.01.21 17:51:06 0: CCURPC: Callback server created listening on port 7420
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for events
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for new devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for deleted devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for modified devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for replaced devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for readded devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for list devices
2017.01.21 17:51:06 0: CCURPC: Callback server created listening on port 14702
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for events
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for new devices
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for deleted devices
2017.01.21 17:51:06 1: CCURPC: CB2010 Adding callback for event query
2017.01.21 17:51:06 0: CCURPC: CB2010 Entering server loop
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for modified devices
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for replaced devices
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for readded devices
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for list devices
2017.01.21 17:51:06 1: CCURPC: CB9292 Adding callback for event query
2017.01.21 17:51:06 0: CCURPC: CB9292 Entering server loop
2017.01.21 17:51:11 0: HMCCU: Received SL event. RPC server CB2010 enters server loop
2017.01.21 17:51:18 1: HMCCU: Registering callback http://192.168.178.35:7420/fh2010 with ID CB2010 at http://192.168.178.47:2010/
2017.01.21 17:51:18 1: HMCCU: RPC callback with URL http://192.168.178.35:7420/fh2010 initialized
2017.01.21 17:51:19 1: CCURPC: CB2010 ListDevices. Sending init to HMCCU
2017.01.21 17:51:19 2: CCURPC: CB2010 NewDevice received 6 device specifications
2017.01.21 17:51:23 0: HMCCU: Received IN event. RPC server CB2010 initialized.
2017.01.21 17:51:23 0: HMCCU: Received SL event. RPC server CB9292 enters server loop
2017.01.21 17:51:30 1: HMCCU: Registering callback http://192.168.178.35:14702/fh9292 with ID CB9292 at http://192.168.178.47:9292/groups
2017.01.21 17:51:31 1: CCURPC: CB9292 ListDevices. Sending init to HMCCU
2017.01.21 17:51:40 1: HMCCU: RPC callback with URL http://192.168.178.35:14702/fh9292 initialized
2017.01.21 17:51:45 0: HMCCU: Received IN event. RPC server CB9292 initialized.
2017.01.21 17:51:46 2: HMCCU: Updated devices. Success=1 Failed=0
2017.01.21 17:51:46 1: HMCCU: All RPC servers running
2017.01.21 17:53:06 1: HMCCU: d_ccu Invalid name or address


Und hier noch das List vom Device

Internals:
   CCUNum     1
   Clients    :HMCCUDEV:HMCCUCHN:
   DEF        192.168.178.47
   DelDevices 0
   DevCount   58
   NAME       d_ccu
   NR         187
   NTFY_ORDER 50-d_ccu
   NewDevices 0
   RPCPID     1431,1432
   RPCPRC     internal
   RPCState   running
   STATE      running/Error
   TYPE       HMCCU
   ccutype    CCU2
   host       192.168.178.47
   version    3.7
   Readings:
     2016-12-25 16:23:41   batterycount    1
     2016-12-25 16:23:41   batterylist     no match
     2016-12-25 16:23:41   batterymatch    0
     2016-12-25 16:23:41   batterystate    no
     2017-01-21 17:51:45   rpcstate        running
     2017-01-21 17:53:05   state           Error
   Hmccu:
     evtime     1485017954
     evtimeout  0
     localaddr  192.168.178.35
     rpccount   2
     rpcinit    2
     updatetime 0
     Adr:
       Hm-fk_sz_1:
         address    0000D569A1ABC7
         addtype    dev
         valid      1
       Hm-fk_sz_1:0:
         address    0000D569A1ABC7:0
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:
         address    BidCoS-RF
         addtype    dev
         valid      1
       Hm-rcv-50 bidcos-rf:0:
         address    BidCoS-RF:0
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:1:
         address    BidCoS-RF:1
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:10:
         address    BidCoS-RF:10
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:11:
         address    BidCoS-RF:11
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:12:
         address    BidCoS-RF:12
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:13:
         address    BidCoS-RF:13
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:14:
         address    BidCoS-RF:14
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:15:
         address    BidCoS-RF:15
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:16:
         address    BidCoS-RF:16
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:17:
         address    BidCoS-RF:17
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:18:
         address    BidCoS-RF:18
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:19:
         address    BidCoS-RF:19
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:2:
         address    BidCoS-RF:2
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:20:
         address    BidCoS-RF:20
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:21:
         address    BidCoS-RF:21
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:22:
         address    BidCoS-RF:22
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:23:
         address    BidCoS-RF:23
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:24:
         address    BidCoS-RF:24
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:25:
         address    BidCoS-RF:25
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:26:
         address    BidCoS-RF:26
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:27:
         address    BidCoS-RF:27
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:28:
         address    BidCoS-RF:28
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:29:
         address    BidCoS-RF:29
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:3:
         address    BidCoS-RF:3
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:30:
         address    BidCoS-RF:30
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:31:
         address    BidCoS-RF:31
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:32:
         address    BidCoS-RF:32
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:33:
         address    BidCoS-RF:33
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:34:
         address    BidCoS-RF:34
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:35:
         address    BidCoS-RF:35
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:36:
         address    BidCoS-RF:36
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:37:
         address    BidCoS-RF:37
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:38:
         address    BidCoS-RF:38
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:39:
         address    BidCoS-RF:39
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:4:
         address    BidCoS-RF:4
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:40:
         address    BidCoS-RF:40
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:41:
         address    BidCoS-RF:41
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:42:
         address    BidCoS-RF:42
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:43:
         address    BidCoS-RF:43
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:44:
         address    BidCoS-RF:44
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:45:
         address    BidCoS-RF:45
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:46:
         address    BidCoS-RF:46
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:47:
         address    BidCoS-RF:47
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:48:
         address    BidCoS-RF:48
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:49:
         address    BidCoS-RF:49
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:5:
         address    BidCoS-RF:5
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:50:
         address    BidCoS-RF:50
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:6:
         address    BidCoS-RF:6
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:7:
         address    BidCoS-RF:7
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:8:
         address    BidCoS-RF:8
         addtype    chn
         valid      1
       Hm-rcv-50 bidcos-rf:9:
         address    BidCoS-RF:9
         addtype    chn
         valid      1
       Hmip-swdo 0000d569a1abc7:1:
         address    0000D569A1ABC7:1
         addtype    chn
         valid      1
       Hmip-smi 0009156993c0bb:
         address    0009156993C0BB
         addtype    dev
         valid      1
       Hmip-smi 0009156993c0bb:0:
         address    0009156993C0BB:0
         addtype    chn
         valid      1
       Hmip-smi 0009156993c0bb:1:
         address    0009156993C0BB:1
         addtype    chn
         valid      1
     Agg:
       Battery:
         fcoll      alias
         fcond      any
         fdflt      no match
         felse      no
         fexcl
         fexpr      Homematic
         fpref      battery
         fread      (LOWBAT|LOW_BAT)
         ftrue      yes
         ftype      room
     Dev:
       0000d569a1abc7:
         addtype    dev
         channels   2
         interface  HmIP-RF
         name       HM-FK_SZ_1
         type       HMIP-SWDO
         valid      1
       0000d569a1abc7:0:
         addtype    chn
         channels   1
         name       HM-FK_SZ_1:0
         valid      1
       0000d569a1abc7:1:
         addtype    chn
         channels   1
         name       HMIP-SWDO 0000D569A1ABC7:1
         valid      1
       0009156993c0bb:
         addtype    dev
         channels   2
         interface  HmIP-RF
         name       HmIP-SMI 0009156993C0BB
         type       HmIP-SMI
         valid      1
       0009156993c0bb:0:
         addtype    chn
         channels   1
         name       HmIP-SMI 0009156993C0BB:0
         valid      1
       0009156993c0bb:1:
         addtype    chn
         channels   1
         name       HmIP-SMI 0009156993C0BB:1
         valid      1
       Bidcos-rf:
         addtype    dev
         channels   51
         interface  BidCos-RF
         name       HM-RCV-50 BidCoS-RF
         type       HM-RCV-50
         valid      1
       Bidcos-rf:0:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:0
         valid      1
       Bidcos-rf:1:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:1
         valid      1
       Bidcos-rf:10:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:10
         valid      1
       Bidcos-rf:11:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:11
         valid      1
       Bidcos-rf:12:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:12
         valid      1
       Bidcos-rf:13:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:13
         valid      1
       Bidcos-rf:14:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:14
         valid      1
       Bidcos-rf:15:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:15
         valid      1
       Bidcos-rf:16:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:16
         valid      1
       Bidcos-rf:17:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:17
         valid      1
       Bidcos-rf:18:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:18
         valid      1
       Bidcos-rf:19:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:19
         valid      1
       Bidcos-rf:2:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:2
         valid      1
       Bidcos-rf:20:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:20
         valid      1
       Bidcos-rf:21:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:21
         valid      1
       Bidcos-rf:22:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:22
         valid      1
       Bidcos-rf:23:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:23
         valid      1
       Bidcos-rf:24:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:24
         valid      1
       Bidcos-rf:25:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:25
         valid      1
       Bidcos-rf:26:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:26
         valid      1
       Bidcos-rf:27:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:27
         valid      1
       Bidcos-rf:28:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:28
         valid      1
       Bidcos-rf:29:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:29
         valid      1
       Bidcos-rf:3:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:3
         valid      1
       Bidcos-rf:30:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:30
         valid      1
       Bidcos-rf:31:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:31
         valid      1
       Bidcos-rf:32:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:32
         valid      1
       Bidcos-rf:33:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:33
         valid      1
       Bidcos-rf:34:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:34
         valid      1
       Bidcos-rf:35:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:35
         valid      1
       Bidcos-rf:36:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:36
         valid      1
       Bidcos-rf:37:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:37
         valid      1
       Bidcos-rf:38:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:38
         valid      1
       Bidcos-rf:39:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:39
         valid      1
       Bidcos-rf:4:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:4
         valid      1
       Bidcos-rf:40:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:40
         valid      1
       Bidcos-rf:41:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:41
         valid      1
       Bidcos-rf:42:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:42
         valid      1
       Bidcos-rf:43:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:43
         valid      1
       Bidcos-rf:44:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:44
         valid      1
       Bidcos-rf:45:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:45
         valid      1
       Bidcos-rf:46:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:46
         valid      1
       Bidcos-rf:47:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:47
         valid      1
       Bidcos-rf:48:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:48
         valid      1
       Bidcos-rf:49:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:49
         valid      1
       Bidcos-rf:5:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:5
         valid      1
       Bidcos-rf:50:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:50
         valid      1
       Bidcos-rf:6:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:6
         valid      1
       Bidcos-rf:7:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:7
         valid      1
       Bidcos-rf:8:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:8
         valid      1
       Bidcos-rf:9:
         addtype    chn
         channels   1
         name       HM-RCV-50 BidCoS-RF:9
         valid      1
     Dp:
       Hm-rcv-50:
         Ch:
           0:
             Install_mode:
               oper       3
               type       2
           1:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           10:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           11:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           12:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           13:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           14:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           15:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           16:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           17:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           18:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           19:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           2:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           20:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           21:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           22:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           23:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           24:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           25:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           26:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           27:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           28:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           29:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           3:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           30:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           31:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           32:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           33:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           34:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           35:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           36:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           37:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           38:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           39:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           4:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           40:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           41:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
           42:
             Level:
               oper       2
               type       6
             Press_long:
               oper       6
               type       2
             Press_short:
               oper       6
               type       2
         
Migriere derzeit zu Home Assistant

zap

Mach mal bitte noch den Code-Tag am Ende zu, damit Dein Beitrag etwas übersichtlicher wird.

Du musst beim Befehl "get deviceinfo" den Namen des HmIP-SMI Geräts in der CCU angeben, nicht den Typ.

Wenn ich das richtig interpretiere, heißt das Gerät in der CCU "HmIP-SMI 0009156993C0BB" (Du solltest Dir sprechendere Namen überlegen, möglichst ohne Leerzeichen). Dann lautet der korrekte Befehl


get d_ccu deviceinfo "HmIP-SMI 0009156993C0BB"


Der "error" im State von d_ccu kommt nicht vom RPC-Server sondern ist das Ergebnis des falschen Parameters bei get deviceinfo.
2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

kjmEjfu

Zitat von: zap am 21 Januar 2017, 19:06:37
Wenn ich das richtig interpretiere, heißt das Gerät in der CCU "HmIP-SMI 0009156993C0BB" (Du solltest Dir sprechendere Namen überlegen, möglichst ohne Leerzeichen).

Tatsache, die Kombi hinter dem Leerzeichen habe ich durch den Umbruch in der WebUI echt übersehen.

Danke fürs Augen öffnen!
Migriere derzeit zu Home Assistant

Ralli

Hallo zap,

Zitat von: zap am 21 Januar 2017, 10:53:44
Unterstützung OSRAM Lightify Addon der CCU2 (experimentell):

HMCCU unterstützt nun das Adressierungsschema von OSRAM Lampen ("OL-"), die in der CCU2 über das OSRAM Lightify Addon eingebunden sind. Bitte mal testen, ob alles funktioniert, insbesondere die automatische Aktualisierung von Readings.

Meines Wissens werden die Datenpunkte von Lightify-Produkten nicht in der CCU aktualisiert - es erfolgt keine Rückgabe vom Gateway und kein periodisches Abfragen. Insofern ist das Vorbereiten des Moduls auf diese Devices zwar einerseits sinnvoll in Erwartung von Verbesserungen seitens eq3, andererseits ist es, glaube ich, zur Zeit zielführender, Lightify-Geräte unmittelbar in fhem einzubinden.
Gruß,
Ralli

Proxmox 8.4 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.4 dev, virtualisierte RaspberryMatic (3.83.6.20250705) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.4.1) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

zap

Ich habe das OSRAM Addon nur eingebunden, weil ein Nutzer (Yil?) danach gefragt hatte.
Beschränkt sich momentan auch auf die Unterstützung des etwas seltsamen Adressierungsschemas.
2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

ToM_ToM

Hi zap,

ich habe gerade mal nach langer Zeit wieder ein Update gefahren und nun funktionieren meine Wandtaster nicht mehr. Es kommt in FHEM gar kein EVENT mehr an.

Vorher hatte ich mich die ganze Zeit auf folgendes EVENT gestürzt.

HM-PB-6-WM55_MEQXXXXXXX.1.PRESS_SHORT

Nun sehe ich beim Tastendruck meiner Wandtaster im EVENT-Monitor nur noch:

2017-01-22 11:38:29 HMCCUCHN Wandtaster6Fach_01 hmstate: Initialized
2017-01-22 11:38:29 HMCCUDEV Wandtaster6Fach hmstate: Initialized
2017-01-22 11:38:49 HMCCUCHN Wandtaster6Fach_05 hmstate: Initialized
2017-01-22 11:38:49 HMCCUDEV Wandtaster6Fach hmstate: Initialized
2017-01-22 11:39:16 HMCCUCHN Wandtaster4FachWohnzimmer_02 hmstate: Initialized
2017-01-22 11:39:16 HMCCUDEV Wandtaster4FachWohnzimmer hmstate: Initialized
2017-01-22 11:39:16 HMCCUCHN Wandtaster4FachWohnzimmer_02 hmstate: Initialized
2017-01-22 11:39:16 HMCCUDEV Wandtaster4FachWohnzimmer hmstate: Initialized



Viele Grüße

Thomas
Hardware: BananaPi, Busmaster CUL, SanDisk 16GB Ultra SD, 16 GB USB-Stick | Software: Armbian, FHEM 5.8

chris1284

wenn ich ccu

ccudef-readingname 4.SET_TEMPERATURE:+desired-temp,4.ACTUAL_TEMPERATURE:+measured-temp,4.VALVE_STATE:+actuator,0.LOWBAT:+battery,4.BATTERY_STATE:+batteryLevel
ccudef-substitute LOWBAT!(0|false):ok,(1|true):low
ccudef-readingformat datapoint

setz und die attribute bei einem hmccudev lösche wird nichts mehr angezeigt, ich würde meinen es sollte dann aber readings im datapoint format erzeugt werden da in der ccu definiert richtig?

des weiteren fehlt bei ccudef-readingformat das auswahldropdown wie bei ccureadingsformat

es werden auch keine werte mehr aus der ccu geholt seit dem das update eingespielt ist. der rpc läuft aber ohne fehlermeldungen

chris1284

#1150
ich setze nun wieder auf hmccu     3.7. die 3.8 ist bei mir nicht i.O. da keine updates von der ccu geholt werden. die kommunikation scheint zu gehen (get devicelist holt zb 200er nochwas geräte aber readings werdne zb bei get update nicht aktualisiert. wenn das funktionieren würde, wären sicher meine fragen von eben gelöst

zap

Zitat von: ToM_ToM am 22 Januar 2017, 11:45:21
Hi zap,

ich habe gerade mal nach langer Zeit wieder ein Update gefahren und nun funktionieren meine Wandtaster nicht mehr. Es kommt in FHEM gar kein EVENT mehr an.

Vorher hatte ich mich die ganze Zeit auf folgendes EVENT gestürzt.

HM-PB-6-WM55_MEQXXXXXXX.1.PRESS_SHORT


Setze mal im I/O Device das Attribut ccudef-readingformat auf name. Das hat sich auf 'datapoint' geändert. Der Event müsste bei 'datapoint' "1.PRESS_SHORT" heißen, ohne HM... davor.

Außerdem bitte ein list des Wandtasters in FHEM.
2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

zap

Zitat von: chris1284 am 22 Januar 2017, 11:54:47
wenn ich ccu

ccudef-readingname 4.SET_TEMPERATURE:+desired-temp,4.ACTUAL_TEMPERATURE:+measured-temp,4.VALVE_STATE:+actuator,0.LOWBAT:+battery,4.BATTERY_STATE:+batteryLevel
ccudef-substitute LOWBAT!(0|false):ok,(1|true):low
ccudef-readingformat datapoint

setz und die attribute bei einem hmccudev lösche wird nichts mehr angezeigt, ich würde meinen es sollte dann aber readings im datapoint format erzeugt werden da in der ccu definiert richtig?

des weiteren fehlt bei ccudef-readingformat das auswahldropdown wie bei ccureadingsformat

es werden auch keine werte mehr aus der ccu geholt seit dem das update eingespielt ist. der rpc läuft aber ohne fehlermeldungen

Zeige mal ein list eines betroffenen Devices. Hast Du ccudef-readingfilter im I/O Device gesetzt?
2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

zap

Wichtig! Wenn in der neuen Version 3.8 keine Readings aktualisiert werden, liegt das vermutlich daran, dass weder im IO Device das Attribut ccudef-readingfilter noch im betroffenen Client Device das Attribut ccureadingfilter gesetzt ist.

Abhilfe: im IO Device ccudef-readingfilter auf .* setzen!

2xCCU3 mit ca. 100 Aktoren, Sensoren
Entwicklung: FHEM auf Proxmox Debian VM
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: HMCCU, (Fully, AndroidDB)

Loredo

#1154

Edit: ccudef-readingsfilter auf .* hilft, sollte aber Default sein.
Ich probiere mal aus, wie weit man jetzt kommt. Zum hmstate Reading muss ich nochmals meine Gedanken sammeln, derzeit eignet es sich nach wie vor nicht durch die Vermischung von Warnungen und echten Fehlern.








Mir ist außerdem aufgefallen:


list i:chntype=.+ i:chntype

BA_Window                VIR-LG-WHITE-DIM-CH
BR_Light                 VIR-LG-WHITE-DIM-CH
BR_Shutter               VIR-LG-WHITE-DIM-CH
BR_WindowCmpl            VIR-LG-WHITE-DIM-CH
BR_WindowTilt            VIR-LG-WHITE-DIM-CH
FL_FrontDoor             VIR-LG-WHITE-DIM-CH
FL_Light                 VIR-LG-WHITE-DIM-CH
KT_Light                 VIR-LG-WHITE-DIM-CH
KT_LightCounter          VIR-LG-WHITE-DIM-CH
KT_Window                VIR-LG-WHITE-DIM-CH
LR_BalconyDoorCmpl       VIR-LG-WHITE-DIM-CH
LR_BalconyDoorTilt       VIR-LG-WHITE-DIM-CH
LR_ShutterSouth          VIR-LG-WHITE-DIM-CH
LR_ShutterWest           VIR-LG-WHITE-DIM-CH
LR_SunBlind              VIR-LG-WHITE-DIM-CH
LR_WindowSouth           VIR-LG-WHITE-DIM-CH
LR_WindowWest            VIR-LG-WHITE-DIM-CH

Hat meine Arbeit dir geholfen? ⟹ https://paypal.me/pools/c/8gDLrIWrG9

Maintainer:
FHEM-Docker Image, https://github.com/fhem, Astro(Co-Maintainer), ENIGMA2, GEOFANCY, GUEST, HP1000, Installer, LaMetric2, MSG, msgConfig, npmjs, PET, PHTV, Pushover, RESIDENTS, ROOMMATE, search, THINKINGCLEANER