muppet3000 / homeassistant-growatt_server_api

Home Assistant Integration for Growatt - Upstream repo for the growatt_server integration that is part of the Core Home Assistant repository
MIT License
52 stars 6 forks source link

BUG - Inverter Systems - Voltage & Temperature do not return to 0 overnight #22

Open muppet3000 opened 1 year ago

muppet3000 commented 1 year ago

Describe the bug Continuation of the items discussed here: https://github.com/muppet3000/homeassistant-growatt_server_api/issues/14 Specifically this comment around the fact that Voltage and Temperature values do not return to 0 until midnight each day.

To Reproduce N/A - This is a consistent bug for Inverter systems that only show graph data during the times that solar PV is active.

Growatt Device Type

Device(s): Inverter

Home Assistant information

Additional context

N/A

Saentist commented 1 year ago

Interesting over RS485-RTU/RTU2 there is a "Status Code" binary value 0/1, with is equal to operational and non-operational status of inverter. And can be used to "zero" values in moment of out of production. Is there option integration to do that?

API docs

{
    "device_sn": "ZT00100001",
    "dataloggerSn": "CRAZT00001",
    "data": {
        "ipm_temperature": 0,
        "model": 61748,
        "fwVersion": "G.2.0",
        "treeName": "ZT00100001",
        "lost": false,
        "location": "",
        "updateExist": false,
        "treeID": "ZT00100001",
        "powerMaxTime": "",
        "lastUpdateTime": {
            "time": 1547000577000,
            "minutes": 22,
            "seconds": 57,
            "hours": 10,
            "month": 0,
            "year": 119,
            "timezoneOffset": -480,
            "day": 3,
            "date": 9
        },
        "children": [],
        "statusText": "inverter.status.normal",
        "inverterInfoStatusCss": "vsts_table_green",
        "energyMonthText": "0",
        "updating": false,
        "temperature": 0,
        "nominalPower": 20000,
        "bigDevice": false,
        "id": 116,
        "plantname": "",
        "groupID": 0,
        "level": 4,
        "imgPath": "./css/img/status_green.gif",
        "energyDay": 0,
        "userName": "",
        "power": 0,
        "serialNum": "ZT00100001",
        "dataLogSn": "CRAZT00001",
        "createDate": null,
        "innerVersion": "1.2.3.4.",
        "energyMonth": 0,
        "powerMax": "",
        "modelText": "A0B0D0T0PFU1M3S4",
        "energyDayMap": {},
        "status": 1,  #<<<<<<
        "eToday": 0,
        "alias": "ZT00100001",
        "powerMaxText": "",
        "eTotal": 0,
        "loadText": "0%",
        "tcpServerIp": "127.0.0.1",
        "userID": 0,
        "record": null,
        "lastUpdateTimeText": "2019-01-09 10:22:57",
        "rfStick": null,
        "parentID": "LIST_CRAZT00001_0",
        "address": 1,
        "plantId": 0
    },
    "error_code": 0,
    "error_msg": ""
}