FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: daumvode am 03 Oktober 2018, 10:59:01

Titel: HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: daumvode am 03 Oktober 2018, 10:59:01
Meine Konfiguration: Raspberrymatic und fhem

Auf der CCU2 habe ich die Tasten mit Programmen verknüpft
Der rpcserver läuft

Meine deviceinfo ist:

CHN OEQ0311496:0 ht_1:0
  DPT {b} BidCos-RF.OEQ0311496:0.UNREACH = false [RE]
  DPT {b} BidCos-RF.OEQ0311496:0.STICKY_UNREACH = false [RWE]
  DPT {b} BidCos-RF.OEQ0311496:0.CONFIG_PENDING = false [RE]
  DPT {b} BidCos-RF.OEQ0311496:0.LOWBAT = false [RE]
  DPT {n} BidCos-RF.OEQ0311496:0.RSSI_DEVICE = 1 [RE]
  DPT {n} BidCos-RF.OEQ0311496:0.RSSI_PEER = 169 [RE]
  DPT {b} BidCos-RF.OEQ0311496:0.DEVICE_IN_BOOTLOADER = false [RE]
  DPT {b} BidCos-RF.OEQ0311496:0.UPDATE_PENDING = false [RE]
  DPT {n} BidCos-RF.OEQ0311496:0.AES_KEY = 0 [R]
CHN OEQ0311496:1 HM-PB-6-WM55 OEQ0311496:1
  DPT {b} BidCos-RF.OEQ0311496:1.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:1.PRESS_LONG = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:1.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:1.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:1.PRESS_LONG_RELEASE = false [E]
CHN OEQ0311496:2 HM-PB-6-WM55 OEQ0311496:2
  DPT {b} BidCos-RF.OEQ0311496:2.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:2.PRESS_LONG =  [WE]
  DPT {b} BidCos-RF.OEQ0311496:2.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:2.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:2.PRESS_LONG_RELEASE =  [E]
CHN OEQ0311496:3 HM-PB-6-WM55 OEQ0311496:3
  DPT {b} BidCos-RF.OEQ0311496:3.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:3.PRESS_LONG =  [WE]
  DPT {b} BidCos-RF.OEQ0311496:3.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:3.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:3.PRESS_LONG_RELEASE =  [E]
CHN OEQ0311496:4 HM-PB-6-WM55 OEQ0311496:4
  DPT {b} BidCos-RF.OEQ0311496:4.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:4.PRESS_LONG =  [WE]
  DPT {b} BidCos-RF.OEQ0311496:4.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:4.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:4.PRESS_LONG_RELEASE =  [E]
CHN OEQ0311496:5 HM-PB-6-WM55 OEQ0311496:5
  DPT {b} BidCos-RF.OEQ0311496:5.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:5.PRESS_LONG = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:5.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:5.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:5.PRESS_LONG_RELEASE = false [E]
CHN OEQ0311496:6 HM-PB-6-WM55 OEQ0311496:6
  DPT {b} BidCos-RF.OEQ0311496:6.PRESS_SHORT = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:6.PRESS_LONG = false [WE]
  DPT {b} BidCos-RF.OEQ0311496:6.INSTALL_TEST = false [E]
  DPT {b} BidCos-RF.OEQ0311496:6.PRESS_CONT =  [E]
  DPT {b} BidCos-RF.OEQ0311496:6.PRESS_LONG_RELEASE = false [E]

Meine Konfiguration lautet:

define Schalter_A HMCCUDEV OEQ0311496
attr Schalter_A IODev d_ccu
attr Schalter_A event-on-update-reading .*
attr Schalter_A room Homematic
define Schalter_A1 HMCCUCHN OEQ0311496:1
attr Schalter_A1 IODev d_ccu
attr Schalter_A1 event-on-update-reading .*
attr Schalter_A1 room Homematic
define Schalter_A2 HMCCUCHN OEQ0311496:2
attr Schalter_A2 IODev d_ccu
attr Schalter_A2 event-on-update-reading .*
attr Schalter_A2 room Homematic

Updates habe ich durchgeführt. hmstate bekommt ein reading, aber für alle Schaltertasten, egal welche ich drücke.

