Closed leob19 closed 2 years ago
Funny, someone just reported what is the same issue in the Home Assistant integration. I'm planning on fixing this tonight but if you have any devices that haven't been connected to the cloud in a while (smart plugs that have been unplugged for instance) then either reconnect them or remove them from your account. I'll get something out later to fix this properly so you can also just wait until then.
Thanks Magico ! I do indeed have several plugs that have not been connected for some time.
I'm getting the same parser error starting at 4:00 PM EDT. I also noticed that in the Emporia App my Vue1 individual circuits are not showing now, either. Just has a default set of circuit names and no details for usage on these circuits.
Hi Magico, i'm getting the same parser error after the API change and have updated pyemvue. I do have smart plugs but they are still on and connected. Not sure if anyone else has reported this again
@kpnobvious if you can get me a full stack trace/error message I'd appreciate it. I was only aware of one location where this could come up and I added two safeties there to ensure it doesn't (null check and catching the exception). If I need to update a second location I can do that pretty easily and the stack trace will definitely show where that is.
so interesting, i updated a basic test script that would pull the last 7 days of total usage ad added this for loop to print devices: for device in devices: device = vue.populate_device_properties(device) print(device.device_name)
When running just that, it outputs this: Home Home Plug Dehumidifier
The last 2 are smart plugs
When vuegraf runs to get usage data, it errors out here
populateDevices(account)
Traceback (most recent call last):
File "
both plugs are showing on in the app and reporting usage.
when i updated i just did git pull and it updated teh source, maybe the python packaged is still cached?
FYI, this was totally my issue. even though i updated pyemvue via git, and ran pip3 install pyemvue, it didn't update the local cache so that was still on vs 0.14.1. I had to add in the --upgrade command. No issues after that!
Hi all,
I updated to latest package to solve auth issues but I am now having a date parsing issue when doing the following:
I get the following error: File "get_report.py", line 16, in
devices = vue.get_devices()
File "/env/lib/python3.9/site-packages/pyemvue/pyemvue.py", line 59, in get_devices
devices.append(VueDevice().from_json_dictionary(dev))
File "/env/lib/python3.9/site-packages/pyemvue/device.py", line 68, in from_json_dictionary
if 'offlineSince' in con: self.offline_since = parse(con['offlineSince'])
File "env/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 1374, in parse
return DEFAULTPARSER.parse(timestr, kwargs)
File "/env/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 646, in parse
res, skipped_tokens = self._parse(timestr, kwargs)
File "env/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 725, in _parse
l = _timelex.split(timestr) # Splits the timestr into tokens
File "env/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 207, in split
return list(cls(s))
File "env/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 75, in init
raise TypeError('Parser must be a string or character stream, not '
TypeError: Parser must be a string or character stream, not NoneType
Thanks for your help.