I created an HA Addon to gather Xfinity Internet Usage and push that data into a sensor. Please try it out and report any issues.
https://github.com/thor0215/hassio-xfinity-usage
What timing! Was just looking for exactly this. Just installed it and it’s working great, thanks!
Thank you for this. I was previously using a different addon based on zachowj’s original repo, it was extremely unreliable, sometimes going weeks without updating the sensor value.
That said, this is not currently working for me. I think the issue is on Xfinity’s side, since I am having issues manually logging in there too, and historically their site has been hot garbage (at best). I did notice that your addon doesn’t seem to handle this situation well. I opened an issue with more details
Hopefully comcast gets their shit together soon so I can play this is more, as it looks super promising. Thanks!
I’ve been using zachowj/xfinity-data-usage docker container for a couple of years with fairly reasonable reliability, but whatever comcast has done to their site past few months have pretty much broken it and I maybe get a successful scrape once a month.
As I’m looking for other options to get my Xfinity usage, I came across this and would like to try it out. Any chance we could get MQTT for this Addon? I run Home Assistant via a docker container and even though I could install this add on as a container on its own, I’m not sure how I would interface the container to get the sensor data other than through MQTT.
This addon is working great for me but it appears the repo has been removed from GitHub and now my HA is complaining about the repo being missing. Did this repo get moved?
The link is dead. I’d love to use this integration, since others did not work for me. Thanks!
Github spam filter caused my account to get suspended for some reason but it has been reinstated so the link is active again. Also I’ve added MQTT support.
I’ve tried to hit the install button after I added the addon repository but the HA instance seemed to just spin on install and then HA lost connection and it must have rebooted. Coming back online took a really long time and the addon still won’t allow me to start it. How long does the install part take the first time?
Similar things this morning. I was able to Install fine. After I setup the configuration entries, I hit Start and that caused the HA to go unresponsive and lose connection multiple times. The logs show this
2024-09-05T09:49:08.962 INFO: Xfinity Internet Usage Starting
2024-09-05T09:49:15.079 INFO: Launching Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101...
2024-09-05T10:05:28.241 WARNING: Retrying __main__.run_playwright in 1.0 seconds as it raised TimeoutError: BrowserType.launch_persistent_context: Timeout 180000ms exceeded.
Call log:
<launching> /root/.cache/ms-playwright/firefox-1458/firefox/firefox -no-remote -headless -profile /config/profile_win -juggler-pipe about:blank
- <launched> pid=445
- [pid=445][err] *** You are running in headless mode.
- [pid=445][err] JavaScript warning: resource://services-settings/Utils.sys.mjs, line 114: unreachable code after return statement
- [pid=445][out] console.warn: services.settings: Ignoring preference override of remote settings server
- [pid=445][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
- [pid=445][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libGL.so.1 missing (t=15.7074) [GFX1-]: glxtest: libGL.so.1 missing
- [pid=445][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libGL.so.1 missing (t=15.7074) |[1][GFX1-]: No GPUs detected via PCI
- [pid=445][out] (t=15.7474) [GFX1-]: No GPUs detected via PCI
- [pid=445][out]
- [pid=445][out] console.error: ({})
- [pid=445][out]
- [pid=445][out] Juggler listening to the pipe
.
2024-09-05T10:05:29.271 WARNING: 1st retry
2024-09-05T10:05:57.190 INFO: Launching Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101...
2024-09-05T10:07:38.996 INFO: Loading Internet Usage (URL: https://login.xfinity.com/login)
2024-09-05T10:07:52.498 INFO: Entering username (URL: https://login.xfinity.com/login)
and then I stopped the addon via ssh as the entire HA UI was really sluggish and losing connection and seemingly re-starting itself many times.
and now I see on the github page, that the add on wont work with Xfinity MFA. So I think that could be my problem