Ich möchte nur eine Meldung, wenn ich eine Taste drücke, um ein Notify auszulösen. Was mache ich falsch? Die Anleitungen habe ich alle durchgelesen, aber möglicherweise etwas nicht verstanden.
Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: daumvode am 03 Oktober 2018, 14:58:12
Ich habe die Lösung gefunden:

attr ccureadingfilter (^PRESS_SHORT|^PRESS_LONG|^LOWBAT$)

Mein Missverständnis war, das ccureadingfilter die Readings filtert. Tatsächlich werden sie ermöglicht. Könnte vielleicht noch die Doku klargestellt werden.
Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: remo am 02 Februar 2021, 12:50:39
Hallo,

gibt es dazu noch zusätliche Infos?

Ich stehe gerade vor dem selben Problem.


define PB61 HMCCUDEV xxxxxxxxx1
define PB61_0 HMCCUCHN xxxxxxxxx1:0
define PB61_1 HMCCUCHN xxxxxxxxx1:1
define PB61_2 HMCCUCHN xxxxxxxxx1:2
define PB61_3 HMCCUCHN xxxxxxxxx1:3
define PB61_4 HMCCUCHN xxxxxxxxx1:4
define PB61_5 HMCCUCHN xxxxxxxxx1:5
define PB61_6 HMCCUCHN xxxxxxxxx1:6

attr PB61.* IODev CCU
attr PB61.* ccureadingfilter (^PRESS_SHORT|^PRESS_LONG|^LOWBAT$)
attr PB61.* event-on-update-reading .*

define notify_PB61_5_SHORT notify PB61_5:PRESS_SHORT { fhem ("set aktor_Rollladen_.* datapoint 1.LEVEL 100") }
define notify_PB61_5_LONG notify PB61_5:PRESS_LONG { fhem ("set aktor_Rollladen_.* datapoint 1.LEVEL 0") }


Vielleicht hat noch jemand eine Idee?

Gruß
Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: zap am 02 Februar 2021, 12:54:54
Zitat aus dem 1. Beitrag oben:

"Auf der CCU2 habe ich die Tasten mit Programmen verknüpft
Der rpcserver läuft"

Hast Du das beides gemacht (Dummy Programm in der CCU erstellt, RPC-Server konfiguriert und gestartet) ?
Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: remo am 02 Februar 2021, 13:07:09
Danke für die schnelle Antwort.

Der rpcserver läuft.
Was ist mit Dummy-Programm gemeint?

Ich hatte den HM-PB-6-WM55 vorher ganz simpel über FHEM mittels HMLANGW eingebunden und verwendet - ohne VCCU usw.
Jetzt bin ich auf eine CCU2 umgestiegen. Läuft soweit auch alles. Nur der HM-PB-6-WM55 möchte noch nicht so ganz.

EventLog zeigt beim Drücken einer Taste Folgendes:
HMCCUCHN PB61_5 5.PRESS_SHORT: 1
HMCCUDEV PB61 5.PRESS_SHORT: 1


Gruß

Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: remo am 02 Februar 2021, 13:18:46
Lösung gefunden!

define PB61 HMCCUDEV xxxxxxxxxx
define PB61_0 HMCCUCHN xxxxxxxxxx:0
define PB61_1 HMCCUCHN xxxxxxxxxx:1
define PB61_2 HMCCUCHN xxxxxxxxxx:2
define PB61_3 HMCCUCHN xxxxxxxxxx:3
define PB61_4 HMCCUCHN xxxxxxxxxx:4

define PB61_5 HMCCUCHN xxxxxxxxxx:5
define notify_PB61_5_SHORT notify PB61_5:5.PRESS_SHORT.* { fhem ("set aktor_Rollladen_.* datapoint 1.LEVEL 100") }
define notify_PB61_5_LONG notify PB61_5:5.PRESS_LONG.* { fhem ("set aktor_Rollladen_.* datapoint 1.LEVEL 0") }

define PB61_6 HMCCUCHN xxxxxxxxxx:6

attr PB61.* IODev CCU
attr PB61.* ccureadingfilter (^PRESS_SHORT|^PRESS_LONG)      
attr PB61.* event-on-update-reading .*
Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: remo am 17 Februar 2021, 14:28:16
Hallo,

