Sholofly / lghorizon

Custom integration to control LG Horizon settop boxes for Ziggo(NL), Magenta(AT), UPC(CH), Virgin(GB, IE), Telenet(BE)
GNU General Public License v3.0
62 stars 15 forks source link

Virgin Media (GB) recording capacity #31

Closed callumeveratt closed 3 weeks ago

callumeveratt commented 1 year ago

I'm not sure this ever worked on the original Arris integration (certainly for me the value was always unavailable for recording_capacity) but the following appears in the log for getting recording capacity in GB:

Logger: lghorizon.lghorizon_api Source: /usr/local/lib/python3.10/site-packages/backoff/_common.py:120 First occurred: 10:39:10 (1 occurrences) Last logged: 10:39:10 Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://prod.spark.virginmedia.com/eng/web/recording-service/customers/xxx_gb/quota. Error:501 Server Error: Not Implemented for url: https://prod.spark.virginmedia.com/eng/web/recording-service/customers/xxx_gb/quota)

ColinRobbins commented 1 month ago

Pull request created to inhibit error messages.

The quota sensor seems focused on web recordings and is not available in GB.
Each media_player has a capacity attribute anyway.

ColinRobbins commented 3 weeks ago

Pull request accepted in v0.6.3. Close issue?

Sholofly commented 3 weeks ago

If solved.... yes!