ruudverheijden / node-p1-reader

Node.js package for reading and parsing data from the P1 port of a Dutch or Belgian Smart Meter.
MIT License
25 stars 25 forks source link

voltage values are all null #37

Closed mitchellston closed 12 months ago

mitchellston commented 12 months ago

For some reason voltage values are always null even in emulator modes.

{
    "meterType": "EMULATOR",
    "version": "10",
    "timestamp": "2023-09-12T20:57:40.000Z",
    "equipmentId": "1234567890123456789012345678901234",
    "textMessage": {
        "codes": "",
        "message": ""
    },
    "electricity": {
        "received": {
            "tariff1": {
                "reading": 0.3,
                "unit": "kWh"
            },
            "tariff2": {
                "reading": 0,
                "unit": "kWh"
            },
            "actual": {
                "reading": 0.1,
                "unit": "kW"
            }
        },
        "delivered": {
            "tariff1": {
                "reading": 0,
                "unit": "kWh"
            },
            "tariff2": {
                "reading": 0,
                "unit": "kWh"
            },
            "actual": {
                "reading": 0,
                "unit": "kW"
            }
        },
        "tariffIndicator": 1,
        "threshold": null,
        "fuseThreshold": null,
        "switchPosition": null,
        "numberOfPowerFailures": 1,
        "numberOfLongPowerFailures": 2,
        "longPowerFailureLog": {
            "count": 1,
            "log": [
                {
                    "startOfFailure": "1999-12-31T23:43:34.000Z",
                    "endOfFailure": "2000-01-01T00:00:14.000Z",
                    "duration": 1000,
                    "unit": "s"
                }
            ]
        },
        "voltageSags": {
            "L1": 0,
            "L2": 0,
            "L3": 0
        },
        "voltageSwell": {
            "L1": 0,
            "L2": 0,
            "L3": 0
        },
        "instantaneous": {
            "current": {
                "L1": {
                    "reading": 1,
                    "unit": "A"
                },
                "L2": {
                    "reading": 2,
                    "unit": "A"
                },
                "L3": {
                    "reading": 3,
                    "unit": "A"
                }
            },
            "voltage": {
                "L1": {
                    "reading": null,
                    "unit": null
                },
                "L2": {
                    "reading": null,
                    "unit": null
                },
                "L3": {
                    "reading": null,
                    "unit": null
                }
            },
            "power": {
                "positive": {
                    "L1": {
                        "reading": 0.001,
                        "unit": "kW"
                    },
                    "L2": {
                        "reading": 0.002,
                        "unit": "kW"
                    },
                    "L3": {
                        "reading": 0.003,
                        "unit": "kW"
                    }
                },
                "negative": {
                    "L1": {
                        "reading": 0.004,
                        "unit": "kW"
                    },
                    "L2": {
                        "reading": 0.005,
                        "unit": "kW"
                    },
                    "L3": {
                        "reading": 0.006,
                        "unit": "kW"
                    }
                }
            }
        }
    },
    "gas": {
        "deviceType": "003",
        "equipmentId": "2345678901234567890123456789012345",
        "timestamp": "2023-09-12T20:57:10.000Z",
        "reading": 0,
        "unit": "m3",
        "valvePosition": null
    }
}
mitchellston commented 12 months ago

Seems to be only a issue in emulator mode so I will close this issue