FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: dirkbalzer am 07 November 2021, 18:26:36

Titel: ValueIcon in ReadingsGroup zentrieren?
Beitrag von: dirkbalzer am 07 November 2021, 18:26:36
Hallo, wie kann man das ValueIcon einer ReadingsGroup zentrieren?
Beim Text hat das mit "cellStyle'" funktioniert.


Anbei das List der ReadingsGroup:



LIST:
Internals:
   .FhemMetaInternals 1
   DEF        <Gerät>,<Temp-Soll>,<Temp-Ist>,<Luftfeuchte>,<Mode>,<Sperre>,<Programm>,<Serial> NAME=Temp_.*_Climate:desired-temp,measured-temp,humidity,controlMode,btnlock,R-weekPrgSel,serial
   FUUID      5fd7b4a8-f33f-1311-b5c0-ed3b2a34c6d1d796
   FVERSION   33_readingsGroup.pm:0.238440/2021-02-27
   NAME       RG_HM_TEMP
   NR         125
   NTFY_ORDER 50-RG_HM_TEMP
   STATE      Initialized
   TYPE       readingsGroup
   changed    0
   mayBeVisible 1
   CONTENT:
     Temp_DG_Bad_Climate 1
     Temp_DG_SchlafZ_Climate 1
     Temp_EG_WohnZ_Climate 1
     Temp_KG_Hobby_Climate 1
     Temp_OG_Bad_Climate 1
     Temp_OG_Buero_Climate 1
     Temp_OG_Kind_Climate 1
   CONTENT2:
   DEVICES:
     ARRAY(0x55c4a44728a8)
     ARRAY(0x55c4a444a8d0)
     ARRAY(0x55c4a431e6a8)
     ARRAY(0x55c4a433db08)
     ARRAY(0x55c4a445d418)
     ARRAY(0x55c4a42560a0)
     ARRAY(0x55c4a4433000)
     ARRAY(0x55c4a4430e98)
   fhem:
     lastDefChange 1
     last_update 1636305125.95395
   helper:
     DEF       
     cellStyle  {($READING ne "Gerät")?'style="text-align:center"' :'style=""'}
     commands:
       desired-temp desired-temp:off,on,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0
     positions:
       Temp_DG_Bad_Climate.R-weekPrgSel 2:6
       Temp_DG_Bad_Climate.btnlock 2:5
       Temp_DG_Bad_Climate.controlMode 2:4
       Temp_DG_Bad_Climate.desired-temp 2:1
       Temp_DG_Bad_Climate.humidity 2:3
       Temp_DG_Bad_Climate.measured-temp 2:2
       Temp_DG_Bad_Climate.serial 2:7
       Temp_DG_SchlafZ_Climate.R-weekPrgSel 3:6
       Temp_DG_SchlafZ_Climate.btnlock 3:5
       Temp_DG_SchlafZ_Climate.controlMode 3:4
       Temp_DG_SchlafZ_Climate.desired-temp 3:1
       Temp_DG_SchlafZ_Climate.humidity 3:3
       Temp_DG_SchlafZ_Climate.measured-temp 3:2
       Temp_DG_SchlafZ_Climate.serial 3:7
       Temp_EG_WohnZ_Climate.R-weekPrgSel 4:6
       Temp_EG_WohnZ_Climate.btnlock 4:5
       Temp_EG_WohnZ_Climate.controlMode 4:4
       Temp_EG_WohnZ_Climate.desired-temp 4:1
       Temp_EG_WohnZ_Climate.humidity 4:3
       Temp_EG_WohnZ_Climate.measured-temp 4:2
       Temp_EG_WohnZ_Climate.serial 4:7
       Temp_KG_Hobby_Climate.R-weekPrgSel 5:6
       Temp_KG_Hobby_Climate.btnlock 5:5
       Temp_KG_Hobby_Climate.controlMode 5:4
       Temp_KG_Hobby_Climate.desired-temp 5:1
       Temp_KG_Hobby_Climate.humidity 5:3
       Temp_KG_Hobby_Climate.measured-temp 5:2
       Temp_KG_Hobby_Climate.serial 5:7
       Temp_OG_Bad_Climate.R-weekPrgSel 6:6
       Temp_OG_Bad_Climate.btnlock 6:5
       Temp_OG_Bad_Climate.controlMode 6:4
       Temp_OG_Bad_Climate.desired-temp 6:1
       Temp_OG_Bad_Climate.humidity 6:3
       Temp_OG_Bad_Climate.measured-temp 6:2
       Temp_OG_Bad_Climate.serial 6:7
       Temp_OG_Buero_Climate.R-weekPrgSel 7:6
       Temp_OG_Buero_Climate.btnlock 7:5
       Temp_OG_Buero_Climate.controlMode 7:4
       Temp_OG_Buero_Climate.desired-temp 7:1
       Temp_OG_Buero_Climate.humidity 7:3
       Temp_OG_Buero_Climate.measured-temp 7:2
       Temp_OG_Buero_Climate.serial 7:7
       Temp_OG_Kind_Climate.R-weekPrgSel 8:6
       Temp_OG_Kind_Climate.btnlock 8:5
       Temp_OG_Kind_Climate.controlMode 8:4
       Temp_OG_Kind_Climate.desired-temp 8:1
       Temp_OG_Kind_Climate.humidity 8:3
       Temp_OG_Kind_Climate.measured-temp 8:2
       Temp_OG_Kind_Climate.serial 8:7
     valueFormat:
       desired-temp %.1f &deg;C
       humidity   %d %%
       measured-temp %.1f &deg;C
     valueIcon:
       R-weekPrgSel.prog1 rc_1
       R-weekPrgSel.prog2 rc_2
       btnlock.off secur_open@red
       btnlock.on secur_locked@green
       controlMode.auto sani_heating_automatic@green
       controlMode.manual sani_heating_manual@red
     values:
       formated:
         undef
         ARRAY(0x55c4ae5def40)
         ARRAY(0x55c4ae2578e0)
         ARRAY(0x55c4ae5778e0)
         ARRAY(0x55c4ae8210f8)
         ARRAY(0x55c4ae93e808)
         ARRAY(0x55c4ae6326b8)
         ARRAY(0x55c4ae515c40)
       orig:
         undef
         ARRAY(0x55c4ae7ba970)
         ARRAY(0x55c4ae7c3cb0)
         ARRAY(0x55c4ae96a8e0)
         ARRAY(0x55c4ae634040)
         ARRAY(0x55c4ae3f6490)
         ARRAY(0x55c4ae75b0c0)
         ARRAY(0x55c4ae8c0d58)
       prefixsuffix:
         undef
         ARRAY(0x55c4ae4b3820)
         ARRAY(0x55c4ae7bd340)
         ARRAY(0x55c4ae2e1100)
         ARRAY(0x55c4ae76de38)
         ARRAY(0x55c4ae79f358)
         ARRAY(0x55c4ae4f04a8)
         ARRAY(0x55c4ae7af640)
Attributes:
   alias      Settings Wandhermostat
   cellStyle  {($READING ne "Gerät")?'style="text-align:center"' :'style=""'}
   commands   {'desired-temp' => 'desired-temp:off,on,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,26.5,27.0,27.5,28.0,28.5,29.0,29.5,30.0',}
   room       Heizung
   valueFormat {'desired-temp' => "%.1f &deg;C",
'measured-temp' => "%.1f &deg;C",
'humidity' => "%d %%",}
   valueIcon  {"controlMode.manual" => 'sani_heating_manual@red',
"controlMode.auto" => 'sani_heating_automatic@green',
"btnlock.on" => 'secur_locked@green',
"btnlock.off" => 'secur_open@red',
"R-weekPrgSel.prog1" => 'rc_1',
"R-weekPrgSel.prog2" => 'rc_2'}