Closed Nasimovy closed 1 year ago
Hi, could you enable debug logging and show log of:
"telemeter result ..." Pleases remove personal info before posting the log details.
To enable debug logging you may want to add this into your confirmation.yaml:
logger: default: debug
Hi, here is the requested log
Thanks for the valueable input! I see you have a peak and offpeak usage in your result (json.internetusage[0].availableperiods[0].usages[0].totalusage) which I don't have. So probably related to another product type subscription. I'll try to detect which info is available and use it accordingly. I'll keep you posted as soon as I have a new version that you could try.
thanks, i have the ONE subscription, offpeak doesnt count to my usable volume
are you also planning to integrate mobile data usage?
Thanks for the sensor, I'm also interested in using it. I have the same issue, I have a Business Fibernet subscription, so no limit but it's interesting to see the usage anyway.
thanks, i have the ONE subscription, offpeak doesnt count to my usable volume
are you also planning to integrate mobile data usage?
ok, yes still planning to integrate mobile data usage too. (altough I don't have it myself, so I may request some feedback for that too...).
But first want to get the base stable. As I just noticed the sensor is not always updated as expected. And it's still my very first custom component I created, so still requires some more in depth analysis to grasp is all ;)
okay, if you need data or testing just ask, im happy to help
Hi all, support for peak/offpeak data elements has been added since release 0.1.0. Could you please validate? as I don't have this product myself.
this is the error i get in the logs, the sensor does not want to be created
Logger: homeassistant.components.sensor Source: custom_components/telenet_telemeter/sensor.py:113 Integration: Sensor (documentation, issues) First occurred: 7:49:28 PM (1 occurrences) Last logged: 7:49:28 PM
Error while setting up telenet_telemeter platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/telenet_telemeter/sensor.py", line 65, in async_setup_entry await dry_setup(hass, config, async_add_devices) File "/config/custom_components/telenet_telemeter/sensor.py", line 46, in dry_setup sensor = Component(data, hass) File "/config/custom_components/telenet_telemeter/sensor.py", line 113, in init self._used_percentage = round(100 * ((self._data._telemeter.get('internetusage')[0].get('availableperiods')[0].get('usages')[0].get('totalusage').get('includedvolume') + self._data._telemeter.get('internetusage')[0].get('availableperiods')[0].get('usages')[0].get('totalusage').get('extendedvolume')) / ( self._data._telemeter.get('internetusage')[0].get('availableperiods')[0].get('usages')[0].get('includedvolume') + self._data._telemeter.get('internetusage')[0].get('availableperiods')[0].get('usages')[0].get('extendedvolume').get('volume')))) TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'