Für meine Waschmaschine habe ich alle Betreffenden devices in eine group gepackt.
Das HourCounter device hat dabei ein stateFormat bekommen in dem eine table aufgebaut wird.
Jetzt wird aber die Zeile in der Gruppe nicht bis zum Ende ausgefüllt, siehe Screenshot im Anhang.
Wie kann ich das ändern?
Internals:
DEF Waschkeller_Waschmaschine_Switch:on Waschkeller_Waschmaschine_Switch:off
NAME Waschkeller_Waschmaschine_HourCounter
NR 32
NTFY_ORDER 50-Waschkeller_Waschmaschine_HourCounter
STATE <table style="text-align: left;"><tr><td>heute</td><td style="text-align: right; padding-right: 0px;">0.0</td><td style="padding-left: 0px;"> h</td></tr><tr><td>insgesamt</td><td style="text-align: right; padding-right: 0px;">228.4</td><td style="padding-left: 0px;"> h</td></tr><tr><td>Laufzeit</td><td style="text-align: right; padding-right: 0px;">2.3</td><td style="padding-left: 0px;"> h</td></tr></table>
TYPE HourCounter
VERSION 1.0.1.2 - 24.12.2014
READINGS:
2017-07-29 14:28:20 countsOverall 0
2017-07-29 14:28:20 countsPerDay 0
2017-07-29 14:28:20 pauseTimeEdge 0
2017-07-29 14:28:20 pauseTimeIncrement 5055
2017-07-29 14:28:20 pauseTimeOverall 5055
2017-07-29 14:28:20 pauseTimePerDay 2718
2017-07-13 04:44:30 pulseTimeAverage 8306
2017-07-29 14:28:20 pulseTimeEdge 0
2017-07-29 14:28:20 pulseTimeIncrement 0
2017-07-29 14:28:20 pulseTimeOverall 822338
2017-07-29 14:28:20 pulseTimePerDay 0
2017-07-29 14:28:20 state 0
2017-07-29 13:43:03 tickDay 1
2017-07-29 14:00:00 tickHour 3
2017-07-29 13:43:03 tickMonth 0
2017-07-29 14:28:20 tickUpdated 6
2017-07-29 13:43:03 tickWeek 1
2017-07-29 13:43:03 tickYear 0
2017-07-29 14:28:20 value 0
helper:
OFF_Regexp Waschkeller_Waschmaschine_Switch:off
ON_Regexp Waschkeller_Waschmaschine_Switch:on
calledByEvent
changedTimestamp 2017-07-29 14:28:20
forceClear
forceDayChange
forceHourChange
forceMonthChange
forceWeekChange
forceYearChange
isFirstRun
sdRoundHourLast 1501329600
value -1
cmdQueue:
Attributes:
alias Waschkeller: Waschmaschine Betriebsstundenzähler
event-on-change-reading .*
group Waschmaschine
icon time_timer
room Waschkeller
sortby Waschkeller: Waschmaschine_020
stateFormat {return HourCounter_stateFormat($name)}
userReadings pulseTimeAverage:value:.0 {HourCounter_pulseTimeAverage($name)}
Also... alles, was im STATE liegt, sieht man auf dem Bild.
Was fehlt?
Unten Rechts im Bild geht der schwarze Balken nicht bis zum Ende der Zeile.
Wenn ich das naeher anschauen soll, dann brauche ich bitte die Definition/Attribute/Readings aller angezeigten Geraete in "list -r" Format, aka "Raw definition" in der jeweiligen Detailansicht. Und die Definition der betroffenen FHEMWEB Instanz.
define Waschkeller_Waschmaschine CUL_HM 2C10D8
attr Waschkeller_Waschmaschine IODev myHMUART
attr Waschkeller_Waschmaschine IOgrp myVCCU
attr Waschkeller_Waschmaschine actCycle 000:10
attr Waschkeller_Waschmaschine actStatus unknown
attr Waschkeller_Waschmaschine alias Waschkeller: Waschmaschine Hauptgerät
attr Waschkeller_Waschmaschine autoReadReg 4_reqStatus
attr Waschkeller_Waschmaschine captionRoom {AttrVal(InternalVal($name, "channel_01", undef), "room", undef)}
attr Waschkeller_Waschmaschine description {AttrVal(InternalVal($name, "channel_01", undef), "description", undef)}
attr Waschkeller_Waschmaschine event-on-change-reading none
attr Waschkeller_Waschmaschine expert 0_defReg
attr Waschkeller_Waschmaschine firmware 1.6
attr Waschkeller_Waschmaschine group Waschmaschine
attr Waschkeller_Waschmaschine icon message_socket
attr Waschkeller_Waschmaschine model HM-ES-PMSw1-Pl
attr Waschkeller_Waschmaschine room Waschkeller
attr Waschkeller_Waschmaschine serialNr LEQ0536641
attr Waschkeller_Waschmaschine sortby Waschkeller: Waschmaschine_010
attr Waschkeller_Waschmaschine subType powerMeter
attr Waschkeller_Waschmaschine suffix Hauptgerät
attr Waschkeller_Waschmaschine webCmd getConfig
define Waschkeller_Waschmaschine_HourCounter HourCounter Waschkeller_Waschmaschine_Switch:on Waschkeller_Waschmaschine_Switch:off
attr Waschkeller_Waschmaschine_HourCounter alias Waschkeller: Waschmaschine Betriebsstundenzähler
attr Waschkeller_Waschmaschine_HourCounter description Waschmaschine
attr Waschkeller_Waschmaschine_HourCounter event-on-change-reading .*
attr Waschkeller_Waschmaschine_HourCounter group Waschmaschine
attr Waschkeller_Waschmaschine_HourCounter icon time_timer
attr Waschkeller_Waschmaschine_HourCounter room Waschkeller
attr Waschkeller_Waschmaschine_HourCounter sortby Waschkeller: Waschmaschine_020
attr Waschkeller_Waschmaschine_HourCounter stateFormat {return HourCounter_stateFormat($name)}
attr Waschkeller_Waschmaschine_HourCounter suffix Betriebsstundenzähler
attr Waschkeller_Waschmaschine_HourCounter userReadings pulseTimeAverage:value:.0 {HourCounter_pulseTimeAverage($name)}
define Waschkeller_Waschmaschine_Switch CUL_HM 2C10D801
attr Waschkeller_Waschmaschine_Switch alias Waschkeller: Waschmaschine
attr Waschkeller_Waschmaschine_Switch description Waschmaschine
attr Waschkeller_Waschmaschine_Switch devStateIcon off:ios-off:on .*:ios-on-blue:off
attr Waschkeller_Waschmaschine_Switch event-on-change-reading state
attr Waschkeller_Waschmaschine_Switch group Waschmaschine
attr Waschkeller_Waschmaschine_Switch icon scene_washing_machine
attr Waschkeller_Waschmaschine_Switch model HM-ES-PMSw1-Pl
attr Waschkeller_Waschmaschine_Switch peerIDs 00000000,
attr Waschkeller_Waschmaschine_Switch room Waschkeller
attr Waschkeller_Waschmaschine_Switch sortby Waschkeller: Waschmaschine_011
attr Waschkeller_Waschmaschine_Switch webCmd on:off
define Waschkeller_Waschmaschine_controlUnit dummy
attr Waschkeller_Waschmaschine_controlUnit userattr actor sensor
attr Waschkeller_Waschmaschine_controlUnit actor Waschkeller_Waschmaschine_Switch
attr Waschkeller_Waschmaschine_controlUnit alias Waschkeller: Waschmaschine Steuereinheit
attr Waschkeller_Waschmaschine_controlUnit description Waschmaschine
attr Waschkeller_Waschmaschine_controlUnit devStateIcon auto:time_automatic@green:controlMode%20manual manual:time_manual_mode@red:controlMode%20auto
attr Waschkeller_Waschmaschine_controlUnit group Waschmaschine
attr Waschkeller_Waschmaschine_controlUnit icon hm_ccu
attr Waschkeller_Waschmaschine_controlUnit model washer
attr Waschkeller_Waschmaschine_controlUnit readingList R-mediumRuntime R-powerDone R-waitDone controlMode time
attr Waschkeller_Waschmaschine_controlUnit room Waschkeller
attr Waschkeller_Waschmaschine_controlUnit setList R-mediumRuntime \
R-powerDone:1,2,3,4,5 \
R-waitDone:selectnumbers,60,60,300,0,lin\
controlMode:auto,manual \
time:00:00,00:15,00:30,00:45,01:00,01:15,01:30,01:45,02:00,02:15,02:30,02:45,03:00,03:15,03:30,03:45,04:00,04:15,04:30,04:45,05:00,05:15,05:30,05:45,06:00,06:15,06:30,06:45,07:00,07:15,07:30,07:45,08:00,08:15,08:30,08:45,09:00,09:15,09:30,09:45,10:00,10:15,10:30,10:45,11:00,11:15,11:30,11:45,12:00,12:15,12:30,12:45,13:00,13:15,13:30,13:45,14:00,14:15,14:30,14:45,15:00,15:15,15:30,15:45,16:00,16:15,16:30,16:45,17:00,17:15,17:30,17:45,18:00,18:15,18:30,18:45,19:00,19:15,19:30,19:45,20:00,20:15,20:30,20:45,21:00,21:15,21:30,21:45,22:00,22:15,22:30,22:45,23:00,23:15,23:30,23:45,24:00
attr Waschkeller_Waschmaschine_controlUnit sortby Waschkeller: Waschmaschine_001
attr Waschkeller_Waschmaschine_controlUnit stateFormat controlMode
attr Waschkeller_Waschmaschine_controlUnit subType controlUnit
attr Waschkeller_Waschmaschine_controlUnit suffix Steuereinheit
attr Waschkeller_Waschmaschine_controlUnit webCmd time
attr Waschkeller_Waschmaschine_controlUnit widgetOverride setList:textField-long
define Waschkeller_Waschmaschine_meter CUL_HM 2C10D802
attr Waschkeller_Waschmaschine_meter alias Waschkeller: Waschmaschine Elektrizitätszähler
attr Waschkeller_Waschmaschine_meter captionRoom {AttrVal(InternalVal(InternalVal($name, "device", undef), "channel_01", undef), "room", undef)}
attr Waschkeller_Waschmaschine_meter description {AttrVal(InternalVal(InternalVal($name, "device", undef), "channel_01", undef), "description", undef)}
attr Waschkeller_Waschmaschine_meter event-on-update-reading energy,power
attr Waschkeller_Waschmaschine_meter group Waschmaschine
attr Waschkeller_Waschmaschine_meter icon measure_power_meter
attr Waschkeller_Waschmaschine_meter index {AttrVal(InternalVal(InternalVal($name, "device", undef), "channel_01", undef), "index", undef)}
attr Waschkeller_Waschmaschine_meter model HM-ES-PMSw1-Pl
attr Waschkeller_Waschmaschine_meter room Waschkeller
attr Waschkeller_Waschmaschine_meter sortby Waschkeller: Waschmaschine_012
attr Waschkeller_Waschmaschine_meter stateFormat {sprintf("consumption %.1f W", ReadingsVal($name, "power", 0) / 1000)}
attr Waschkeller_Waschmaschine_meter suffix Elektrizitätszähler
setstate Waschkeller_Waschmaschine 2017-07-31 16:57:15 Activity unknown
setstate Waschkeller_Waschmaschine 2017-07-16 16:07:21 D-firmware 1.6
setstate Waschkeller_Waschmaschine 2017-07-16 16:07:21 D-serialNr LEQ0536641
setstate Waschkeller_Waschmaschine_HourCounter <table style="text-align: left;;"><tr><td>heute</td><td style="text-align: right;; padding-right: 0px;;">0.0</td><td style="padding-left: 0px;;"> ;h</td></tr><tr><td>insgesamt</td><td style="text-align: right;; padding-right: 0px;;">228.4</td><td style="padding-left: 0px;;"> ;h</td></tr><tr><td>Laufzeit</td><td style="text-align: right;; padding-right: 0px;;">2.3</td><td style="padding-left: 0px;;"> ;h</td></tr></table>
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 countsOverall 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 countsPerDay 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pauseTimeEdge 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pauseTimeIncrement 75355
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pauseTimeOverall 75355
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pauseTimePerDay 3951
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-13 04:44:30 pulseTimeAverage 8306
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pulseTimeEdge 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pulseTimeIncrement 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pulseTimeOverall 822338
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 pulseTimePerDay 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 state 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 08:54:09 tickDay 2
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 tickHour 11
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-29 13:43:03 tickMonth 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 tickUpdated 14
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 08:54:09 tickWeek 2
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-29 13:43:03 tickYear 0
setstate Waschkeller_Waschmaschine_HourCounter 2017-07-30 10:00:00 value 0
setstate Waschkeller_Waschmaschine_controlUnit manual
setstate Waschkeller_Waschmaschine_controlUnit 2016-04-08 21:56:02 R-mediumRuntime 02:30
setstate Waschkeller_Waschmaschine_controlUnit 2016-04-08 21:56:07 R-powerDone 3
setstate Waschkeller_Waschmaschine_controlUnit 2016-04-08 21:56:13 R-waitDone 180
setstate Waschkeller_Waschmaschine_controlUnit 2017-07-13 03:11:06 controlMode manual
setstate Waschkeller_Waschmaschine_controlUnit 2017-07-12 22:07:37 time 05:30
setstate Waschkeller_Waschmaschine_meter consumption 0.0 W
setstate Waschkeller_Waschmaschine_meter 2017-07-12 20:00:39 .RegL_01. 08:00 7A:01 7B:08 7C:00 7D:27 7E:10 7F:00 80:64 81:00 82:64 83:64 00:00
setstate Waschkeller_Waschmaschine_meter 2017-02-07 19:43:38 .energy_LastDV -0.000
setstate Waschkeller_Waschmaschine_meter 2017-02-07 19:43:38 .energy_LastDt 180
setstate Waschkeller_Waschmaschine_meter 2017-02-07 19:43:38 .energy_PowerDayCount 1
setstate Waschkeller_Waschmaschine_meter 2017-02-07 19:43:38 .energy_PowerDaySum 0.000
setstate Waschkeller_Waschmaschine_meter 2017-02-07 19:43:38 .energy_PrevRead 4.509
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-averaging 1 s
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-sign off
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-txMinDly 8 s
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-txThrCur 100 mA
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-txThrFrq 1 Hz
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-txThrPwr 100 W
setstate Waschkeller_Waschmaschine_meter 2016-10-29 22:42:20 R-txThrVlt 10 V
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 boot off
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 current 0
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 eState E: 27246.9 P: 0 I: 0 U: 234.4 f: 50.01
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 energy 27246.9
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 energyCalc 99964.9
setstate Waschkeller_Waschmaschine_meter 2017-05-02 02:04:35 energyOffset 72718
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 frequency 50.01
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 power 0
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 state 27246.9
setstate Waschkeller_Waschmaschine_meter 2017-07-16 16:51:02 voltage 234.4
defmod myFHEMWEB FHEMWEB 8083 global
attr myFHEMWEB JavaScripts codemirror/fhem_codemirror.js
attr myFHEMWEB codemirrorParam {\
"autoCloseBrackets": true\
, "autocomplete": true\
, "autocompleteAlways": false\
, "autofocus": true\
, "autoRefresh": true\
, "comment": true\
, "height": false\
, "indentUnit": 2 \
, "indentWithTabs": false\
, "jumpToLine": false\
, "lineNumbers": true\
, "lineWrapping": true\
, "matchBrackets": true\
, "search": true\
, "smartIndent": true\
, "theme": "blackboard"\
, "type": "fhem"\
}
attr myFHEMWEB editFileList Own modules and helper files:$MW_dir:^(.*sh|[0-9][0-9].*Util.*pm|.*cfg|.*holiday|myUtilsTemplate.pm|.*layout|59_LuftdatenInfo.pm|98_archetype.pm)$\
Gplot files:$FW_gplotdir:^.*gplot$\
Styles:$FW_cssdir:^.*(css|svg)$\
modules:$MW_dir:^([0-8][0-9]|9[0-8]).*.pm$
attr myFHEMWEB icon system_fhem
attr myFHEMWEB menuEntries hidden,room=hidden
attr myFHEMWEB nrAxis 0,2,0,2
attr myFHEMWEB plotWeekStartDay 1
attr myFHEMWEB plotsize 640,360
attr myFHEMWEB room interfaces
attr myFHEMWEB roomIcons .*:
attr myFHEMWEB sortRooms Wohnung \
Wäschekeller \
Waschkeller \
Flur \
Badezimmer \
Küche \
Schlafzimmer \
Arbeitszimmer \
Wohnzimmer \
Außenbereich
attr myFHEMWEB stylesheetPrefix dark
attr myFHEMWEB title {FHEMWEB_Utils_title()}
attr myFHEMWEB widgetOverride JavaScripts:textField-long \
codemirrorParam:textField-long \
sortRooms:textField-long \
widgetOverride:textField-long
Die Spaltenanpassung via colspan in fhemweb.js kam mit eingebauten Tabellen nicht zurecht, das habe ich jetzt gefixt. Was mir bei der Kontrolle mit fhem.cfg.demo aufgefallen ist: dashboard setzt fuer viele(?) td's colspan=10, das finde ich extrem unsympatisch. Tabellen in dashboard schauen nach dem Fix zwar etwas besser aus, aber immer noch nicht richtig.