grahamwetzler / smart-meter-texas

Package to connect to and retrieve data from the unoffical Smart Meter Texas API
MIT License
14 stars 14 forks source link

[Home-Assistant] Unable to login when using docker #147

Open kushagharahi opened 2 months ago

kushagharahi commented 2 months ago

Description

related thread: https://community.home-assistant.io/t/smart-meter-texas-not-able-to-sign-in/769868

I’m trying to set up the integration in HA. I'm running HA 2024.9 docker container. Currently it just spins for a long time and spits back “Failed to connect”. (both FF and Chrome, VPN on or off)

What’s strange is that I’ve cloned the source code and the examples work just fine in terms of being able to login and scrape some data.

What I Did

I suspect it's due to the docker container because when I attached a remote debugger to my container on my windows box, I'm instantly able to login.

After logging in with the remote debugger, scraping works just fine (without the remote debugger).

daneski13 commented 2 months ago

Unfortunately, I can't resolve your issue, but I've had a lot of issues with the HA integration which has prompted me to develop my own "sensor" for HA using this library and MQTT. Considering this package works as expected (barring issues with SMT themselves e.g. #148), I doubt this package is at fault. I am able to use this package just fine within my project's Alpine-based docker container.

daneski13 commented 2 months ago

I was attempting to add another anecdote that this repository, and the package it contains, works fine both bare-metal Alpine and within an Alpine-based docker image. Your issue notes OS as Alpine and you believe it has something to do with running in a docker container, this package verifiably works in both situations.

Your issue is downstream with Home Assistant and the implementation within the HA integration, which I was anecdotally noting that I have had numerous issues with.