Created
September 21, 2026 17:57
-
-
Save florianl/d47fa6fdfe471b3d03388b348385ef6a to your computer and use it in GitHub Desktop.
aquastreamv2 for https://github.com/wmbusmeters/wmbusmeters/issues/1793
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| driver { | |
| name = aquastreamv2 | |
| meter_type = WaterMeter | |
| default_fields = name,id,total_m3,timestamp | |
| detect { | |
| mvt = IMT,f2,07 | |
| } | |
| library { | |
| use = total_m3,meter_datetime,target_m3,target_date,flow_temperature_c | |
| } | |
| fields { | |
| field { | |
| name = historic | |
| quantity = PointInTime | |
| info = 'Meter datetime for the historic (storage 8) reading.' | |
| display_unit = datetime | |
| match { | |
| measurement_type = Instantaneous | |
| vif_range = DateTime | |
| storage_nr = 8 | |
| } | |
| } | |
| field { | |
| name = historic | |
| quantity = Volume | |
| info = 'Historic (storage 8) volume reading.' | |
| match { | |
| measurement_type = Instantaneous | |
| vif_range = Volume | |
| storage_nr = 8 | |
| } | |
| } | |
| field { | |
| name = status | |
| quantity = Text | |
| info = status_and_error_flags | |
| attributes = INCLUDE_TPL_STATUS | |
| match { | |
| measurement_type = Instantaneous | |
| vif_range = ErrorFlags | |
| } | |
| // Bit N assumed to be set for TOPAS ESK 2 "Status Code" N (see product sheet | |
| // TOPAS_ESK_2_1-715-PS-EN-03 chapter 7.5). Codes 98/99 are software/comms level | |
| // and do not fit this 32-bit metrology error mask. Unverified against a real | |
| // telegram with a non-zero status, since none is available yet. | |
| lookup { | |
| name = ERROR_FLAGS | |
| map_type = BitToString | |
| mask_bits = 0xffffffff | |
| default_message = OK | |
| map { | |
| name = TOO_MUCH_COMMUNICATION | |
| info = 'Communication through the optical interface exceeds the threshold (status code 00).' | |
| value = 0x1 | |
| test = Set | |
| } | |
| map { | |
| name = CHECKSUM_ERROR | |
| info = 'Data in Flash or RAM is corrupted or was manipulated (status code 01).' | |
| value = 0x2 | |
| test = Set | |
| } | |
| map { | |
| name = HARDWARE_TEMPERATURE | |
| info = 'Temperature sensor cable is broken (status code 02).' | |
| value = 0x4 | |
| test = Set | |
| } | |
| map { | |
| name = HARDWARE_FLOW | |
| info = 'Hardware error at the flow measuring or ultrasonic sensor (status code 04).' | |
| value = 0x10 | |
| test = Set | |
| } | |
| map { | |
| name = LEAKAGE | |
| info = 'Continuous consumption above the leakage threshold for 24 hours (status code 05).' | |
| value = 0x20 | |
| test = Set | |
| } | |
| map { | |
| name = BACKFLOW | |
| info = 'Reverse volume above the configurable threshold (status code 06).' | |
| value = 0x40 | |
| test = Set | |
| } | |
| map { | |
| name = AIR_IN_PIPE | |
| info = 'Air detected in the pipe (status code 07).' | |
| value = 0x80 | |
| test = Set | |
| } | |
| map { | |
| name = LOW_BATTERY | |
| info = 'Calculated battery life is less than 1.5 years (status code 09).' | |
| value = 0x200 | |
| test = Set | |
| } | |
| map { | |
| name = UNDERSIZED_METER | |
| info = 'Flow above the undersized meter threshold (status code 11).' | |
| value = 0x800 | |
| test = Set | |
| } | |
| map { | |
| name = NO_CONSUMPTION | |
| info = 'Consumption below the no-usage threshold for 30 days (status code 12).' | |
| value = 0x1000 | |
| test = Set | |
| } | |
| map { | |
| name = HIGH_MEDIUM_TEMPERATURE | |
| info = 'Medium temperature above the configured threshold (status code 13).' | |
| value = 0x2000 | |
| test = Set | |
| } | |
| map { | |
| name = FREEZING_RISK | |
| info = 'Medium temperature below 3°C (status code 14).' | |
| value = 0x4000 | |
| test = Set | |
| } | |
| map { | |
| name = FALLBACK_MODE | |
| info = 'Significant deviation of the measurement in the two measuring paths (status code 17).' | |
| value = 0x20000 | |
| test = Set | |
| } | |
| map { | |
| name = METROLOGICAL_LOG_ACCESS | |
| info = 'The metrological log has been accessed (status code 18).' | |
| value = 0x40000 | |
| test = Set | |
| } | |
| map { | |
| name = MEASUREMENT_INTERFERENCE | |
| info = 'Measurement disturbed by cavitation, air/water mixture or EM interference (status code 22).' | |
| value = 0x400000 | |
| test = Set | |
| } | |
| } | |
| } | |
| field { | |
| name = total_backwards | |
| quantity = Volume | |
| match { | |
| measurement_type = Instantaneous | |
| vif_range = Volume | |
| tariff_nr = 1 | |
| } | |
| } | |
| field { | |
| name = battery | |
| quantity = Time | |
| display_unit = y | |
| // Divide by 365 | |
| force_scale = 0.0027397260273972603 | |
| match { | |
| measurement_type = Instantaneous | |
| difvifkey = 02FD74 | |
| } | |
| } | |
| } | |
| tests { | |
| test { | |
| args = 'AqWater2 aquastreamv2 88475766 NOKEY' | |
| telegram = 3E44B42566574788F2077A220030052F2F_0C138747020004FD170000000002FD74AE150A5A2901426C3F3C4C130002000084046D3B375C328C041388380100 | |
| json = '{"_":"telegram","battery_y":15.205479,"driver":"aquastreamv2","flow_temperature_c":12.9,"historic_datetime":"2026-02-28 23:59","historic_m3":13.888,"id":"88475766","media":"water","name":"AqWater2","status":"OK","target_date":"2025-12-31","target_m3":0.2,"timestamp":"1111-11-11T11:11:11Z","total_m3":24.787}' | |
| fields = 'AqWater2;88475766;24.787;1111-11-11 11:11.11' | |
| comment = 'Telegram from https://github.com/wmbusmeters/wmbusmeters/issues/1793 (Integra TOPAS ESKR 2 Type 173), tagged with 2f2f already-decrypted marker so no key needed.' | |
| } | |
| test { | |
| args = 'AqWater2 aquastreamv2 88475766 NOKEY' | |
| telegram = 3E44B42566574788F2077A6F0030052F2F_0C138150020004FD170000000002FD74AD150A5A1001426C3F3C4C130002000084046D3B375C328C041388380100 | |
| json = '{"_":"telegram","battery_y":15.20274,"driver":"aquastreamv2","flow_temperature_c":11,"historic_datetime":"2026-02-28 23:59","historic_m3":13.888,"id":"88475766","media":"water","name":"AqWater2","status":"OK","target_date":"2025-12-31","target_m3":0.2,"timestamp":"1111-11-11T11:11:11Z","total_m3":25.081}' | |
| fields = 'AqWater2;88475766;25.081;1111-11-11 11:11.11' | |
| comment = 'Another decrypted telegram from https://github.com/wmbusmeters/wmbusmeters/issues/1793 comments, same meter at a later reading.' | |
| } | |
| test { | |
| args = 'AqWater2 aquastreamv2 88475766 NOKEY' | |
| telegram = 3E44B42566574788F2077A700030052F2F_0C130051020004FD170000000002FD74AD150A5A0201426C3F3C4C130002000084046D3B375C328C041388380100 | |
| json = '{"_":"telegram","battery_y":15.20274,"driver":"aquastreamv2","flow_temperature_c":10.2,"historic_datetime":"2026-02-28 23:59","historic_m3":13.888,"id":"88475766","media":"water","name":"AqWater2","status":"OK","target_date":"2025-12-31","target_m3":0.2,"timestamp":"1111-11-11T11:11:11Z","total_m3":25.1}' | |
| fields = 'AqWater2;88475766;25.1;1111-11-11 11:11.11' | |
| comment = 'Another decrypted telegram from https://github.com/wmbusmeters/wmbusmeters/issues/1793 comments, later reading with a different ACC byte.' | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment