bvlaicu / home-assistant-addons

MIT License
17 stars 16 forks source link

Setting up Oru for first time - errors #32

Open idkhn opened 1 year ago

idkhn commented 1 year ago

Need some help here, unsure what the errors are about. Setting up Oru for the first time. Was able to follow the instructions. Got a little lost around mqtt but I think I figured it out; I'm guessing if the ConEd entity was picked up by MQTT on the Integrations screen, then we're good.

Packages list:
Package            Version 
------------------ --------
appdirs            1.4.4   
asn1crypto         0.24.0  
certifi            2023.5.7
charset-normalizer 3.1.0   
coned              0.4.0   
cryptography       2.6.1   
entrypoints        0.3     
idna               3.4     
importlib-metadata 6.6.0   
keyring            17.1.1  
keyrings.alt       3.1.1   
paho-mqtt          1.6.1   
pip                18.1    
pycrypto           2.6.1   
pyee               8.2.2   
PyGObject          3.30.4  
pyotp              2.8.0   
pyppeteer          1.0.2   
pyxdg              0.25    
requests           2.31.0  
SecretStorage      2.3.1   
setuptools         40.8.0  
six                1.12.0  
tqdm               4.65.0  
typing-extensions  4.6.2   
urllib3            2.0.2   
websockets         10.4    
wheel              0.32.3  
zipp               3.15.0  
Starting endless loop..
[0601/171058.077709:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
DevTools listening on ws://127.0.0.1:34047/devtools/browser/eaebb653-23d8-415c-940f-fc78de56fa4d
[0601/171058.993534:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
DevTools listening on ws://127.0.0.1:39017/devtools/browser/868cd438-783d-4c24-b535-8e87d4bf2526
[0601/171103.985706:INFO:CONSOLE(24)] "ERR_DUP_SCRIPTS", source: https://www.glancecdn.net/cobrowse/CobrowseJS.ashx?group=19641&site=production (24)
[0601/171105.125742:INFO:CONSOLE(24)] "ERR_DUP_SCRIPTS", source: https://www.glancecdn.net/cobrowse/CobrowseJS.ashx?group=19641&site=production (24)
[0601/171108.866543:INFO:CONSOLE(1)] "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead.", source: https://siteintercept.qualtrics.com/dxjsmodule/CoreModule.js?Q_CLIENTVERSION=1.91.0&Q_CLIENTTYPE=web&Q_BRANDID=coned (1)
[0601/171109.463098:INFO:CONSOLE(1)] "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead.", source: https://siteintercept.qualtrics.com/dxjsmodule/CoreModule.js?Q_CLIENTVERSION=1.91.0&Q_CLIENTTYPE=web&Q_BRANDID=coned (1)
[0601/171124.587388:INFO:CONSOLE(24)] "ERR_DUP_SCRIPTS", source: https://www.glancecdn.net/cobrowse/CobrowseJS.ashx?group=19641&site=production (24)
[0601/171124.851586:INFO:CONSOLE(24)] "[Meta Pixel] - Removed URL query parameters due to potential violations.", source: https://connect.facebook.net/en_US/fbevents.js (24)
[0601/171132.586658:INFO:CONSOLE(2)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: https://acdn-prod-bsdce-ngcx-va.azureedge.net/va/coned-va-build.min.js (2)
[0601/171135.480901:INFO:CONSOLE(1)] "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead.", source: https://siteintercept.qualtrics.com/dxjsmodule/CoreModule.js?Q_CLIENTVERSION=1.91.0&Q_CLIENTTYPE=web&Q_BRANDID=coned (1)
Creating Meter
Calling meter.last_read()..
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 96, in all_reads
    await self.browse()
  File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 225, in browse
    self._LOGGER.debug(f"raw_data = {raw_data}")
NameError: name 'raw_data' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "run.py", line 28, in <module>
    startTime, endTime, value, uom = asyncio.get_event_loop().run_until_complete(meter.last_read())
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 127, in last_read
    all_available_reads = await self.all_reads()
  File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 123, in all_reads
    raise MeterError("Error requesting meter data")
coned.meter.MeterError: Error requesting meter data
Task was destroyed but it is pending!
task: <Task pending coro=<sleep() running at /usr/lib/python3.7/asyncio/tasks.py:568> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f94444c18>()]> cb=[<TaskWakeupMethWrapper object at 0x7f94444d38>()]>
Task was destroyed but it is pending!
task: <Task pending coro=<Meter.browse() running at /usr/local/lib/python3.7/dist-packages/coned/meter.py:206> wait_for=<Task pending coro=<sleep() done, defined at /usr/lib/python3.7/asyncio/tasks.py:555> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f94444c18>()]> cb=[<TaskWakeupMethWrapper object at 0x7f94444d38>()]>>
Sleeping 5 mins..