Leistungsprognose für Wechselrichter

Begonnen von ch.eick, 18 Januar 2021, 08:35:46

Vorheriges Thema - Nächstes Thema

DS_Starter

ZitatDie Readings vom Zähler passen (Die Namen sind etwas mistig...:-().
Poste doch mal bitte ein List vom Device MQTT2_Stromzaehler.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Jewe

Nicht nötig, meine Baustelle, muss die Namen im ESP (Tasmota) anpassen.

Jewe

Hallo  DS_Starter,

also es ist schon verzwickt. Habe das heute mal beobachtet, es wird eingespeist, aber statistic_todayGridFeedIn bleibt auf "0".

99 => tdayDvtn: -, ydayDvtn: 2.49
      feedintotal: 0, initdayfeedin: 0, gridcontotal: 40716818, initdaygcon: 40711016

List vom  Forecast Device:
Internals:
   FUUID      64597757-f33f-9f49-6f10-f76ba802c4949b64
   FVERSION   76_SolarForecast.pm:v0.79.3-s21735/2023-05-21 TESTING
   LCACHEFILE last write time: 17:14:35 File: ./FHEM/FhemUtils/PVH_SolarForecast_Forecast
   MODE       Automatic - next Cycletime: 17:24:57
   MODEL      DWD
   NAME       Forecast
   NOTIFYDEV  WK.Waschmaschine,WK.Trockner
   NR         772
   NTFY_ORDER 50-Forecast
   STATE      396 W
   TYPE       SolarForecast
   eventCount 21029
   HELPER:
     FW         WEB
     PACKAGE    FHEM::SolarForecast
     SPGDETAIL 
     SPGDEV     Forecast
     SPGROOM   
     VERSION    0.79.3
     VERSION_API unused
     VERSION_CTZ 1.0.0
     VERSION_ErrCodes unused
     VERSION_SMUtils 1.26.0
   OLDREADINGS:
   READINGS:
     2023-05-23 23:59:59   AllPVforecastsToEvent 0 Wh
     2023-05-23 17:24:47   Current_AutarkyRate 88 %
     2023-05-23 17:24:47   Current_Consumption 448 W
     2023-05-23 17:24:47   Current_GridConsumption 52 W
     2023-05-23 17:24:47   Current_GridFeedIn 0 W
     2023-05-23 17:24:47   Current_PV      396 W
     2023-05-23 17:24:47   Current_SelfConsumption 396 W
     2023-05-23 17:24:47   Current_SelfConsumptionRate 100 %
     2023-05-23 17:00:00   LastHourGridconsumptionReal 214 Wh
     2023-05-23 17:00:00   LastHourPVforecast 268 Wh
     2023-05-23 17:00:00   LastHourPVreal  200 Wh
     2023-05-23 17:24:47   NextHours_Sum01_PVforecast 182 Wh
     2023-05-23 17:24:47   NextHours_Sum02_PVforecast 299 Wh
     2023-05-23 17:24:47   NextHours_Sum03_PVforecast 353 Wh
     2023-05-23 17:24:47   NextHours_Sum04_ConsumptionForecast 2493 Wh
     2023-05-23 17:24:47   NextHours_Sum04_PVforecast 368 Wh
     2023-05-23 17:24:47   RestOfDayConsumptionForecast 3778 Wh
     2023-05-23 17:24:47   RestOfDayPVforecast 369 Wh
     2023-05-23 00:59:57   Today_Hour01_GridConsumption 376 Wh
     2023-05-23 00:59:57   Today_Hour01_GridFeedIn 0 Wh
     2023-05-23 00:59:57   Today_Hour01_PVreal 0 Wh
     2023-05-23 01:59:50   Today_Hour02_GridConsumption 319 Wh
     2023-05-23 01:59:50   Today_Hour02_GridFeedIn 0 Wh
     2023-05-23 01:59:50   Today_Hour02_PVreal 0 Wh
     2023-05-23 02:59:51   Today_Hour03_GridConsumption 309 Wh
     2023-05-23 02:59:51   Today_Hour03_GridFeedIn 0 Wh
     2023-05-23 02:59:51   Today_Hour03_PVreal 0 Wh
     2023-05-23 03:59:53   Today_Hour04_GridConsumption 299 Wh
     2023-05-23 03:59:53   Today_Hour04_GridFeedIn 0 Wh
     2023-05-23 03:59:53   Today_Hour04_PVreal 0 Wh
     2023-05-23 04:59:55   Today_Hour05_GridConsumption 295 Wh
     2023-05-23 04:59:55   Today_Hour05_GridFeedIn 0 Wh
     2023-05-23 04:59:55   Today_Hour05_PVreal 0 Wh
     2023-05-23 05:59:57   Today_Hour06_GridConsumption 334 Wh
     2023-05-23 05:59:57   Today_Hour06_GridFeedIn 0 Wh
     2023-05-23 05:59:57   Today_Hour06_PVforecast 1 Wh
     2023-05-23 05:59:57   Today_Hour06_PVreal 0 Wh
     2023-05-23 06:59:59   Today_Hour07_GridConsumption 530 Wh
     2023-05-23 06:59:59   Today_Hour07_GridFeedIn 0 Wh
     2023-05-23 06:59:59   Today_Hour07_PVforecast 14 Wh
     2023-05-23 06:59:59   Today_Hour07_PVreal 0 Wh
     2023-05-23 07:59:51   Today_Hour08_GridConsumption 471 Wh
     2023-05-23 07:59:51   Today_Hour08_GridFeedIn 0 Wh
     2023-05-23 07:59:51   Today_Hour08_PVforecast 42 Wh
     2023-05-23 07:59:51   Today_Hour08_PVreal 0 Wh
     2023-05-23 08:59:56   Today_Hour09_GridConsumption 350 Wh
     2023-05-23 08:59:56   Today_Hour09_GridFeedIn 0 Wh
     2023-05-23 08:59:56   Today_Hour09_PVforecast 79 Wh
     2023-05-23 08:59:56   Today_Hour09_PVreal 100 Wh
     2023-05-23 09:59:57   Today_Hour10_GridConsumption 427 Wh
     2023-05-23 09:59:57   Today_Hour10_GridFeedIn 0 Wh
     2023-05-23 09:59:57   Today_Hour10_PVforecast 119 Wh
     2023-05-23 09:59:57   Today_Hour10_PVreal 0 Wh
     2023-05-23 10:59:59   Today_Hour11_GridConsumption 376 Wh
     2023-05-23 10:59:59   Today_Hour11_GridFeedIn 0 Wh
     2023-05-23 10:59:59   Today_Hour11_PVforecast 161 Wh
     2023-05-23 10:59:59   Today_Hour11_PVreal 100 Wh
     2023-05-23 11:59:51   Today_Hour12_GridConsumption 236 Wh
     2023-05-23 11:59:51   Today_Hour12_GridFeedIn 0 Wh
     2023-05-23 11:59:51   Today_Hour12_PVforecast 202 Wh
     2023-05-23 11:59:51   Today_Hour12_PVreal 300 Wh
     2023-05-23 12:59:57   Today_Hour13_GridConsumption 173 Wh
     2023-05-23 12:59:57   Today_Hour13_GridFeedIn 0 Wh
     2023-05-23 12:59:57   Today_Hour13_PVforecast 385 Wh
     2023-05-23 12:59:57   Today_Hour13_PVreal 300 Wh
     2023-05-23 13:59:51   Today_Hour14_GridConsumption 704 Wh
     2023-05-23 13:59:51   Today_Hour14_GridFeedIn 0 Wh
     2023-05-23 13:59:51   Today_Hour14_PVforecast 307 Wh
     2023-05-23 13:59:51   Today_Hour14_PVreal 200 Wh
     2023-05-23 14:59:51   Today_Hour15_GridConsumption 97 Wh
     2023-05-23 14:59:51   Today_Hour15_GridFeedIn 0 Wh
     2023-05-23 14:59:51   Today_Hour15_PVforecast 325 Wh
     2023-05-23 14:59:51   Today_Hour15_PVreal 500 Wh
     2023-05-23 15:59:53   Today_Hour16_GridConsumption 270 Wh
     2023-05-23 15:59:53   Today_Hour16_GridFeedIn 0 Wh
     2023-05-23 15:59:53   Today_Hour16_PVforecast 258 Wh
     2023-05-23 15:59:53   Today_Hour16_PVreal 200 Wh
     2023-05-23 16:59:55   Today_Hour17_GridConsumption 214 Wh
     2023-05-23 16:59:55   Today_Hour17_GridFeedIn 0 Wh
     2023-05-23 16:59:55   Today_Hour17_PVforecast 268 Wh
     2023-05-23 16:59:55   Today_Hour17_PVreal 200 Wh
     2023-05-23 17:24:47   Today_Hour18_GridConsumption 24 Wh
     2023-05-23 17:24:47   Today_Hour18_GridFeedIn 0 Wh
     2023-05-23 17:24:47   Today_Hour18_PVforecast 210 Wh
     2023-05-23 17:24:47   Today_Hour18_PVreal 200 Wh
     2023-05-23 17:24:47   Today_Hour19_PVforecast 145 Wh
     2023-05-23 17:24:47   Today_Hour20_PVforecast 76 Wh
     2023-05-23 17:24:47   Today_Hour21_PVforecast 25 Wh
     2023-05-23 17:24:47   Today_Hour22_PVforecast 1 Wh
     2023-05-23 17:24:47   Today_MaxPVforecast 385 Wh
     2023-05-23 17:24:47   Today_MaxPVforecastTime 2023-05-23 12:00:00
     2023-05-23 17:24:47   Today_PVforecast 2618 Wh
     2023-05-23 17:23:31   Today_PVreal    2100 Wh
     2023-05-23 17:24:47   Today_SunRise   05:28
     2023-05-23 17:24:47   Today_SunSet    21:11
     2023-05-23 17:24:47   Tomorrow_ConsumptionForecast 14917 Wh
     2023-05-23 17:24:47   Tomorrow_PVforecast 3637 Wh
     2023-05-23 17:24:47   Tomorrow_SunRise 05:27
     2023-05-23 17:24:47   Tomorrow_SunSet 21:12
     2023-05-23 17:24:47   consumer01      name='WK.Waschmaschine' state='unknown' planningstate='suspended'
     2023-05-23 17:24:47   consumer02      name='WK.Trockner' state='unknown' planningstate='suspended'
     2023-05-10 23:49:30   currentForecastDev DWD
     2023-05-21 19:38:35   currentInverterDev pvAnlage pv=output_power:W etotal=total_generated_energy:kWh capacity=750
     2023-05-22 21:43:27   currentMeterDev MQTT2_Stromzaehler gcon=SENSOR_Strom_Power_cur:W contotal=SENSOR_Strom_Total_in:kWh gfeedin=-gcon feedtotal=SENSOR_Strom_Total_out:kWh
     2023-05-10 23:49:51   currentRadiationDev DWD
     2023-05-09 00:31:53   inverterStrings Balkonkraftwerk
     2023-05-09 00:31:53   moduleDirection Balkonkraftwerk=S
     2023-05-21 19:47:39   modulePeakString Balkonkraftwerk=0.85
     2023-05-21 19:48:17   moduleTiltAngle Balkonkraftwerk=50
     2023-05-23 17:24:47   nextCycletime   17:24:57
     2023-05-23 09:00:06   pvCorrectionFactor_09 1.14 (automatic - old factor: 1, cloudiness range: 86, days in range: 1)
     2023-05-23 09:00:06   pvCorrectionFactor_09_autocalc done
     2023-05-23 11:00:09   pvCorrectionFactor_11 0.81 (automatic - old factor: 1, cloudiness range: 84, days in range: 1)
     2023-05-23 11:00:09   pvCorrectionFactor_11_autocalc done
     2023-05-23 12:00:01   pvCorrectionFactor_12 1.25 (automatic - old factor: 1, cloudiness range: 83, days in range: 1)
     2023-05-23 12:00:01   pvCorrectionFactor_12_autocalc done
     2023-05-23 13:00:07   pvCorrectionFactor_13 1.92 (automatic - old factor: 1.42, cloudiness range: 76, days in range: 2)
     2023-05-23 13:00:07   pvCorrectionFactor_13_autocalc done
     2023-05-23 14:00:01   pvCorrectionFactor_14 0.86 (automatic - old factor: 0.98, cloudiness range: 73, days in range: 2)
     2023-05-23 14:00:01   pvCorrectionFactor_14_autocalc done
     2023-05-23 15:00:01   pvCorrectionFactor_15 1.27 (automatic - old factor: 1, cloudiness range: 70, days in range: 1)
     2023-05-23 15:00:01   pvCorrectionFactor_15_autocalc done
     2023-05-23 16:00:03   pvCorrectionFactor_16 0.66 (automatic - old factor: 0.80, cloudiness range: 69, days in range: 2)
     2023-05-23 16:00:03   pvCorrectionFactor_16_autocalc done
     2023-05-23 17:00:05   pvCorrectionFactor_17 0.88 (automatic - old factor: 1, cloudiness range: 69, days in range: 1)
     2023-05-23 17:00:05   pvCorrectionFactor_17_autocalc done
     2023-05-23 17:24:47   pvCorrectionFactor_Auto on
     2023-05-23 17:24:48   state           updated
     2023-05-23 17:24:47   statistic_response_message -
     2023-05-23 17:24:47   statistic_todayGridConsumption 5804.0 Wh
     2023-05-23 17:24:47   statistic_todayGridFeedIn 0.0 Wh
Attributes:
   DbLogExclude .*
   affect70percentRule 0
   comment    update per "wget -qO /opt/fhem/FHEM/76_SolarForecast.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SolarForecast.pm"
   consumer01 WK.Waschmaschine \
type=washingmachine \
power=2200 \
icon=scene_washing_machine \
mintime=210 \
on="set WK.Waschmaschine on" \
off="set WK.Waschmaschine off" \
swstate="WK.Waschmaschine:state":on:off \
pcurr="WK.Waschmaschine_Power:power":W:1\
etotal="WK.Waschmaschine_Power:energyCalc":Wh:1\
interruptable=0

   consumer02 WK.Trockner \\
type=dryer \\
power=2200 \\
icon=scene_clothes_dryer \\
mintime=210 \\
on="set WK.Trockner on" \\
off="set WK.Trockner off" \\
swstate="WK.Trockner:state":on:off \\
pcurr="WK.Trockner_Power:power":W:1\\
etotal="WK.Trockner_Power:energyCalc":Wh:1\\
interruptable=0
   ctrlInterval 10
   ctrlStatisticReadings response_message,todayGridConsumption,todayGridFeedIn
   event-on-change-reading .*
   flowGraphicAnimate 1
   flowGraphicShowConsumer 1
   flowGraphicShowConsumerDummy 1
   flowGraphicShowConsumerPower 1
   flowGraphicShowConsumerRemainTime 1
   flowGraphicSize 400
   graphicBeam1Color 3C14FF
   graphicBeam1Content pvForecast
   graphicBeam2Color 19FF29
   graphicBeam2Content pvReal
   graphicHeaderDetail all
   graphicHistoryHour 5
   graphicLayoutType double
   graphicShowDiff top
   graphicShowNight 0
   group      Energy Meter
   room       PV
   stateFormat Current_PV
   verbose    2


List vom Stromzähler Device:
Internals:
   CID        Stromzaehler
   DEF        Stromzaehler
   FUUID      6372b3b1-f33f-9f49-ce5d-55bea12eeb122b74
   FVERSION   10_MQTT2_DEVICE.pm:0.268600/2022-12-16
   IODev      mqtt2Server
   LASTInputDev mqtt2Server
   MSGCNT     5092
   NAME       MQTT2_Stromzaehler
   NR         738
   STATE      Strom: 132 W - Zählerstand: 40716.82 kWh - heute: 5.81 kWh - gestern: 8.09 kWh - WebLink: <html><a href='http://192.168.6.91/'>WEB</a></html>
   TYPE       MQTT2_DEVICE
   eventCount 5113
   mqtt2Server_CONN mqtt2Server_192.168.6.91_52544
   mqtt2Server_MSGCNT 5092
   mqtt2Server_TIME 2023-05-23 17:26:57
   Helper:
     DBLOG:
       SENSOR_Strom_Power_cur:
         impDbLog:
           TIME       1684855617.4788
           VALUE      132
       SENSOR_Strom_Total_in:
         impDbLog:
           TIME       1684855617.4788
           VALUE      40716.824
       statSENSOR_Strom_Total_in:
         impDbLog:
           TIME       1684855617.4788
           VALUE      Hour: 0.028 Day: 5.812 Month: 260.193 Year: 2036.646
       statSENSOR_Strom_Total_inDay:
         impDbLog:
           TIME       1684855617.4788
           VALUE      5.812
       statSENSOR_Strom_Total_inDayLast:
         impDbLog:
           TIME       1684792795.01688
           VALUE      8.086
       statSENSOR_Strom_Total_inHour:
         impDbLog:
           TIME       1684855617.4788
           VALUE      0.028
       statSENSOR_Strom_Total_inHourLast:
         impDbLog:
           TIME       1684853995.02084
           VALUE      0.214
       statSENSOR_Strom_Total_inLast:
         impDbLog:
           TIME       1684853995.02084
           VALUE      Hour: 0.214 Day: 8.086 Month: 405.712 Year: 529.474 (since:  )
       statSENSOR_Strom_Total_inMonth:
         impDbLog:
           TIME       1684855617.4788
           VALUE      260.193
       statSENSOR_Strom_Total_inYear:
         impDbLog:
           TIME       1684855617.4788
           VALUE      2036.646
   READINGS:
     2023-05-21 19:58:50   INFO1_Info1_FallbackTopic cmnd/Stromzaehler_fb/
     2023-05-21 19:58:50   INFO1_Info1_GroupTopic cmnd/tasmotas/
     2023-05-21 19:58:50   INFO1_Info1_Module Sonoff Basic
     2023-05-21 19:58:50   INFO1_Info1_Version 11.1.0(tasmota)
     2023-05-21 19:58:50   INFO2_Info2_Hostname tasmota-CF9A06-6662
     2023-05-21 19:58:50   INFO2_Info2_IPAddress 192.168.6.91
     2023-05-21 19:58:50   INFO2_Info2_WebServerMode Admin
     2023-05-21 19:58:50   INFO3_Info3_BootCount 44
     2023-05-21 19:58:50   INFO3_Info3_RestartReason External System
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_1 40265f13
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_10 40299188
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_11 4022178c
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_12 40229fd2
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_13 40299188
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_14 4022a0a0
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_15 40299188
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_16 4022a0da
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_17 402537d8
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_18 4022a1f8
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_19 40290922
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_2 4024899d
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_20 4029970a
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_21 40299188
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_22 40201d7f
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_23 40299188
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_24 4022ace0
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_25 4022ae90
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_26 4023c806
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_27 40248c5a
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_28 402578fc
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_29 40249229
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_3 401012b8
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_30 40253e68
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_31 4022178c
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_4 40248cd9
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_5 40255d31
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_6 40248d5e
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_7 40248e38
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_8 40229f90
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_CallChain_9 402537d8
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_DEPC 00000000
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_EPC_1 4025ae8c
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_EPC_2 00000000
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_EPC_3 00000000
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_EXCVADDR 00000000
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_Exception 29
     2023-05-19 07:29:34   INFO3_Info3_RestartReason_Reason Exception
     2023-05-22 20:14:23   IODev           mqtt2Server
     2023-05-22 20:15:02   LWT             Online
     2023-05-22 20:15:02   POWER           
     2023-05-09 00:59:39   RESULT_FullTopic %prefix%/%topic%/
     2023-03-12 00:08:38   RESULT_LogHost 
     2023-03-12 00:08:38   RESULT_LogPort  514
     2023-05-09 00:59:39   RESULT_MqttClient Stromzaehler
     2023-05-09 00:59:39   RESULT_MqttHost 192.168.7.20
     2023-03-12 00:08:38   RESULT_MqttLog  0
     2023-05-09 00:59:39   RESULT_MqttPassword ****
     2023-05-09 00:59:39   RESULT_MqttPort 1883
     2023-05-09 00:59:39   RESULT_MqttUser DVES_USER
     2023-05-21 19:58:50   RESULT_POWER    ON
     2023-03-12 00:08:38   RESULT_SerialLog_0_Active 0
     2023-03-12 00:08:38   RESULT_SysLog_0_Active 0
     2023-03-12 00:08:38   RESULT_TelePeriod 30
     2023-05-09 00:59:39   RESULT_Topic    tasmota_%06X
     2023-03-12 00:08:38   RESULT_WebLog   2
     2023-05-23 17:26:57   SENSOR_Strom_Meter_id 0649534b010722f52389
     2023-05-23 17:26:57   SENSOR_Strom_Power_cur 132
     2023-05-23 17:26:57   SENSOR_Strom_Power_p1 0
     2023-05-23 17:26:57   SENSOR_Strom_Power_p2 0
     2023-05-23 17:26:57   SENSOR_Strom_Power_p3 0
     2023-05-23 17:26:57   SENSOR_Strom_Total_in 40716.824
     2023-05-23 17:26:57   SENSOR_Strom_Total_out 0.000
     2023-05-23 17:26:57   SENSOR_Time     2023-05-23T16:26:57
     2023-05-23 17:26:57   STATE_Heap      21
     2023-05-23 17:26:57   STATE_LoadAvg   19
     2023-05-23 17:26:57   STATE_MqttCount 5
     2023-05-23 17:26:57   STATE_POWER     ON
     2023-05-23 17:26:57   STATE_Sleep     50
     2023-05-23 17:26:57   STATE_SleepMode Dynamic
     2023-05-23 17:26:57   STATE_Time      2023-05-23T16:26:57
     2023-05-23 17:26:57   STATE_Uptime    1T21:28:17
     2023-05-23 17:26:57   STATE_UptimeSec 163697
     2023-05-23 17:26:57   STATE_Wifi_AP   1
     2023-05-23 17:26:57   STATE_Wifi_BSSId E6:63:DA:AD:EC:01
     2023-05-23 17:26:57   STATE_Wifi_Channel 1
     2023-05-23 17:26:57   STATE_Wifi_Downtime 0T00:03:54
     2023-05-23 17:26:57   STATE_Wifi_LinkCount 3
     2023-05-23 17:26:57   STATE_Wifi_Mode 11n
     2023-05-23 17:26:57   STATE_Wifi_RSSI 62
     2023-05-23 17:26:57   STATE_Wifi_SSId WELAN
     2023-05-23 17:26:57   STATE_Wifi_Signal -69
     2023-05-23 17:26:57   WebLink         <html><a href='http://192.168.6.91/'>WEB</a></html>
     2023-05-22 20:15:02   config_btn_1    0
     2023-05-22 20:15:02   config_btn_2    0
     2023-05-22 20:15:02   config_btn_3    0
     2023-05-22 20:15:02   config_btn_4    0
     2023-05-22 20:15:02   config_btn_5    0
     2023-05-22 20:15:02   config_btn_6    0
     2023-05-22 20:15:02   config_btn_7    0
     2023-05-22 20:15:02   config_btn_8    0
     2023-05-22 20:15:02   config_dn       Tasmota
     2023-05-22 20:15:02   config_fn_1     Tasmota
     2023-05-22 20:15:02   config_ft       %prefix%/%topic%/
     2023-05-22 20:15:02   config_hn       tasmota-CF9A06-6662
     2023-05-22 20:15:02   config_if       0
     2023-05-22 20:15:02   config_ip       192.168.6.91
     2023-05-22 20:15:02   config_lk       0
     2023-05-22 20:15:02   config_lt_st    0
     2023-05-22 20:15:02   config_mac      AC0BFBCF9A06
     2023-05-22 20:15:02   config_md       Sonoff Basic
     2023-05-22 20:15:02   config_ofln     Offline
     2023-05-22 20:15:02   config_onln     Online
     2023-05-22 20:15:02   config_rl_1     1
     2023-05-22 20:15:02   config_rl_2     0
     2023-05-22 20:15:02   config_rl_3     0
     2023-05-22 20:15:02   config_rl_4     0
     2023-05-22 20:15:02   config_rl_5     0
     2023-05-22 20:15:02   config_rl_6     0
     2023-05-22 20:15:02   config_rl_7     0
     2023-05-22 20:15:02   config_rl_8     0
     2023-05-22 20:15:02   config_sho_1    0
     2023-05-22 20:15:02   config_sho_2    0
     2023-05-22 20:15:02   config_sho_3    0
     2023-05-22 20:15:02   config_sho_4    0
     2023-05-22 20:15:02   config_so_11    0
     2023-05-22 20:15:02   config_so_114   0
     2023-05-22 20:15:02   config_so_117   0
     2023-05-22 20:15:02   config_so_13    0
     2023-05-22 20:15:02   config_so_17    0
     2023-05-22 20:15:02   config_so_20    0
     2023-05-22 20:15:02   config_so_30    0
     2023-05-22 20:15:02   config_so_4     0
     2023-05-22 20:15:02   config_so_68    0
     2023-05-22 20:15:02   config_so_73    0
     2023-05-22 20:15:02   config_so_82    0
     2023-05-22 20:15:02   config_state_1  OFF
     2023-05-22 20:15:02   config_state_2  ON
     2023-05-22 20:15:02   config_state_3  TOGGLE
     2023-05-22 20:15:02   config_state_4  HOLD
     2023-05-22 20:15:02   config_sw       11.1.0
     2023-05-22 20:15:02   config_swc_1    -1
     2023-05-22 20:15:02   config_swc_2    -1
     2023-05-22 20:15:02   config_swc_3    -1
     2023-05-22 20:15:02   config_swc_4    -1
     2023-05-22 20:15:02   config_swc_5    -1
     2023-05-22 20:15:02   config_swc_6    -1
     2023-05-22 20:15:02   config_swc_7    -1
     2023-05-22 20:15:02   config_swc_8    -1
     2023-05-22 20:15:02   config_t        tasmota_CF9A06
     2023-05-22 20:15:02   config_tp_1     cmnd
     2023-05-22 20:15:02   config_tp_2     stat
     2023-05-22 20:15:02   config_tp_3     tele
     2023-05-22 20:15:02   config_ty       0
     2023-05-22 20:15:02   config_ver      1
     2023-05-22 20:15:02   sensors_sn_Strom_Meter_id 0649534b010722f52389
     2023-05-22 20:15:02   sensors_sn_Strom_Power_cur 480
     2023-05-22 20:15:02   sensors_sn_Strom_Power_p1 0
     2023-05-22 20:15:02   sensors_sn_Strom_Power_p2 0
     2023-05-22 20:15:02   sensors_sn_Strom_Power_p3 0
     2023-05-22 20:15:02   sensors_sn_Strom_Total_in 40709.107
     2023-05-22 20:15:02   sensors_sn_Strom_Total_out 0.000
     2023-05-22 20:15:02   sensors_sn_Time 2023-05-22T19:15:02
     2023-05-22 20:15:02   sensors_ver     1
     2023-05-23 17:26:57   statSENSOR_Strom_Total_in Hour: 0.028 Day: 5.812 Month: 260.193 Year: 2036.646
     2023-05-23 17:26:57   statSENSOR_Strom_Total_inDay 5.812
     2023-05-22 23:59:55   statSENSOR_Strom_Total_inDayLast 8.086
     2023-05-23 17:26:57   statSENSOR_Strom_Total_inHour 0.028
     2023-05-23 16:59:55   statSENSOR_Strom_Total_inHourLast 0.214
     2023-05-23 16:59:55   statSENSOR_Strom_Total_inLast Hour: 0.214 Day: 8.086 Month: 405.712 Year: 529.474 (since:  )
     2023-05-23 17:26:57   statSENSOR_Strom_Total_inMonth 260.193
     2023-04-30 23:59:55   statSENSOR_Strom_Total_inMonthLast 405.712
     2023-05-23 17:26:57   statSENSOR_Strom_Total_inYear 2036.646
     2022-12-31 23:59:55   statSENSOR_Strom_Total_inYearLast 529.474
     2023-05-22 20:15:09   subscriptions   cmnd/Stromzaehler_fb/# cmnd/tasmota_CF9A06/# cmnd/tasmotas/#
   helper:
     _98_statistics Statistik_Stromzaehler
Attributes:
   IODev      mqtt2Server
   icon       measure_power
   readingList Stromzaehler:tele/tasmota_CF9A06/LWT:.* LWT
Stromzaehler:cmnd/tasmota_CF9A06/POWER:.* POWER
Stromzaehler:tele/tasmota_CF9A06/INFO1:.* { json2nameValue($EVENT, 'INFO1_', $JSONMAP) }
Stromzaehler:tele/tasmota_CF9A06/INFO2:.* { json2nameValue($EVENT, 'INFO2_', $JSONMAP) }
Stromzaehler:tele/tasmota_CF9A06/INFO3:.* { json2nameValue($EVENT, 'INFO3_', $JSONMAP) }
Stromzaehler:stat/tasmota_CF9A06/RESULT:.* { json2nameValue($EVENT, 'RESULT_', $JSONMAP) }
Stromzaehler:stat/tasmota_CF9A06/POWER:.* POWER
Stromzaehler:tele/tasmota_CF9A06/STATE:.* { json2nameValue($EVENT, 'STATE_', $JSONMAP) }
Stromzaehler:tele/tasmota_CF9A06/SENSOR:.* { json2nameValue($EVENT, 'SENSOR_', $JSONMAP) }
Stromzaehler:tasmota/discovery/AC0BFBCF9A06/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
Stromzaehler:tasmota/discovery/AC0BFBCF9A06/sensors:.* { json2nameValue($EVENT, 'sensors_', $JSONMAP) }
   room       MQTT2_DEVICE,Stromverbrauch
   stateFormat {sprintf("Strom: %.0f W - Zählerstand: %.2f kWh - heute: %.2f kWh - gestern: %.2f kWh - WebLink: %s", ReadingsVal($name,"SENSOR_Strom_Power_cur",0), ReadingsVal($name,"SENSOR_Strom_Total_in",0), ReadingsVal($name,"statSENSOR_Strom_Total_inDay",0), ReadingsVal($name,"statSENSOR_Strom_Total_inDayLast",0), ReadingsVal($name,"WebLink","none"))}
   userReadings WebLink { my $ip=ReadingsVal($NAME,"INFO2_Info2_IPAddress",""); return("<html><a href='http://".$ip."/'>WEB</a></html>") }

DS_Starter

Hallo Jens,

dein Reading SENSOR_Strom_Total_out im Stromzähler Device ist 0.000.

Deswegen sind die Werte im Solarforecast

  feedintotal: 0, initdayfeedin: 0

ebenfalls 0.
Du müsstest zunächst schauen dass SENSOR_Strom_Total_out tatsächlich die total eingespeiste Energie enthält.
Alles was "_out" ist, hat den Wert 0 in dem Device soweit in sehe.
Liegt es am Zähler oder am Tasmota ?
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Jewe

Mein Zähler ist ein Einrichtungszähler, d.h. keine Werte für Einspeisung.
Drehstromzähler B1T/B2T,ISKRA Type MT681-D4A51-K0p
Diese Konfig:
>D
>B
=>sensor53 r
>M 1
+1,3,s,0,9600,Strom
1,77070100010800ff@1000,Total Consumed,KWh,Total_in,3
1,77070100100700ff@1,Current Consumption,W,Power_cur,0
1,77070100240700ff@1,Current Consumption P1,W,Power_p1,0
1,77070100380700ff@1,Current Consumption P2,W,Power_p2,0
1,770701004c0700ff@1,Current Consumption P3,W,Power_p3,0
1,77070100020800ff@1000,Total Delivered,KWh,Total_out,3
1,77070100000009ff@#,Service ID,,Meter_id,0|
#
Daraus bekomme ich dann die Werte
Total Consumed,KWh,Total_in,3 und
Current Consumption,W,Power_cur,0 sowie die
Service ID,,Meter_id,0|

Das war´s.

DS_Starter

Hmm, dann sieht es wahrscheinlich schlecht aus an diese Werte zu kommen.
Ich glaube manche User nutzen einen Shelly Zähler für solche Zwecke, diese Werte in FHEM zu bekommen.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Jewe

Oder ich müsste ein Reading bauen, das alle negativen Werte der Current Consumption addiert, da muss dann aber auch immer die Zeit mit in die Berechnung. Ist vmtl. auch nicht so einfach.
Naja, schaumermal...

kask

#2527
Ich habe mir da was gebastelt für. Funktioniert recht gut.
Ist in meiner 99_myUtils.pm
Vieleicht hilt dir das ja.

Einrichtungszähler. Saldierender Total wert in kWh aus Watt.
sub EnergieCounter($$) {
   my ($device,$reading) = @_;
   my $value = abs(ReadingsNum($device,$reading,0));
   my $value_old = ReadingsNum($device,"ec".$reading."Old",0);
   my $t_base = (time() - time_str2num(ReadingsTimestamp($device,"ec".$reading."Old",time())) );
   my $value_add = ( (($value + $value_old)/2.0) / 3600.0 * $t_base);
   my $total = ((ReadingsNum($device,"ec".$reading."Total",0)) + ($value_add/1000));
   fhem ("setreading ".$device." ec".$reading."Old "  . $value);
   fhem ("setreading ".$device." ec".$reading."Total " . $total);
   return sprintf("%.3f",($total));
}

Zweirichtungszähler: Saldierender Total wert in kWh aus Watt. positiv sowie negativ getrennt.
sub EnergieCounterInOut($$) {
   my ($device,$reading) = @_;
   my $value = (ReadingsNum($device,$reading,0));
   my $value_old = ReadingsNum($device,"ec".$reading."InOutOld",0);
   my $t_base = (time() - time_str2num(ReadingsTimestamp($device,"ec".$reading."InOutOld",time())) );
   my $value_add = ( (($value + $value_old)/2.0) / 3600.0 * $t_base);
   my $total = 0;
   if ($value_add > 0) {
     $total = ((ReadingsNum($device,"ec".$reading."InTotal",0)) + ($value_add/1000));
     fhem ("setreading ".$device." ec".$reading."In " . $value);
     fhem ("setreading ".$device." ec".$reading."Out 0");
     fhem ("setreading ".$device." ec".$reading."InTotal " . $total);
   } elsif ($value_add < 0) {
     $total = ((ReadingsNum($device,"ec".$reading."OutTotal",0)) + abs($value_add/1000));
     fhem ("setreading ".$device." ec".$reading."Out " . abs($value));
     fhem ("setreading ".$device." ec".$reading."In 0");
     fhem ("setreading ".$device." ec".$reading."OutTotal " . $total);
   } else {
     fhem ("setreading ".$device." ec".$reading."In 0");
     fhem ("setreading ".$device." ec".$reading."Out 0");
   }
   fhem ("setreading ".$device." ec".$reading."InOutOld " . $value);
   return;
}

Den feedin könntest du dir aus (Current_PV - Current_Consumption) selber basteln. Ohne Speicher zumindest.

DS_Starter

#2528
ZitatDen feedin könntest du dir aus (Current_PV - Current_Consumption) selber basteln. Ohne Speicher zumindest.
Das sieht nach einem vielversprechenden Weg aus ...

Vielleicht doch nicht ... Jewe braucht ja nicht die Current Werte, sondern die Energie Summen für Out.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Jewe

Den feedin habe ich ja, das sind die negativen Werte des Zählers. Das dann im currentMeterDev mit gfeedin=-gcon richtig ankommt.
Ich benötige ja den feedtotal. Schaue mir gerade Deine Berechnung zum einrichtngszähler an.

kask

#2530
Das genau machen doch die sub's. Aus einem Aktualwert saldierende Totalwerte.

hier ien Beispiel eines meiner Aktuallwerte bei dem ich kein Totalwert habe(nicht war ich wollte ein Gleitpunktwert, mein Zähler kann nur Ganzzahlen).

defmod P_AC_Grid_value.notify notify MQTT2_venus.P_AC_Grid_value:.* \
{\
 EnergieCounterInOut($NAME,"P_AC_Grid_value");;;; \
}
attr P_AC_Grid_value.notify DbLogExclude .*
attr P_AC_Grid_value.notify room notify

DS_Starter

Wäre nicht ein userReading mit integral (https://wiki.fhem.de/wiki/UserReadings#Integralfunktion_-_integral)
über feedin passend dafür ?

Wahrscheinlich bildet deine Funktion ein intergral ab ohne es jetzt genauer angeschaut zu haben.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

kask

#2532
Ich habe mit integral,differential, monotonic etc. ausprobiert.
Ist aber recht ungenau. wenn man es genauer haben möchte, da das ganze nur Sekunden genau ist (integral,differential).
Aber ja, ist die integral function in dem Sinne.

Zitatdifferential: das Reading wird auf die Differenz zw. dem aktuellen und dem vorherigen Wert, geteilt durch die Sekunden zw. der aktuellen Zeit und der letzten Auswertung, sekundengenau. Kein Wert wird berechnet, falls der Unterschied unter eine Sekunde liegt.
integral: das Gegenteil von differential. Das Ergebnis wird um das Produkt aus der Zeit-Differenz und der Durschnittswert der letzten zwei Readings erhöht.
result += (time - timeold) * (oldval + value) / 2

stefanru

Also ich benutze integral in UserReadings und das geht ziemlich gut.
Konnte eigentlich die Werte auch gegen das WebPortal des Anbieters validieren.
Stimmt sehr gut.

Ich benutze es z.B. für die Batterie Summen.
Hier wird auch eingespeist und bezogen aus einem +/- Wert erstellt.

z.B.
User_Energy_Bat_out:PowerFlow_Site_P_Akku.* integral {ReadingsVal("$name","PowerFlow_Site_P_Akku","")>0?ReadingsVal("$name","PowerFlow_Site_P_Akku","")/3600000:0},
User_Energy_Bat_in:PowerFlow_Site_P_Akku.* integral {ReadingsVal("$name","PowerFlow_Site_P_Akku","")<0?ReadingsVal("$name","PowerFlow_Site_P_Akku","")/-3600000:0},

/3600000 ist um aus W auf kwh zu kommen.

Gruß,
Stefan

kask

Mit was für einem Zeitinterval  kommen die Daten bei dir rein?