Zendure Solarflow in Fhem via MQTT einbinden

Begonnen von Reinhart, 15 Februar 2024, 17:29:53

Vorheriges Thema - Nächstes Thema

rabehd

Total ist da etwas verwirrend. Total-today und Total-total  ;D
Ich simuliere mal eine Ladung aus dem Netz, dann sollte today was anzeigen und total sich ändern. 
Auch funktionierende Lösungen kann man hinterfragen.

rabehd

Hallo Ralf,
Du hast Recht, es ist wohl die Speicherung von Netzstrom.

'total' => { 'gridInputTotal' => '9189.51',   },
'code' => 200,
'msg' => 'Erfolgreiche Operation',
'today' => {'batteryInput' => '40.8',
            'outputToInverse' => 0,
            'type' => 0,
            'batteryOutput' => '66.8',
            'gridDirectTotal' => 0,
            'gridInputTotal' => '0.61',  },
'success' => 1,
'data' => {  'gridInputTotal' => '9189.51',       }
        };


Das Reading wurde heute morgen angelegt, aber scheint sich nicht zu aktualisieren.
Auch funktionierende Lösungen kann man hinterfragen.

Shadow3561

Moin,
Ich hatte jetzt auch mal Zeit deine neue Version zu testen.
Hier ein list

Internals:
   DEF        crypt:x crypt:x v2
   FUUID      67c4aa27-f33f-d66d-07b6-3999269976aa2330
   FVERSION   76_Zendure.pm:?/2025-04-15
   NAME       Zendure
   NR         1582
   STATE      Energy data successful loaded!
   TYPE       Zendure
   VERSION    v0.0.5
   devices    1
   eventCount 1661
   server     v2
   serverNodeUrl https://app.zendure.tech/as
   OLDREADINGS:
   READINGS:
     2025-04-17 16:54:22   Device_63640_deviceKey x
     2025-04-17 16:54:24   Device_63640_energy_batteryInput 623.42
     2025-04-17 16:54:24   Device_63640_energy_batteryOutput 995.24
     2025-04-17 16:54:24   Device_63640_energy_home 639.11
     2025-04-17 16:54:24   Device_63640_energy_solar 440.81
     2025-04-17 16:54:22   Device_63640_id 63640
     2025-04-17 16:54:22   Device_63640_name Hyper 2000
     2025-04-17 16:54:22   Device_63640_productKey x
     2025-04-17 16:54:22   Device_63640_productName Hyper 2000
     2025-04-17 16:54:22   Device_63640_productType 17
     2025-04-17 16:54:22   Device_63640_snNumber x
     2025-04-17 16:54:22   Device_63640_subscriptions /x/# x/#
     2025-04-17 16:54:24   Device_63640_total_energy_batteryInput 219751.84
     2025-04-17 16:54:24   Device_63640_total_energy_batteryOutput 263755.16
     2025-04-17 16:54:24   Device_63640_total_energy_home 323795.23
     2025-04-17 16:54:24   Device_63640_total_energy_solar 291779.2
     2025-04-17 16:54:17   MQTT_accessToken x
     2025-04-17 16:54:17   MQTT_iotPassword x
     2025-04-17 16:54:17   MQTT_iotUrl     mq.zen-iot.com:1883
     2025-04-17 16:54:17   MQTT_iotUserName zenApp
     2025-04-17 16:54:17   MQTT_userId     x
     2025-04-17 16:54:24   state           Energy data successful loaded!
   helper:
     accessToken x
     deviceKey  x
     id         63640
     iotPassword x
     iotUrl     mq.zen-iot.com:1883
     iotUserName zenApp
     password   crypt:x
     productKey x
     serverNode as
     serverNodeUrl https://app.zendure.tech/as
     subscriptions /x/# x/#

     userId     53378
     username   crypt:x
     zone       Europe/Berlin
     auth:
       code       200
       msg        Vorgang erfolgreich
       success    1
       data:
         accessToken x
         account   
         authority 
         avatar     https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png
         countryCode DE
         hemsFlag   0
         iotPassword x
         iotUrl     mq.zen-iot.com
         iotUserName zenApp
         isNew      1
         mallSwitch 1
         oauthId   
         serverH5Url https://app.zendure.tech
         serverNode as
         serverNodeUrl https://app.zendure.tech/as
         tenantId   
         userId     x
         userName   
         userType   21
         whitelist  0
         zone       Europe/Berlin
     devices:
       code       200
       msg        Vorgang erfolgreich
       success    1
       data:
         HASH(0xxx)
     get:
       auth:
         code       200
         msg        Vorgang erfolgreich
         success    1
         data:
           accessToken x
           account   
           authority 
           avatar     https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png
           countryCode DE
           hemsFlag   0
           iotPassword x
           iotUrl     mq.zen-iot.com
           iotUserName zenApp
           isNew      1
           mallSwitch 1
           oauthId   
           serverH5Url https://app.zendure.tech
           serverNode as
           serverNodeUrl https://app.zendure.tech/as
           tenantId   
           userId     x
           userName   
           userType   21
           whitelist  0
           zone       Europe/Berlin
       devices:
         code       200
         msg        Vorgang erfolgreich
         success    1
         data:
           HASH(0xx)
