github myTselection/telenet_telemeter 3.2.0

4 hours ago

What's Changed

  • v3.2.0: new mobile API, dynamic sub-sensors, clean data by @claesmathias in #70

Some sensor names/attributes may have been changed with these larger changes. Please check readme for latest overview.

New Contributors

Full Changelog: 3.0.0...3.2.0

Summary

  • New mobile API — switches from the deprecated /mobile-service/v3/mobilesubscriptions endpoint to the same API the Telenet web app uses: /customer-web-billing-mobile-usage/v1/mobile-lines/{msisdn}/usage. Eliminates Cloudflare 429 errors; returns consumed/remaining/total/% directly.
  • isDataOnly flag — read from the line selector API instead of being inferred from voice data presence. Data-only SIMs correctly show no voice entities.
  • Voice & SMS — parsed from breakdown.tiles[] (category CALL/SMS); voice_used_minutes, voice_unlimited, voice_max_minutes attributes added.
  • Dynamic sub-sensors — 5 additional HA entities auto-created per SIM (no configuration.yaml needed): days left, max data GB, usage %, voice used, last update.
  • ComponentData._mobile_parsed cache — parsed values stored after each update; sub-sensors read from cache without extra API calls.
  • Entity names — removed "Telemeter"; product label (Unlimited, Data SIM Unlimited, Turbo) included. Entity IDs unchanged.
  • Internet sensorpeak_usage_gb, offpeak_usage_gb, total_downloaded_gb, last_update_formatted, period_next_start added. FUP counter uses productUsage.totalUsage.units (off-peak counts 0% towards limit).
  • Announcements sensor — surfaces Telenet inbox unread count and messages.
  • Bug fixescallTelenet UnboundLocalError when request raises before response is set; response is not None guard in all retry methods.
  • Live teststests/test_live_api.py and tests/test_usage_report.py cover all endpoints; all tests pass against the live API.

Don't miss a new telenet_telemeter release

NewReleases is sending notifications on new releases.