FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: rasti am 16 November 2017, 23:32:49

Titel: HM-CC-RT-DN und HM-TC-IT-WM-W-EU zusammen in einer Readingsgroup
Beitrag von: rasti am 16 November 2017, 23:32:49
Hallo,

ich hatte seither nur HM-CC-RT-DN  im Einsatz nun ist ein HM-TC-IT-WM-W-EU hinzugekommen, der mit einem Schaltaktor zusammenarbeitet.

Ich will nun beide in derselben Readingsgroup darstellen, bekomme es aber nicht hin.

Alle Thermostate sind vom Typ HM-CC-RT-DN, nur das untere ist der neu hinzugekommene  HM-TC-IT-WM-W-EU (die Zeile "WOHNZIMMER")

2 Probleme habe ich :

1) Im Bild anbei sieht man, dass beim HM-TC-IT-WM-W-EU der Lock-Button fehlt, warum ist mir nicht klar. Expert Attribut steht auf 1_allReg.
In der Wiki stand, dass man es auf 1_on stellen sollte weil ansonsten der Lock-Button fehlt. Das gilt aber wohl
nur für den HM-CC-RT-DN

2) Auch sieht man, dass die Ventilstellung fehlt. Ist auch klar, denn der Parameter ist beim HM-TC-IT-WM-W-EU ja gar nicht vorhanden.
Hier müsste quasi angezeigt werden, ob der gepeerte Schalter HM_C9E814_Sw_01 auf ON oder OFF steht.

Wie muss ich das codieren/implementieren ?

Viele Grüße

Ralf

define Funkthermostate readingsGroup <%hc_wht_regler>,<Soll>,<Ist>,<Ventil>,<Modus>,<Lock>,<Batterie> \ HM_309E63_Clima:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_309E63,batteryLevel@HM_309E63 \ <>,<>,<>,<>,<>,<>,<>,<>  \ HM_3CFD66_Clima:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_3CFD66,batteryLevel@HM_3CFD66 \ <>,<>,<>,<>,<>,<>,<>,<> \ HM_2E5CE0_Clima:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_2E5CE0,batteryLevel@HM_2E5CE0 \ <>,<>,<>,<>,<>,<>,<>,<> \ HM_220A2E_Clima:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_220A2E,batteryLevel@HM_220A2E \ <>,<>,<>,<>,<>,<>,<>,<> \ HM_3D0008_Clima:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_3D0008,batteryLevel@HM_3D0008 \ <>,<>,<>,<>,<>,<>,<>,<> \ HM_5C68D3_Climate:desired-temp,measured-temp,ValvePosition,controlMode,R-globalBtnLock@HM_HM_5C68D3,batteryLevel@HM_5C68D3
attr Funkthermostate alias Individuelle Einstellungen der Funkthermostate
attr Funkthermostate commands {'desired-temp' => 'desired-temp:' ,"controlMode.manual"=>"set %DEVICE controlMode auto","controlMode.auto"=>"set %DEVICE controlMode manual","R-globalBtnLock.on"=>"set %DEVICE regSet globalBtnLock off","R-globalBtnLock.off"=>"set %DEVICE regSet globalBtnLock on"}
attr Funkthermostate room Heizung OG
attr Funkthermostate valueFormat {if($READING eq "ValvePosition" && $VALUE ne "0"){$VALUE = int($VALUE/10)*10} elsif($READING eq "batteryLevel"){if($VALUE>=3){$VALUE=100} elsif($VALUE>=2.7){$VALUE=75}elsif($VALUE>=2.5){$VALUE=50}elsif($VALUE>=2.2){$VALUE=25} else{$VALUE=0}}}
attr Funkthermostate valueIcon {'controlMode.manual' => 'sani_heating_manual@795CFF','controlMode.auto' =>'sani_heating_automatic@FFC13A', 'controlMode.boost' => 'sani_heating_boost@FB0C02','R-globalBtnLock.on'=>'secur_locked@F7301D','R-globalBtnLock.off'=>'secur_open@0CFB0C','ValvePosition.0' => 'sani_heating_level_0@002AE0','ValvePosition.10' =>'sani_heating_level_10@F8D53D','ValvePosition.20' => 'sani_heating_level_20@FF9341','ValvePosition.30' =>'sani_heating_level_30@F17F3F','ValvePosition.40' => 'sani_heating_level_40@E46C3C','ValvePosition.50' =>'sani_heating_level_50@DE3B3A','ValvePosition.60' => 'sani_heating_level_60@A30D2D','ValvePosition.70' =>'sani_heating_level_70@B40A23','ValvePosition.80' => 'sani_heating_level_80@C40619','ValvePosition.90' =>'sani_heating_level_90@D4030F','ValvePosition.100' =>'sani_heating_level_100@E50005','batteryLevel.100'=>'measure_battery_100@0CFB0C','batteryLevel.75'=>'measure_battery_75@42BC0A','batteryLevel.50'=>'measure_battery_50@F5FF10','batteryLevel.25'=>'measure_battery_25@FB5909','batteryLevel.0'=>'measure_battery_0@E50005','controlMode.set_boost' => 'hourglass','controlMode.set_auto' => 'hourglass','controlMode.set_manual' => 'hourglass','R-globalBtnLock.set_on' => 'hourglass','R-globalBtnLock.set_off' => 'hourglass'}
attr Funkthermostate valueStyle {if($READING eq "measured-temp"){my $t=$VALUE;;my $d=ReadingsVal($DEVICE,'desired-temp',0);;if($t-$d>=1){'style="color:rgb(251,63,11);;"'}elsif($t-$d<=-1){'style="color:rgb(79,58,251);;"'} else{'style="color:rgb(12,251,12);;"'}}}
attr Funkthermostate valueSuffix {"desired-temp"=>" °C", "measured-temp"=>" °C", "ValvePosition"=>" ".ReadingsVal($DEVICE,$READING,0)." %",  "batteryLevel"=>" (".ReadingsVal($DEVICE,$READING,0)." Volt )"}


Titel: Antw:HM-CC-RT-DN und HM-TC-IT-WM-W-EU zusammen in einer Readingsgroup
Beitrag von: rallye am 15 Januar 2018, 20:10:52
Hallo rasti, ich kann dir zwar nicht helfen (bin selber erst am Anfang, DU aber einen Schritt weiter), aber ich würde gerne wissen, wie du die experts der Heizkörperventile gestellt hast. Ich bekomme nicht einmal dort die "Locks".
Danke
Titel: Antw:HM-CC-RT-DN und HM-TC-IT-WM-W-EU zusammen in einer Readingsgroup
Beitrag von: rasti am 15 Januar 2018, 20:46:09
Zitat von: statler am 15 Januar 2018, 20:10:52
Hallo rasti, ich kann dir zwar nicht helfen (bin selber erst am Anfang, DU aber einen Schritt weiter), aber ich würde gerne wissen, wie du die experts der Heizkörperventile gestellt hast. Ich bekomme nicht einmal dort die "Locks".
Danke

Hallo,

ich nehme an du meinst die HM-CC-RT-DN, unten die Internals eines Thermostats . Ich hoffe das hilft.

Ich habe die Darstellung auch noch nicht hinbekommen - ist auch nicht wirklich weiter schlimm,
da ich zuhause eigentlich alles über Tablet UI mache und auf die Standardoberfläche von
FHEM nur zum Basteln oder für zum Fernzugriff übers Internet verwende...

Viele Grüße

Ralf
Internals:
   DEF        309E6304
   NAME       HM_309E63_Clima
   NR         586
   STATE      Ist: 18.0 °C   ___ Soll: 17.0 °C ___  Ventil: 0 %
   TYPE       CUL_HM
   chanNo     04
   device     HM_309E63
   Readings:
     2017-12-19 10:42:37   CommandAccepted yes
     2015-10-24 23:51:36   R-boostPeriod   5 min
     2015-10-24 23:51:36   R-boostPos      80 %
     2015-10-24 23:51:36   R-btnNoBckLight off
     2015-10-24 23:51:36   R-dayTemp       21 C
     2015-10-24 23:51:36   R-daylightSaveTime on
     2015-10-24 23:51:36   R-decalcTime    11:00
     2015-10-24 23:51:36   R-decalcWeekday Sat
     2015-10-24 23:51:36   R-modePrioManu  all
     2015-10-24 23:51:36   R-modePrioParty all
     2015-10-24 23:51:36   R-nightTemp     17 C
     2015-10-24 23:51:36   R-noMinMax4Manu off
     2015-10-24 23:51:36   R-regAdaptive   on
     2015-10-24 23:51:36   R-reguExtI      15
     2015-10-24 23:51:36   R-reguExtP      30
     2015-10-24 23:51:36   R-reguExtPstart 30
     2015-10-24 23:51:36   R-reguIntI      18
     2015-10-24 23:51:36   R-reguIntP      33
     2016-02-19 22:19:51   R-reguIntPstart 45
     2015-10-24 23:51:36   R-showInfo      time
     2015-10-24 23:51:36   R-showWeekday   off
     2015-09-13 22:05:49   R-sign          off
     2015-10-24 23:51:36   R-tempMax       30.5 C
     2015-10-24 23:51:36   R-tempMin       4.5 C
     2015-10-24 23:51:36   R-tempOffset    0.0K
     2015-10-24 23:51:36   R-valveErrPos   15 %
     2015-10-24 23:51:36   R-valveMaxPos   100 %
     2015-10-24 23:51:36   R-valveOffsetRt 0 %
     2015-10-24 23:51:36   R-winOpnBoost   off
     2015-10-24 23:51:36   R-winOpnDetFall 1.4 K
     2015-10-24 23:51:36   R-winOpnMode    on
     2015-10-24 23:51:36   R-winOpnPeriod  15 min
     2015-10-24 23:51:36   R-winOpnTemp    12 C
     2017-12-05 08:11:56   R_0_tempListSat 08:00 17.0 09:30 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_1_tempListSun 08:00 17.0 09:30 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_2_tempListMon 06:00 17.0 09:00 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_3_tempListTue 06:00 17.0 09:00 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_4_tempListWed 06:00 17.0 09:00 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_5_tempListThu 06:00 17.0 09:00 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_6_tempListFri 06:00 17.0 09:00 21.0 21:30 17.0 23:30 21.0 24:00 17.0
     2017-12-05 08:11:56   R_tempList_State verified
     2018-01-15 20:37:53   ValvePosition   0
     2018-01-15 20:37:53   boostTime       -
     2018-01-15 20:37:53   controlMode     auto
     2018-01-15 20:37:53   desired-temp    17.0
     2018-01-15 20:37:53   measured-temp   18.0
     2016-01-31 19:14:41   motorErr        ok
     2018-01-15 20:37:53   partyEnd        -
     2018-01-15 20:37:53   partyStart      -
     2018-01-15 20:37:53   partyTemp       -
     2017-12-19 10:42:37   recentStateType ack
     2018-01-15 20:37:53   state           T: 18.0 desired: 17.0 valve: 0
   Helper:
     Expert:
       def        1
       det        1
       raw        0
       tpl        0
     Role:
       chn        1
     Shregr:
       07         00