Attributes:
   UpdateInterval 600
   room       Zendure

Anmerkung:
_total_energy_batteryInput 219751.84 ist korrekt
_total_energy_batteryOutput 263755.16 ist korrekt
auch hier wieder verdreht, aber egal

_total_energy_home 323795.23 ist korrekt
_total_energy_solar 291779.2 ist korrekt

Wenn ich jetzt "expert 1" setze kommen noch ein paar werte mehr

Hier ohne Attribut
Device_63640_deviceKey x
Device_63640_energy_batteryInput 643.71
Device_63640_energy_batteryOutput 995.24
Device_63640_energy_home 662.94
Device_63640_energy_solar 444.29
Device_63640_id x
Device_63640_name Hyper 2000
Device_63640_productKey x
Device_63640_productName Hyper 2000
Device_63640_productType 17
Device_63640_snNumber x
Device_63640_subscriptions /x/# x/#
Device_63640_total_energy_batteryInput 219772.13
Device_63640_total_energy_batteryOutput 263755.16
Device_63640_total_energy_home 323819.06
Device_63640_total_energy_solar 291782.68
Hier mit
Device_63640_deviceKey x
Device_63640_electric_bindDeviceInput 0
Device_63640_electric_fromSolar 0
Device_63640_electric_outputToBindDevice 0
Device_63640_electric_toHome 0
Device_63640_energy_acOutputTotal 0
Device_63640_energy_batteryInput 643.71
Device_63640_energy_batteryOutput 995.24
Device_63640_energy_bindDeviceInput 0
Device_63640_energy_dcOutputTotal 0
Device_63640_energy_gridDirectTotal 0
Device_63640_energy_gridInputTotal 553.63
Device_63640_energy_home 662.94
Device_63640_energy_outputToBindDevice 0
Device_63640_energy_outputToInverse 0
Device_63640_energy_socketOutputTotal 0
Device_63640_energy_solar 445.53
Device_63640_id 63640
Device_63640_name Hyper 2000
Device_63640_productKey x
Device_63640_productName Hyper 2000
Device_63640_productType 17
Device_63640_snNumber x
Device_63640_subscriptions /x/# x/#
Device_63640_total_energy_batteryInput 219772.13
Device_63640_total_energy_batteryOutput 263755.16
Device_63640_total_energy_home 323819.06
Device_63640_total_energy_solar 291783.92

das "energy_gridInputTotal 553.63" ist der Bezug vom Stromnetz/Überschuss grosse PV um den Akku zu laden. Dieser Wert fehlt leider in der Gesamtstatistik.

Mit freundlichen Grüßen