Hi,
ich habe 2 Zähler die ich mit dem OBIS Modul und einen Dummy Zähler die ich mit dem statistics Modul auswerte.
Irgendwie bekomme ich aber seid dem haufenweise Perf Fehler/Warnings im Logfile.
Kan mir da ggf jemand einen Tipp oder ne Lösung geben?
2020.05.28 21:35:15 1: PERL WARNING: Argument "Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-..." isn't numeric in division (/) at (eval 10953) line 2.
2020.05.28 21:35:15 1: PERL WARNING: Argument "Hour: 34.5 Day: 34.5 Month: 34.5 Year: 34.5 (since: 2020..." isn't numeric in division (/) at (eval 10955) line 2.
2020.05.28 21:35:20 1: PERL WARNING: Argument "Hour: 40.2 Day: 40.2 Month: 40.2 Year: 40.2 (since: 2020..." isn't numeric in division (/) at (eval 11294) line 2.
2020.05.28 21:35:20 1: PERL WARNING: Argument "Hour: 40.2 Day: 40.2 Month: 40.2 Year: 40.2 (since: 2020..." isn't numeric in division (/) at (eval 11315) line 2.
2020.05.28 21:35:49 1: PERL WARNING: Argument "Hour: 45.9 Day: 45.9 Month: 45.9 Year: 45.9 (since: 2020..." isn't numeric in division (/) at (eval 11371) line 2.
2020.05.28 21:35:49 1: PERL WARNING: Argument "Hour: 45.9 Day: 45.9 Month: 45.9 Year: 45.9 (since: 2020..." isn't numeric in division (/) at (eval 11392) line 2.
2020.05.28 21:36:10 1: PERL WARNING: Argument "Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-..." isn't numeric in division (/) at (eval 11417) line 2.
2020.05.28 21:36:10 1: PERL WARNING: Argument "Hour: 45.9 Day: 45.9 Month: 45.9 Year: 45.9 (since: 2020..." isn't numeric in division (/) at (eval 11419) line 2.
2020.05.28 21:36:19 1: PERL WARNING: Argument "Hour: 51.6 Day: 51.6 Month: 51.6 Year: 51.6 (since: 2020..." isn't numeric in division (/) at (eval 11758) line 2.
2020.05.28 21:36:19 1: PERL WARNING: Argument "Hour: 51.6 Day: 51.6 Month: 51.6 Year: 51.6 (since: 2020..." isn't numeric in division (/) at (eval 11779) line 2.
Hier mal ein List der Devices:
Internals:
DEF /dev/ttyUSB0@9600,8,N,1 SML
DeviceName /dev/ttyUSB0@9600,8,N,1
FD 7
FUUID 5ecc1694-f33f-3f4d-9a66-e39a4f030cb13adf
MeterType SML
NAME Zaehler1
NR 16
PARTIAL
STATE 847.2 W (203.8 W / 499.2 W / 144.2 W)
TYPE OBIS
Helper:
DBLOG:
1.0.36.7.0.255:
DBLogging:
TIME 1590695509.27687
VALUE 203.8
1.0.56.7.0.255:
DBLogging:
TIME 1590695509.27687
VALUE 499.2
1.0.76.7.0.255:
DBLogging:
TIME 1590695509.27687
VALUE 144.2
power:
DBLogging:
TIME 1590695509.27687
VALUE 847.2
statTotal_consumption:
DBLogging:
TIME 1590695509.27687
VALUE Hour: 248.6 Day: 248.6 Month: 248.6 Year: 248.6 (since: 2020-05-28_21:32:50 )
statTotal_consumptionDay:
DBLogging:
TIME 1590695509.27687
VALUE 248.6
statTotal_consumptionHour:
DBLogging:
TIME 1590695509.27687
VALUE 248.6
statTotal_consumptionHourLast:
DBLogging:
TIME 1590692395.04216
VALUE 355.4
statTotal_consumptionLast:
DBLogging:
TIME 1590692395.04216
VALUE Hour: 355.4 Day: 12877.2 Month: - Year: -
statTotal_consumptionMonth:
DBLogging:
TIME 1590695509.27687
VALUE 248.6
statTotal_consumptionYear:
DBLogging:
TIME 1590695509.27687
VALUE 248.6
statTotal_feed:
DBLogging:
TIME 1590694400.06191
VALUE Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-28_21:32:50 )
statTotal_feedDay:
DBLogging:
TIME 1590694400.06191
VALUE 0.0
statTotal_feedHour:
DBLogging:
TIME 1590694400.06191
VALUE 0.0
statTotal_feedHourLast:
DBLogging:
TIME 1590692395.12518
VALUE 1.5
statTotal_feedLast:
DBLogging:
TIME 1590692395.12518
VALUE Hour: 1.5 Day: 5219.6 Month: - Year: - (since: 2020-05-27_15:50:15 )
statTotal_feedMonth:
DBLogging:
TIME 1590694400.06191
VALUE 0.0
statTotal_feedYear:
DBLogging:
TIME 1590694400.06191
VALUE 0.0
total_consumption:
DBLogging:
TIME 1590695509.27687
VALUE 4776272.5
READINGS:
2020-05-28 21:51:49 1.0.0.0.0.255 31-45-4D-48-30-30-30-38-32-32-37-38-32-34
2020-05-28 21:51:49 1.0.0.0.9.255 09-01-45-4D-48-00-00-7D-8B-F0
2020-05-28 21:51:49 1.0.36.7.0.255 203.8
2020-05-28 21:51:49 1.0.56.7.0.255 499.2
2020-05-28 21:51:49 1.0.76.7.0.255 144.2
2020-05-28 21:51:49 129.129.199.130.3.255 EMH
2020-05-28 21:51:49 129.129.199.130.5.255 5DE7-6CED-2812-4C24-F586-5EC5-669D-397C-A791-81C6-B7B8-595F-CF09-C9BE-C784-2B54-35ED-BAB6-716F-87C5-4646-979F-AE33-D525-01
2020-05-28 21:51:49 BezugKWh_total 4776.2725
2020-05-28 21:51:49 Leistung_P3 144.2
2020-05-28 21:51:49 Leistung_total 847.2
2020-05-28 21:51:49 LieferungKWh_total 2081.8706
2020-05-28 15:28:25 Version EMH\31454D4830303038323237383234\0901454D4800007D8BF0
2020-05-28 21:51:49 power 847.2
2020-05-28 21:51:49 statPower Hour: 161.8 Day: 161.8 Month: 161.8 Year: 161.8 (since: 2020-05-28_21:39:49 )
2020-05-28 21:51:49 statPowerDay 161.8
2020-05-27 23:59:55 statPowerDayLast Min: 668.9 Avg: -61.9 Max: 668.9 (since: )
2020-05-28 21:51:49 statPowerHour 161.8
2020-05-28 21:51:49 statPowerMonth 161.8
2020-05-28 21:51:49 statPowerYear 161.8
2020-05-28 21:51:49 statTotal_consumption Hour: 248.6 Day: 248.6 Month: 248.6 Year: 248.6 (since: 2020-05-28_21:32:50 )
2020-05-28 21:51:49 statTotal_consumptionDay 248.6
2020-05-27 23:59:55 statTotal_consumptionDayLast 12877.2
2020-05-26 12:33:18 statTotal_consumptionDayLastPrice 0.2476
2020-05-26 12:17:26 statTotal_consumptionDayPrice 0.2476
2020-05-28 21:51:49 statTotal_consumptionHour 248.6
2020-05-28 20:59:55 statTotal_consumptionHourLast 355.4
2020-05-28 20:59:55 statTotal_consumptionLast Hour: 355.4 Day: 12877.2 Month: - Year: -
2020-05-28 21:51:49 statTotal_consumptionMonth 248.6
2020-05-26 12:17:35 statTotal_consumptionMonthPrice 0.2476
2020-05-28 21:51:49 statTotal_consumptionYear 248.6
2020-05-26 12:17:50 statTotal_consumptionYearPrice 0.2476
2020-05-28 21:51:49 statTotal_feed Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-28_21:32:50 )
2020-05-28 21:51:49 statTotal_feedDay 0.0
2020-05-27 23:59:55 statTotal_feedDayLast 5219.6
2020-05-27 15:50:51 statTotal_feedDayLastPrice 0.2874
2020-05-27 15:50:51 statTotal_feedDayPrice 0.2874
2020-05-28 21:51:49 statTotal_feedHour 0.0
2020-05-28 20:59:55 statTotal_feedHourLast 1.5
2020-05-28 20:59:55 statTotal_feedLast Hour: 1.5 Day: 5219.6 Month: - Year: - (since: 2020-05-27_15:50:15 )
2020-05-28 21:51:49 statTotal_feedMonth 0.0
2020-05-27 15:50:51 statTotal_feedMonthPrice 0.2874
2020-05-28 21:51:49 statTotal_feedYear 0.0
2020-05-27 15:50:51 statTotal_feedYearPrice 0.2874
2020-05-28 20:56:48 state opened
2020-05-28 21:51:49 total_consumption 4776272.5
2020-05-26 12:18:01 total_consumptionPrice 0.2476
2020-05-28 21:51:49 total_consumption_Ch1 0
2020-05-28 21:51:49 total_consumption_Ch2 4776272.5
2020-05-28 21:51:49 total_feed 2081870.6
2020-05-27 15:50:51 total_feedPrice 0.2874
2020-05-28 21:51:49 total_feed_Ch1 2081870.6
2020-05-28 21:51:49 total_feed_Ch2 0
helper:
BUFFER
EoM 1
SPEED 5
SPEED2 5
TRIGGERTIME 1590692208.00386
_98_statistics haus.strom.statistik
Channels:
DEVICES:
30
directions:
Attributes:
DbLogExclude .*
DbLogInclude total_consumption,power,total_feed,1.0.36.7.0.255,1.0.56.7.0.255,1.0.76.7.0.255,statTotal_.*
alias Bezug-Lieferung
event-on-change-reading .*
group Stromzaehler,
interval 30
room Strom
stateFormat power W (1.0.36.7.0.255 W / 1.0.56.7.0.255 W / 1.0.76.7.0.255 W)
userReadings BezugKWh_total {my $v = ReadingsVal($name,"total_consumption","0")/1000;; $v},
LieferungKWh_total {my $v = ReadingsVal($name,"total_feed","0")/1000;; $v},
Leistung_P3 {my $power = ReadingsVal($name,"1.0.76.7.0.255","0");;my $powersolar = ReadingsVal("Zaehler2","1.0.76.7.0.255","0");; my $powertotal = $power-$powersolar},
Leistung_total {my $v = ReadingsVal($name,"1.0.36.7.0.255","0")+ReadingsVal($name,"1.0.56.7.0.255","0")+ReadingsVal($name,"Leistung_P3","0");; $v}
Internals:
DEF /dev/ttyUSB1@9600,8,N,1 SML
DeviceName /dev/ttyUSB1@9600,8,N,1
FD 8
FUUID 5ecc1787-f33f-3f4d-419d-1d6ef8017908bd84
MeterType SML
NAME Zaehler2
NR 17
PARTIAL
STATE 0 W
TYPE OBIS
Helper:
DBLOG:
power:
DBLogging:
TIME 1590692928.93204
VALUE 0
statTotal_feed:
DBLogging:
TIME 1590692928.93204
VALUE Hour: 2.1 Day: 29609.4 Month: 29609.4 Year: 29609.4 (since: 2020-05-28 )
statTotal_feedDay:
DBLogging:
TIME 1590692928.93204
VALUE 29609.4
statTotal_feedHour:
DBLogging:
TIME 1590692928.93204
VALUE 2.1
statTotal_feedHourLast:
DBLogging:
TIME 1590692395.10735
VALUE 266.7
statTotal_feedLast:
DBLogging:
TIME 1590692395.10735
VALUE Hour: 266.7 Day: 10467.1 Month: - Year: - (since: 2020-05-27_15:33:19 )
statTotal_feedMonth:
DBLogging:
TIME 1590692928.93204
VALUE 29609.4
statTotal_feedYear:
DBLogging:
TIME 1590692928.93204
VALUE 29609.4
total_feed:
DBLogging:
TIME 1590692928.93204
VALUE 4391799.3
READINGS:
2020-05-28 21:52:49 1.0.0.0.0.255 31-45-4D-48-30-30-30-38-32-32-37-38-32-35
2020-05-28 21:52:49 1.0.0.0.9.255 09-01-45-4D-48-00-00-7D-8B-F1
2020-05-28 21:52:49 1.0.36.7.0.255 0
2020-05-28 21:52:49 1.0.56.7.0.255 0
2020-05-28 21:52:49 1.0.76.7.0.255 0
2020-05-28 21:52:49 129.129.199.130.3.255 EMH
2020-05-28 21:52:49 129.129.199.130.5.255 9B3C-4542-A6AA-705F-5C83-93C6-9CA2-14C0-6546-E7EE-E872-A2E5-4F86-816A-2634-3959-F03B-A1AA-34C6-8633-E0B5-6DC5-B15E-FE43-01
2020-05-28 21:52:49 ErzeugungKWh_total 4391.7993
2020-05-28 14:24:25 Version EMH\31454D4830303038323237383235\0901454D4800007D8BF1
2020-05-28 21:52:49 power 0
2020-05-28 21:24:17 statPowerDay Min: 0 Avg: 0 Max: 0 (since: 2020-05-28_21:24:17 )
2020-05-27 23:59:55 statPowerDayLast Min: -5118.0 Avg: -1314.2 Max: 0.0 (since: 2020-05-27_15:23:10 )
2020-05-28 21:24:17 statPowerMonth Min: 0 Avg: 0 Max: 0 (since: 2020-05-28_21:24:17 )
2020-05-28 21:24:17 statPowerYear Min: 0 Avg: 0 Max: 0 (since: 2020-05-28_21:24:17 )
2020-05-28 21:08:48 statTotal_feed Hour: 2.1 Day: 29609.4 Month: 29609.4 Year: 29609.4 (since: 2020-05-28 )
2020-05-28 21:08:48 statTotal_feedDay 29609.4
2020-05-27 23:59:55 statTotal_feedDayLast 10467.1
2020-05-27 15:35:43 statTotal_feedDayLastPrice 0.2874
2020-05-27 15:35:43 statTotal_feedDayPrice 0.2874
2020-05-28 21:08:48 statTotal_feedHour 2.1
2020-05-28 20:59:55 statTotal_feedHourLast 266.7
2020-05-28 20:59:55 statTotal_feedLast Hour: 266.7 Day: 10467.1 Month: - Year: - (since: 2020-05-27_15:33:19 )
2020-05-28 21:08:48 statTotal_feedMonth 29609.4
2020-05-27 15:35:43 statTotal_feedMonthPrice 0.2874
2020-05-28 21:08:48 statTotal_feedYear 29609.4
2020-05-27 15:35:43 statTotal_feedYearPrice 0.2874
2020-05-28 20:56:48 state opened
2020-05-28 21:52:49 total_consumption 165.7
2020-05-27 15:26:34 total_consumptionPrice 0.2874
2020-05-28 21:52:49 total_consumption_Ch1 0
2020-05-28 21:52:49 total_consumption_Ch2 165.7
2020-05-28 21:52:49 total_feed 4391799.3
2020-05-27 15:35:43 total_feedPrice 0.2874
2020-05-28 21:52:49 total_feed_Ch1 4391799.3
2020-05-28 21:52:49 total_feed_Ch2 0
helper:
BUFFER
EoM 1
SPEED 5
SPEED2 5
TRIGGERTIME 1590692208.01367
_98_statistics haus.strom.statistik
Channels:
DEVICES:
30
directions:
Attributes:
DbLogExclude .*
DbLogInclude total_consumption,power,total_feed,statTotal_.*
alias Solar
event-on-change-reading .*
group Stromzaehler
interval 30
room Strom
stateFormat power W
userReadings ErzeugungKWh_total {my $v = ReadingsVal($name,"total_feed","0")/1000;; $v}
Internals:
DEF
FUUID 5eceb362-f33f-3f4d-a1a8-39164cb595c9cc37
NAME Zaehler3
NR 26
STATE Verbrauch: 262.6 Wh / Eigenverbrauch: 0.0 Wh
TYPE dummy
Helper:
DBLOG:
statTotal_eigenverbrauch:
DBLogging:
TIME 1590694400.1907
VALUE Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-28_21:32:50 )
statTotal_eigenverbrauchDay:
DBLogging:
TIME 1590694400.1907
VALUE 0.0
statTotal_eigenverbrauchHour:
DBLogging:
TIME 1590694400.1907
VALUE 0.0
statTotal_eigenverbrauchHourLast:
DBLogging:
TIME 1590692395.15955
VALUE 265.2
statTotal_eigenverbrauchLast:
DBLogging:
TIME 1590692395.15955
VALUE Hour: 265.2 Day: 0.0 Month: - Year: - (since: 2020-05-27_21:12:37 )
statTotal_eigenverbrauchMonth:
DBLogging:
TIME 1590694400.1907
VALUE 0.0
statTotal_eigenverbrauchYear:
DBLogging:
TIME 1590694400.1907
VALUE 0.0
statTotal_verbrauch:
DBLogging:
TIME 1590695569.18973
VALUE Hour: 262.6 Day: 262.6 Month: 262.6 Year: 262.6 (since: 2020-05-28_21:32:50 )
statTotal_verbrauchDay:
DBLogging:
TIME 1590695569.18973
VALUE 262.6
statTotal_verbrauchHour:
DBLogging:
TIME 1590695569.18973
VALUE 262.6
statTotal_verbrauchHourLast:
DBLogging:
TIME 1590692395.17562
VALUE 620.6
statTotal_verbrauchLast:
DBLogging:
TIME 1590692395.17562
VALUE Hour: 620.6 Day: 1929.9 Month: - Year: - (since: 2020-05-27_21:13:45 )
statTotal_verbrauchMonth:
DBLogging:
TIME 1590695569.18973
VALUE 262.6
statTotal_verbrauchYear:
DBLogging:
TIME 1590695569.18973
VALUE 262.6
total_eigenverbrauch:
DBLogging:
TIME 1590692928.96356
VALUE 2309928.7
total_verbrauch:
DBLogging:
TIME 1590695569.18973
VALUE 7086215.2
READINGS:
2020-05-28 21:52:49 statTotal_eigenverbrauch Hour: 0.0 Day: 0.0 Month: 0.0 Year: 0.0 (since: 2020-05-28_21:32:50 )
2020-05-28 21:52:49 statTotal_eigenverbrauchDay 0.0
2020-05-27 23:59:55 statTotal_eigenverbrauchDayLast 0.0
2020-05-28 21:52:49 statTotal_eigenverbrauchHour 0.0
2020-05-28 20:59:55 statTotal_eigenverbrauchHourLast 265.2
2020-05-28 20:59:55 statTotal_eigenverbrauchLast Hour: 265.2 Day: 0.0 Month: - Year: - (since: 2020-05-27_21:12:37 )
2020-05-28 21:52:49 statTotal_eigenverbrauchMonth 0.0
2020-05-28 21:52:49 statTotal_eigenverbrauchYear 0.0
2020-05-28 21:52:49 statTotal_verbrauch Hour: 262.6 Day: 262.6 Month: 262.6 Year: 262.6 (since: 2020-05-28_21:32:50 )
2020-05-28 21:52:49 statTotal_verbrauchDay 262.6
2020-05-27 23:59:55 statTotal_verbrauchDayLast 1929.9
2020-05-28 21:52:49 statTotal_verbrauchHour 262.6
2020-05-28 20:59:55 statTotal_verbrauchHourLast 620.6
2020-05-28 20:59:55 statTotal_verbrauchLast Hour: 620.6 Day: 1929.9 Month: - Year: - (since: 2020-05-27_21:13:45 )
2020-05-28 21:52:49 statTotal_verbrauchMonth 262.6
2020-05-28 21:52:49 statTotal_verbrauchYear 262.6
2020-05-28 21:52:49 total_bezug 4776286.5
2020-05-28 21:52:49 total_eigenverbrauch 2309928.7
2020-05-28 20:05:59 total_lieferung 2081870.6
2020-05-28 21:08:48 total_solar 4391799.3
2020-05-28 21:52:49 total_verbrauch 7086215.2
helper:
_98_statistics haus.strom.statistik
Attributes:
DbLogExclude .*
DbLogInclude total_eigenverbrauch,total_verbrauch,statTotal_.*
alias Verbrauch
event-on-change-reading .*
group Stromzaehler
room Strom
stateFormat Verbrauch: statTotal_verbrauchDay Wh / Eigenverbrauch: statTotal_eigenverbrauchDay Wh
userReadings total_eigenverbrauch { ReadingsNum($name,"total_solar",0)-ReadingsNum($name,"total_lieferung",0); },
total_verbrauch { ReadingsNum($name,"total_bezug",0)+ReadingsNum($name,"total_eigenverbrauch",0); },
Internals:
CFGFN
DEF Zaehler1|Zaehler2|Zaehler3
DEV_REGEXP Zaehler1|Zaehler2|Zaehler3
FUUID 5ed00fd6-f33f-3f4d-93ac-cab12274e37de359
NAME haus.strom.statistik
NOTIFYDEV global,Zaehler1|Zaehler2|Zaehler3
NR 154
NTFY_ORDER 10-haus.strom.statistik
PREFIX stat
STATE Updated stats for: Zaehler3
TYPE statistics
READINGS:
2020-05-28 21:24:17 monitoredDevicesOBIS Zaehler1,Zaehler2
2020-05-28 21:24:17 monitoredDevicesUnsupported Zaehler3#dummy
2020-05-28 21:28:19 monitoredDevicesdummy Zaehler3
2020-05-28 21:24:17 nextPeriodChangeCalc 2020-05-28 21:59:55
2020-05-28 21:54:19 state Updated stats for: Zaehler3
fhem:
modulVersion $Date: 2019-12-24 00:07:57 +0100 (Tue, 24 Dec 2019) $
nextPeriodChangeTime 1590695995
Attributes:
DbLogExclude .*
deltaReadings total_consumption,total_feed,total_eigenverbrauch,total_verbrauch,power
room Logik
singularReadings Zaehler1:total_consumption:Delta:(Year|Month|Hour|Day)|Zaehler1:total_feed:Delta:(Year|Month|Hour|Day)|Zaehler2:total_feed:Delta:(Year|Month|Hour|Day)|Zaehler3:total_verbrauch:Delta:(Year|Month|Hour|Day)|Zaehler3:total_eigenverbrauch:Delta:(Year|Month|Hour|Day)|Zaehler1:power:Delta:(Year|Month|Hour|Day)|Zaehler2:power:Delta:(Year|Month|Hour|Day)
Mit stacktrace aktiviert, sieht man mehr?
Hi,
das sagt das Stacktrace.
Hier mal der output:
2020.05.29 10:04:44 1: PERL WARNING: Argument "Hour: 155.1 Day: 1851.0 Month: 1851.0 Year: 1851.0 (sinc..." isn't numeric in division (/) at (eval 63995) line 2.
2020.05.29 10:04:44 1: stacktrace:
2020.05.29 10:04:44 1: main::__ANON__ called by (eval 63995) (2)
2020.05.29 10:04:44 1: (eval) called by ./FHEM/33_readingsGroup.pm (357)
2020.05.29 10:04:44 1: main::lookup2 called by ./FHEM/33_readingsGroup.pm (540)
2020.05.29 10:04:44 1: main::readingsGroup_value2html called by ./FHEM/33_readingsGroup.pm (1109)
2020.05.29 10:04:44 1: main::readingsGroup_2html called by ./FHEM/33_readingsGroup.pm (1210)
2020.05.29 10:04:44 1: main::readingsGroup_detailFn called by ./FHEM/01_FHEMWEB.pm (3307)
2020.05.29 10:04:44 1: main::FW_devState called by ./FHEM/01_FHEMWEB.pm (1826)
2020.05.29 10:04:44 1: main::FW_makeDeviceLine called by ./FHEM/01_FHEMWEB.pm (1999)
2020.05.29 10:04:44 1: main::FW_showRoom called by ./FHEM/01_FHEMWEB.pm (1165)
2020.05.29 10:04:44 1: main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (590)
2020.05.29 10:04:44 1: main::FW_Read called by fhem.pl (3789)
2020.05.29 10:04:44 1: main::CallFn called by fhem.pl (760)
2020.05.29 10:04:44 1: PERL WARNING: Argument "Hour: 182.5 Day: 10093.0 Month: 10093.0 Year: 10093.0 (s..." isn't numeric in division (/) at (eval 63997) line 2.
2020.05.29 10:04:44 1: stacktrace:
2020.05.29 10:04:44 1: main::__ANON__ called by (eval 63997) (2)
2020.05.29 10:04:44 1: (eval) called by ./FHEM/33_readingsGroup.pm (357)
2020.05.29 10:04:44 1: main::lookup2 called by ./FHEM/33_readingsGroup.pm (540)
2020.05.29 10:04:44 1: main::readingsGroup_value2html called by ./FHEM/33_readingsGroup.pm (1109)
2020.05.29 10:04:44 1: main::readingsGroup_2html called by ./FHEM/33_readingsGroup.pm (1210)
2020.05.29 10:04:44 1: main::readingsGroup_detailFn called by ./FHEM/01_FHEMWEB.pm (3307)
2020.05.29 10:04:44 1: main::FW_devState called by ./FHEM/01_FHEMWEB.pm (1826)
2020.05.29 10:04:44 1: main::FW_makeDeviceLine called by ./FHEM/01_FHEMWEB.pm (1999)
2020.05.29 10:04:44 1: main::FW_showRoom called by ./FHEM/01_FHEMWEB.pm (1165)
2020.05.29 10:04:44 1: main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (590)
2020.05.29 10:04:44 1: main::FW_Read called by fhem.pl (3789)
2020.05.29 10:04:44 1: main::CallFn called by fhem.pl (760)
Sieht also aus als wenn die Readingroup der Verursacher ist.
Hier mal das Listing:
nternals:
DEF <>,<|>,<Bezug>,<>,<|>,<Lieferung>,<>,<|>,<Solar>,<>,<|>,<EV>,<|>,<Verbrauch>
<hr>
Zaehler1:<|>,statTotal_consumptionDay,statTotal_consumptionDayPrice,<|>,statTotal_feedDay,statTotal_feedDayPrice,<|>,statTotal_feedDay@Zaehler2,statTotal_feedDayPrice@Zaehler2,<|>,statTotal_eigenverbrauch@Zaehler3,<|>,statTotal_verbrauch@Zaehler3
Zaehler1:<|>,statTotal_consumptionDayLast,statTotal_consumptionDayLastPrice,<|>,statTotal_feedDayLast,statTotal_feedDayLastPrice,<|>,statTotal_feedDayLast@Zaehler2,statTotal_feedDayLastPrice@Zaehler2,<|>,statTotal_eigenverbrauchDayLast@Zaehler3,<|>,statTotal_verbrauchDayLast@Zaehler3
Zaehler1:<|>,statTotal_consumptionMonth,statTotal_consumptionMonthPrice,<|>,statTotal_feedMonth,statTotal_feedMonthPrice,<|>,statTotal_feedMonth@Zaehler2,statTotal_feedMonthPrice@Zaehler2,<|>,statTotal_eigenverbrauchMonth@Zaehler3,<|>,statTotal_verbrauchMonth@Zaehler3
Zaehler1:<|>,statTotal_consumptionYear,statTotal_consumptionYearPrice,<|>,,statTotal_feedYear,statTotal_feedYearPrice,<|>,statTotal_feedYear@Zaehler2,statTotal_feedYearPrice@Zaehler2,<|>,statTotal_eigenverbrauchYear@Zaehler3,<|>,statTotal_verbrauchYear@Zaehler3
<hr>
Zaehler1:<|>,<>,total_consumption,<|>,<>,total_feed@Zaehler1,<|>,<>,total_feed@Zaehler2,<|>,<>,<>,<>
<hr>
Zaehler1:<|>,<>,<>,<>,<>,1.0.36.7.0.255,<|>,<>,1.0.36.7.0.255@Zaehler2,<|>,<>,<>,1.0.36.7.0.255
Zaehler1:<|>,<>,<>,<>,<>,1.0.56.7.0.255,<|>,<>,1.0.56.7.0.255@Zaehler2,<|>,<>,<>,1.0.56.7.0.255
Zaehler1:<|>,<>,<>,<>,<>,1.0.76.7.0.255,<|>,<>,1.0.76.7.0.255@Zaehler2,<|>,<>,<>,Leistung_P3
<hr>
Zaehler1:<|>,<>,<>,<>,<>,power,<|>,<>,power@Zaehler2,<|>,<>,<>,Leistung_total
FUUID 5ece7c85-f33f-3f4d-2945-23fc658bf8fb319b
NAME Zaehler.rg
NR 25
NTFY_ORDER 50-Zaehler.rg
STATE Initialized
TYPE readingsGroup
changed 0
mayBeVisible 1
CONTENT:
Zaehler1 1
CONTENT2:
Zaehler1 1
Zaehler2 1
Zaehler3 1
DEVICES:
ARRAY(0x2f051e0)
ARRAY(0x3ac92d8)
ARRAY(0x3ad1448)
ARRAY(0x3a56e60)
ARRAY(0x30fd488)
ARRAY(0x30bb230)
ARRAY(0x3ac92f0)
ARRAY(0x3b0f798)
ARRAY(0x3ac7b38)
ARRAY(0x3076f48)
ARRAY(0x3ab5df0)
ARRAY(0x3a7dc40)
ARRAY(0x3b479f0)
ARRAY(0x3a8bbf8)
DEVICES2:
ARRAY(0x2f051e0)
ARRAY(0x3ac92d8)
ARRAY(0x3ad1448)
ARRAY(0x3a56e60)
ARRAY(0x30fd488)
ARRAY(0x30bb230)
ARRAY(0x3ac92f0)
ARRAY(0x3b0f798)
ARRAY(0x3ac7b38)
ARRAY(0x3076f48)
ARRAY(0x3ab5df0)
ARRAY(0x3a7dc40)
ARRAY(0x3b479f0)
ARRAY(0x3a8bbf8)
ARRAY(0x3101238)
ARRAY(0x1c398e8)
ARRAY(0x2f051c8)
ARRAY(0x3b434f0)
ARRAY(0x3a7db50)
ARRAY(0x3b14458)
ARRAY(0x326e578)
ARRAY(0x3b95e28)
ARRAY(0x30fd6e0)
ARRAY(0x30c9c50)
ARRAY(0x3a933f0)
ARRAY(0x30a2bc0)
ARRAY(0x3a95c70)
ARRAY(0x3b96878)
ARRAY(0x3a88158)
ARRAY(0x30a9818)
ARRAY(0x3ab4fd8)
ARRAY(0x3a570b8)
ARRAY(0x3b141b8)
ARRAY(0x3b09608)
ARRAY(0x30ec3e8)
ARRAY(0x3aca348)
fhem:
lastDefChange 16
last_update 1590740191.99626
helper:
DEF
mapping {
if ($ROW == 3) {return "Heute"}
elsif ($ROW == 4) {return "Gestern"}
elsif ($ROW == 5) {return "Monat"}
elsif ($ROW == 6) {return "Jahr"}
elsif ($ROW == 8) {return "Zählerstand"}
elsif ($ROW == 10) {return "Leistung P1"}
elsif ($ROW == 11) {return "Leistung P2"}
elsif ($ROW == 12) {return "Leistung P3"}
elsif ($ROW == 14) {return "Leistung ∑"}
}
nameStyle nameStyle style="font-weight:bold"
valueFormat {
my $NewValue = $VALUE / 1000;
if ($READING =~ m/Price/) {
my $Price = ReadingsNum($DEVICE,substr($READING, 0,-5),0);
my $NewPrice = $NewValue * $Price;
return sprintf("%.2f €", $NewPrice );
}
elsif ($READING =~ m/^power/ || $READING =~ m/^1\.0\..*/ || $READING =~ m/Leistung_.*/) {
my $Power = ReadingsNum($DEVICE,$READING,0);
return sprintf("%.0f W", $Power );
}
else {
return sprintf("%.2f kWh", $NewValue )
}
}
valueStyle {
if($READING eq "total_consumption" || $READING eq "total_feed")
{ 'style="font-size:20px;;color:RoyalBlue;;text-align:right"'}
elsif(($READING eq "power" || $READING eq "Leistung_P3" || $READING eq "Leistung_total" || $READING eq "1.0.36.7.0.255" || $READING eq "1.0.56.7.0.255" || $READING eq "1.0.76.7.0.255") && $VALUE < 0)
{ 'style="color:green;;text-align:right"'}
elsif(($READING eq "power" || $READING eq "Leistung_P3" || $READING eq "Leistung_total" || $READING eq "1.0.36.7.0.255" || $READING eq "1.0.56.7.0.255" || $READING eq "1.0.76.7.0.255") && $VALUE > 0)
{ 'style="color:red;;text-align:right"'}
else{'style="color:black;;text-align:right"'}
}
cellStyle:
r:1,c:0 style="font-weight:bold"
r:2,c:0 style="font-weight:bold"
r:3,c:0 style="font-weight:bold"
r:4,c:0 style="font-weight:bold"
r:5,c:0 style="font-weight:bold"
r:6,c:0 style="font-weight:bold"
r:6,c:2 style="font-weight:bold"
positions:
Zaehler1.1.0.36.7.0.255 10:6,10:13
Zaehler1.1.0.56.7.0.255 11:6,11:13
Zaehler1.1.0.76.7.0.255 12:6
Zaehler1.Leistung_P3 12:13
Zaehler1.Leistung_total 14:13
Zaehler1.power 14:6
Zaehler1.statTotal_consumptionDay 3:2
Zaehler1.statTotal_consumptionDayLast 4:2
Zaehler1.statTotal_consumptionDayLastPrice 4:3
Zaehler1.statTotal_consumptionDayPrice 3:3
Zaehler1.statTotal_consumptionMonth 5:2
Zaehler1.statTotal_consumptionMonthPrice 5:3
Zaehler1.statTotal_consumptionYear 6:2
Zaehler1.statTotal_consumptionYearPrice 6:3
Zaehler1.statTotal_feedDay 3:5
Zaehler1.statTotal_feedDayLast 4:5
Zaehler1.statTotal_feedDayLastPrice 4:6
Zaehler1.statTotal_feedDayPrice 3:6
Zaehler1.statTotal_feedMonth 5:5
Zaehler1.statTotal_feedMonthPrice 5:6
Zaehler1.statTotal_feedYear 6:5
Zaehler1.statTotal_feedYearPrice 6:6
Zaehler1.total_consumption 8:3
Zaehler1.total_feed 8:6
Zaehler2.1.0.36.7.0.255 10:9
Zaehler2.1.0.56.7.0.255 11:9
Zaehler2.1.0.76.7.0.255 12:9
Zaehler2.power 14:9
Zaehler2.statTotal_feedDay 3:8
Zaehler2.statTotal_feedDayLast 4:8
Zaehler2.statTotal_feedDayLastPrice 4:9
Zaehler2.statTotal_feedDayPrice 3:9
Zaehler2.statTotal_feedMonth 5:8
Zaehler2.statTotal_feedMonthPrice 5:9
Zaehler2.statTotal_feedYear 6:8
Zaehler2.statTotal_feedYearPrice 6:9
Zaehler2.total_feed 8:9
Zaehler3.statTotal_eigenverbrauch 3:11
Zaehler3.statTotal_eigenverbrauchDayLast 4:11
Zaehler3.statTotal_eigenverbrauchMonth 5:11
Zaehler3.statTotal_eigenverbrauchYear 6:11
Zaehler3.statTotal_verbrauch 3:13
Zaehler3.statTotal_verbrauchDayLast 4:13
Zaehler3.statTotal_verbrauchMonth 5:13
Zaehler3.statTotal_verbrauchYear 6:13
values:
formated:
undef
undef
ARRAY(0x306a768)
ARRAY(0x3a88800)
undef
ARRAY(0x3ad39b0)
ARRAY(0x3a7e638)
undef
ARRAY(0x3b48868)
ARRAY(0x3ba9b38)
undef
ARRAY(0x3a81090)
undef
ARRAY(0x3b09cc8)
orig:
undef
undef
ARRAY(0x307aed0)
ARRAY(0x3ab4db0)
undef
ARRAY(0x3aca1a8)
ARRAY(0x3b48370)
undef
ARRAY(0x2ff66d8)
ARRAY(0x3a7ade8)
undef
ARRAY(0x3a81480)
undef
ARRAY(0x3a890f0)
prefixsuffix:
undef
undef
ARRAY(0x30e6d38)
ARRAY(0x3b47948)
undef
ARRAY(0x30a0178)
ARRAY(0x30d5110)
undef
ARRAY(0x3a7d970)
ARRAY(0x30b0170)
undef
ARRAY(0x3ac85d0)
undef
ARRAY(0x3054088)
Attributes:
DbLogExclude .*
alias Zählerdaten
cellStyle {
"r:1,c:0"=>'style="font-weight:bold"',
"r:2,c:0"=>'style="font-weight:bold"',
"r:3,c:0"=>'style="font-weight:bold"',
"r:4,c:0"=>'style="font-weight:bold"',
"r:5,c:0"=>'style="font-weight:bold"',
"r:6,c:0"=>'style="font-weight:bold"',
"r:6,c:2"=>'style="font-weight:bold"'
}
group Daten
mapping {
if ($ROW == 3) {return "Heute"}
elsif ($ROW == 4) {return "Gestern"}
elsif ($ROW == 5) {return "Monat"}
elsif ($ROW == 6) {return "Jahr"}
elsif ($ROW == 8) {return "Zählerstand"}
elsif ($ROW == 10) {return "Leistung P1"}
elsif ($ROW == 11) {return "Leistung P2"}
elsif ($ROW == 12) {return "Leistung P3"}
elsif ($ROW == 14) {return "Leistung ∑"}
}
nameStyle nameStyle style="font-weight:bold"
noheading 1
notime 1
room Strom
valueFormat {
my $NewValue = $VALUE / 1000;
if ($READING =~ m/Price/) {
my $Price = ReadingsNum($DEVICE,substr($READING, 0,-5),0);
my $NewPrice = $NewValue * $Price;
return sprintf("%.2f €", $NewPrice );
}
elsif ($READING =~ m/^power/ || $READING =~ m/^1\.0\..*/ || $READING =~ m/Leistung_.*/) {
my $Power = ReadingsNum($DEVICE,$READING,0);
return sprintf("%.0f W", $Power );
}
else {
return sprintf("%.2f kWh", $NewValue )
}
}
valueStyle {
if($READING eq "total_consumption" || $READING eq "total_feed")
{ 'style="font-size:20px;;color:RoyalBlue;;text-align:right"'}
elsif(($READING eq "power" || $READING eq "Leistung_P3" || $READING eq "Leistung_total" || $READING eq "1.0.36.7.0.255" || $READING eq "1.0.56.7.0.255" || $READING eq "1.0.76.7.0.255") && $VALUE < 0)
{ 'style="color:green;;text-align:right"'}
elsif(($READING eq "power" || $READING eq "Leistung_P3" || $READING eq "Leistung_total" || $READING eq "1.0.36.7.0.255" || $READING eq "1.0.56.7.0.255" || $READING eq "1.0.76.7.0.255") && $VALUE > 0)
{ 'style="color:red;;text-align:right"'}
else{'style="color:black;;text-align:right"'}
}
ich habe jetzt mal das ValueFormat der ReadingsGruppe geändert. Hoffe das fixt den Fehler.
{
if ($READING =~ m/Price/) {
my $Price = ReadingsVal($DEVICE,substr($READING, 0,-5),0);
my $NewPrice = ($VALUE/1000) * $Price;
return sprintf("%.2f €", $NewPrice );
}
elsif ($READING =~ m/^power/ || $READING =~ m/^1\.0\..*/ || $READING =~ m/Leistung_.*/) {
my $Power = ReadingsVal($DEVICE,$READING,0);
return sprintf("%.0f W", $Power );
}
elsif ($VALUE !~ m/Hour/) {
return sprintf("%.2f kWh", $VALUE/1000 );
}
}
Folgendes ist entweder ein Fehler oder ein Hack, was man per Kommentar begruenden sollte:
my $Price = ReadingsVal($DEVICE,substr($READING, 0,-5),0);