Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse line in parsed telegram #100

Open
NebzHB opened this issue Sep 6, 2023 · 1 comment
Open

Unable to parse line in parsed telegram #100

NebzHB opened this issue Sep 6, 2023 · 1 comment

Comments

@NebzHB
Copy link

NebzHB commented Sep 6, 2023

Hi,

I have some unparsed replies in my telegram data :

Unable to parse line: 1-0:1.4.0(00.255*kW)
Unable to parse line: 1-0:1.6.0(230903114500S)(02.762*kW)
Unable to parse line: 0-0:98.1.0(8)(1-0:1.6.0)(1-0:1.6.0)(230201000000W)(230110174500W)(04.769*kW)(230301000000W)(230207221500W)(05.092*kW)(230401000000S)(230312144500W)(04.575*kW)(230501000000S)(230428174500S)(04.886*kW)(230601000000S)(230523220000S)(04.639*kW)(230701000000S)(230604140000S)(02.791*kW)(230801000000S)(230723164500S)(03.525*kW)(230901000000S)(230812111500S)(02.727*kW)

here is the parsed result :

{
     "meter": {
          "brand": "FLU5",
          "model": "myModel_A"
     },
     "version": "50217",
     "timestamp": "2023-09-06T18:41:03+02:00",
     "equipmentId": "myUniqueID",
     "textMessage": {
          "codes": null,
          "message": ""
     },
     "power": {
          "import": {
               "t1": {
                    "value": 2340.885,
                    "unit": "kWh"
               },
               "t2": {
                    "value": 2608.465,
                    "unit": "kWh"
               },
               "active": {
                    "value": 0.37,
                    "unit": "kW"
               }
          },
          "export": {
               "t1": {
                    "value": 0,
                    "unit": "kWh"
               },
               "t2": {
                    "value": 0.021,
                    "unit": "kWh"
               },
               "active": {
                    "value": 0,
                    "unit": "kW"
               }
          },
          "tariffIndicator": 1,
          "threshold": {
               "value": 999.9,
               "unit": "kW"
          },
          "fuseThreshold": {
               "value": 999,
               "unit": "A"
          },
          "switchPosition": "1",
          "numberOfPowerFailures": null,
          "numberOfLongPowerFailures": null,
          "longPowerFailureLog": {
               "count": null,
               "log": []
          },
          "voltageSags": {
               "l1": null,
               "l2": null,
               "l3": null
          },
          "voltageSwell": {
               "l1": null,
               "l2": null,
               "l3": null
          },
          "instantaneous": {
               "current": {
                    "l1": {
                         "value": 1,
                         "unit": "A"
                    },
                    "l2": {
                         "value": null,
                         "unit": null
                    },
                    "l3": {
                         "value": null,
                         "unit": null
                    }
               },
               "voltage": {
                    "l1": {
                         "value": 229,
                         "unit": "V"
                    },
                    "l2": {
                         "value": null,
                         "unit": null
                    },
                    "l3": {
                         "value": null,
                         "unit": null
                    }
               },
               "power": {
                    "positive": {
                         "l1": {
                              "value": 0.37,
                              "unit": "kW"
                         },
                         "l2": {
                              "value": null,
                              "unit": null
                         },
                         "l3": {
                              "value": null,
                              "unit": null
                         }
                    },
                    "negative": {
                         "l1": {
                              "value": 0,
                              "unit": "kW"
                         },
                         "l2": {
                              "value": null,
                              "unit": null
                         },
                         "l3": {
                              "value": null,
                              "unit": null
                         }
                    }
               }
          }
     },
     "gas": {
          "deviceType": null,
          "equipmentId": null,
          "timestamp": null,
          "value": null,
          "unit": null,
          "valvePosition": null
     }
}

here is the full telegram :

/FLU5\myModel_A

0-0:96.1.4(50217)
0-0:96.1.1(myUniqueID)
0-0:1.0.0(230906164103S)
1-0:1.8.1(002340.885*kWh)
1-0:1.8.2(002608.465*kWh)
1-0:2.8.1(000000.000*kWh)
1-0:2.8.2(000000.021*kWh)
0-0:96.14.0(0001)
1-0:1.4.0(00.255*kW)
1-0:1.6.0(230903114500S)(02.762*kW)
0-0:98.1.0(8)(1-0:1.6.0)(1-0:1.6.0)(230201000000W)(230110174500W)(04.769*kW)(230301000000W)(230207221500W)(05.092*kW)(230401000000S)(230312144500W)(04.575*kW)(230501000000S)(230428174500S)(04.886*kW)(230601000000S)(230523220000S)(04.639*kW)(230701000000S)(230604140000S)(02.791*kW)(230801000000S)(230723164500S)(03.525*kW)(230901000000S)(230812111500S)(02.727*kW)
1-0:1.7.0(00.370*kW)
1-0:2.7.0(00.000*kW)
1-0:21.7.0(00.370*kW)
1-0:22.7.0(00.000*kW)
1-0:32.7.0(229.7*V)
1-0:31.7.0(001.93*A)
0-0:96.3.10(1)
0-0:17.0.0(999.9*kW)
1-0:31.4.0(999*A)
0-0:96.13.0()
!26AD

and the data at the same time :

{
  wifi_ssid: 'mySSID',
  wifi_strength: 100,
  smr_version: 50,
  meter_model: 'Fluvius myModel_A',
  unique_id: 'myUniqueID',
  active_tariff: 1,
  total_power_import_kwh: 4949.35,
  total_power_import_t1_kwh: 2340.885,
  total_power_import_t2_kwh: 2608.465,
  total_power_export_kwh: 0.021,
  total_power_export_t1_kwh: 0,
  total_power_export_t2_kwh: 0.021,
  active_power_w: 370,
  active_power_l1_w: 370,
  active_voltage_l1_v: 229.7,
  active_current_l1_a: 1.93,
  active_power_average_w: 255,
  montly_power_peak_w: 2762,
  montly_power_peak_timestamp: 230903114500,
  external: []
}

@NebzHB
Copy link
Author

NebzHB commented Sep 7, 2023

according to this : https://maakjemeterslim.be/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--cdd9b48fd0838e89b177f03b745b23450fd8f53e/e-MUCS_P1_Ed_1_7_1.pdf?disposition=attachment

image

so i guess ::
1-0:1.4.0 is active_power_average_w
1-0:1.6.0 is montly_power_peak_w and montly_power_peak_timestamp (they assume the montly instead of the monthly in the api doc iirc)
and the last one is each of the last 13 months and the value/timestamp of the peek of these months.

i think it's typical for Belgium only as said here : https://homewizard-energy-api.readthedocs.io/endpoints.html#monthly-power-peak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant