Closed dalklein closed 5 years ago
Solved part of my local installation issue, getting requests_async installed correctly in venv. The envoy_reader.py now has the current code and runs, plus changes for older non .json Envoy, and gtdiehl's fix.
There is still something else I don't have right in my installation regarding asyncio. The envoy states return like this for me now, not the correct data: <coroutine object EnvoyReader.production at 0x55dbb588> Does the enphase_envoy component need to be changed (I tried, looking at changes in jesserizzo/ha github, that go along with these changes, but I end up with another erroy).
Is there also somewhere else needs to set up the event loop or define the setup with async, or something? I read here but it's still not clear to me. Thanks
older Envoys (mine....) with software before R3.9, do not have the .json data available, only .html pages, http://envoy/production is the main one. added code to detect this older version of Envoy and scrape the html.
my envoy_reader.py doesn't use the recently added await commands, I couldn't get requests_async working. But otherwise it works on my system now, and I believe it shouldn't break any of the .json based data collection for newer Envoys.
also updated the README.md file
please let me know if anything else I should do or fix, Thanks, Dale