Attributes:
   alias      Schlafzimmer
   icon       hc_wht_regler
   model      HM-CC-RT-DN
   peerIDs    00000000,
   room       hidden
   stateFormat Ist: measured-temp °C   ___ Soll: desired-temp °C ___  Ventil: ValvePosition %


Internals:
   DEF        309E63
   HMLAN1_MSGCNT 770
   HMLAN1_RAWMSG E309E63,0000,1F2B14E5,FF,FFC3,508610309E630000000A88B40E0000
   HMLAN1_RSSI -61
   HMLAN1_TIME 2018-01-15 20:40:44
   IODev      HMLAN1
   LASTInputDev HMLAN1
   MSGCNT     770
   NAME       HM_309E63
   NR         575
   STATE      CMDs_done
   TYPE       CUL_HM
   channel_01 HM_309E63_Weather
   channel_02 HM_309E63_Climate
   channel_03 HM_309E63_WindowRec
   channel_04 HM_309E63_Clima
   channel_05 HM_309E63_ClimaTeam
   channel_06 HM_309E63_remote
   lastMsg    No:50 - t:10 s:309E63 d:000000 0A88B40E0000
   protLastRcv 2018-01-15 20:40:44
   protSnd    2 last_at:2018-01-15 19:24:45
   protState  CMDs_done
   rssi_at_HMLAN1 avg:-60.89 min:-67 max:-58 lst:-61 cnt:770
   Readings:
     2018-01-14 12:08:29   Activity        alive
     2017-12-19 10:42:37   CommandAccepted yes
     2015-09-14 20:38:04   D-firmware      1.3
     2015-09-14 20:38:04   D-serialNr      LEQ1205931
     2017-12-05 08:11:49   PairedTo        0x123ABC
     2015-09-13 22:05:46   R-backOnTime    10 s
     2017-12-05 08:11:49   R-btnLock       on
     2015-09-13 22:05:46   R-burstRx       on
     2015-09-13 22:05:46   R-cyclicInfoMsg on
     2015-10-16 22:09:54   R-cyclicInfoMsgDis 0
     2015-10-21 20:53:50   R-globalBtnLock on
     2015-09-13 22:05:46   R-localResDis   off
     2015-09-13 22:05:46   R-lowBatLimitRT 2.1 V
     2015-09-13 22:05:46   R-modusBtnLock  off
     2015-09-13 22:05:46   R-pairCentral   0x123ABC
     2018-01-15 20:40:44   actuator        0
     2018-01-15 20:40:44   battery         ok
     2018-01-15 20:40:44   batteryLevel    2.9
     2018-01-15 20:40:44   desired-temp    17.0
     2018-01-15 20:40:44   measured-temp   18.0
     2018-01-15 20:40:44   motorErr        ok
     2017-05-03 21:35:47   powerOn         2017-05-03 21:35:47
     2017-05-03 21:35:47   recentStateType info
     2018-01-15 19:24:45   state           CMDs_done
     2018-01-15 19:24:45   time-request    -
   Helper:
     HM_CMDNR   80
     mId        0095
     rxType     140
     Expert:
       def        1
       det        1
       raw        0
       tpl        0
     Io:
       newChn     +309E63,00,00,00
       nextSend   1516045244.29999
       prefIO
       rxt        2
       vccu
       p:
         309E63
         00
         00
         00
     Mrssi:
       mNo        50
       Io:
         HMLAN1     -59
     Prt:
       bErr       0
       sProc      0
       sleeping   1
       Rspwait:
     Q:
       qReqConf
       qReqStat
     Role:
       dev        1
       prs        1
     Rssi:
       At_hmlan1:
         avg        -60.8935064935065
         cnt        770
         lst        -61
         max        -58
         min        -67
     Shregw:
       07         04
Attributes:
   IODev      HMLAN1
   actCycle   000:10
   actStatus  alive
   autoReadReg 4_reqStatus
   expert     1_on
   firmware   1.3
   model      HM-CC-RT-DN
   serialNr   LEQ1205931
   subType    thermostat
   webCmd     getConfig:clear msgEvents:burstXmit