Closed lantranbot closed 11 months ago
could you share the telemeter_json info of youri internet sensor? do you see data in the official telemeter site or app?
Sure, here you go. (again I did replace my id with the xxxxxxx)
attribution: Telenet Telemeter last update: null used_percentage: 0 included_volume: 0 extended_volume: 0 total_volume: 0 wifree_usage: 0 includedvolume_usage: 0 extendedvolume_usage: 0 peak_usage: 0 offpeak_usage: 0 squeezed: false period_start: null period_end: null period_days_left: 0 period_used_percentage: 0 product: null download_speed: 0 upload_speed: 0 telemeter_json: internet: category: UNLIMITED specurl: https://api.prd.telenet.be/omapi/public/product/KLIK0002 daysUntil: '10' validity: '2023-09-08T12:00:00.000Z' allocatedUsage: units: 0 usedUnits: 1221.87 unitType: GB lastUsageDate: '2023-08-29T15:38:00' extendedUsage: eligibleToBuy: false volumeBlocks: '0' volume: 0 unit: GB price: '0.00' currency: EUR wifreeUsage: usedUnits: 0 unitType: GB totalUsage: units: 1221.87 unitType: GB lastUsageDate: '2023-08-29T15:38:00' peakUsage: usedUnits: 0 startDate: '2023-08-08' endDate: '2023-09-07' productIdentifier: xxxxxxx internetUsage:
unit_of_measurement: % icon: mdi:check-network-outline friendly_name: Telenet Telemeter internet xxxxxxx
And for your question about seeing data on the official telenet website, yes, I can see the data under Je Internet - Verbruik
hi, sorry for delay. Does this issues still occur with latest release? IF so, could you enable debug logging and share the logs (see instruction https://github.com/myTselection/telenet_telemeter#technical-pointers)
Unfortunately yes, it still does. I've attached the debug logs (but did change some personal info that was in there such as phone numbers) home-assistant_telenet_telemeter_2023-09-28T21-39-31.776Z.log
Hi,
Thanks for this piece of code.
I'm seeing an issue though, in my logs I get the following :
File "/config/custom_components/telenet_telemeter/sensor.py", line 594, in async_update self._used_percentage = float(self._data._telemeter.get('internet').get('usedPercentage')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: float() argument must be a string or a real number, not 'NoneType' 2023-08-29 16:02:31.379 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.telenet_telemeter_internet_xxxxxxx fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 699, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update await self.async_update() File "/config/custom_components/telenet_telemeter/sensor.py", line 363, in async_update self._used_percentage = float(self._data._telemeter.get('internet').get('usedPercentage')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: float() argument must be a string or a real number, not 'NoneType'
(I replaced my telenet user id with x's)
In the sensor_telenet_telemeter_internet_xxxxxxx I can see several values (for example all peak values are filled in per day up till yesterday) Mobile sensors are working mostly ok. (most attributes are filled in, except user_percentage_data/text/voice (null) and remaining_volume_data/text/voice (null).
However the telenet_telemeter_peak_xxxxxxx is unknown and all attributes are either 0 or null.
Anything I can do to fix this, or did I forget something somewhere?