ich muss das Thema nochmals aufwärmen.

Mein 6-fach-Taster hat ein Reading activity, welches auf alive steht.
Entferne ich die Batterien, so bleibt activity auf alive stehen.
Auch nach zwei Tagen ohne Batterien.

Meine anderen Geräte mit Batterie (Temperatursensoren) haben dieses Reading ebenfalls,
nur hier ändert sich activity auf dead nach kurzer Zeit wenn ich die Batterien entferne.

Mein Ziel ist es, auf einen Blick zu sehen, welche meiner Geräte mit Batterien alive/dead sind.
Wie gesagt, es funktioniert bei allen Batterie-Geräten, nur beim 6-fach-Taster nicht.

list PB61:

Internals:
   CFGFN      ./FHEM/000_ccu.cfg
   DEF        OEQ0651411
   FUUID      602c7d67-f33f-1ce0-ce46-e462ed25d2e8022b
   IODev      CCU
   NAME       PB61
   NR         41
   STATE      ???
   TYPE       HMCCUDEV
   ccuaddr    OEQ0651411
   ccudevstate active
   ccuif      BidCos-RF
   ccuname    PB61
   ccutype    HM-PB-6-WM55
   channels   7
   firmware   1.2
   statevals  devstate
   READINGS:
     2021-02-04 16:05:22   1.PRESS_LONG    1
     2021-02-04 16:05:23   1.PRESS_LONG_RELEASE 1
     2021-02-17 10:29:16   1.PRESS_SHORT   1
     2021-02-17 10:29:17   2.PRESS_SHORT   1
     2021-02-17 10:29:18   3.PRESS_SHORT   1
     2021-02-17 10:29:19   4.PRESS_SHORT   1
     2021-02-11 17:39:24   5.PRESS_LONG    1
     2021-02-11 17:39:24   5.PRESS_LONG_RELEASE 1
     2021-02-17 10:29:19   5.PRESS_SHORT   1
     2021-02-04 21:02:37   6.PRESS_LONG    1
     2021-02-04 21:02:37   6.PRESS_LONG_RELEASE 1
     2021-02-17 10:29:21   6.PRESS_SHORT   1
     2021-02-17 03:20:36   activity        alive
     2021-02-17 03:20:36   battery         ok
   hmccu:
     devspec    OEQ0651411
     dp:
       0.AES_KEY:
         OVAL       1
         VAL        1
       0.CONFIG_PENDING:
         OVAL       false
         VAL        false
       0.DEVICE_IN_BOOTLOADER:
         OVAL       false
         VAL        false
       0.LOWBAT:
         OSVAL      ok
         OVAL       false
         SVAL       ok
         VAL        false
       0.RSSI_DEVICE:
         OVAL       1
         VAL        1
       0.RSSI_PEER:
         OVAL       1
         VAL        1
       0.STICKY_UNREACH:
         OVAL       false
         VAL        false
       0.UNREACH:
         OSVAL      alive
         OVAL       false
         SVAL       alive
         VAL        false
       0.UPDATE_PENDING:
         OVAL       false
         VAL        false
       1.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
       2.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
       3.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
       4.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
       5.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
       6.PRESS_SHORT:
         OSVAL      1
         OVAL       1
         SVAL       1
         VAL        1
Attributes:
   IODev      CCU
   ccureadingfilter (^PRESS_SHORT|^PRESS_LONG)
   event-on-update-reading .*


Habe ich etwas übersehen?
Ein wichtiges attr "vergessen"?

Mit einer VCCU ist der Taster nicht gekoppelt.
Vor der Umstellung auf eine CCU2 hatte ich ein HMLANGW im Einsatz.
Dort konnte ich den Status des selben 6-fach-Tasters über state auslesen und auswerten -
der Taster war aber auch ohne VCCU im Einsatz.

Liebe Grüße

Titel: Antw:HM-PB-6-WM55 Konfiguration für CCU2
Beitrag von: remo am 17 Februar 2021, 21:01:53
Ich habe mich beim Anlegen der CCU2 strikt an diese Anleitung gehalten:
https://wiki.fhem.de/wiki/HMCCU_Best_Practice

Soweit funktioniert auch alles.

Hat mich jemand einen Tipp für mich?