-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detailed Data Issue #63
Comments
I pushed a change to resolve this. Let me know if it works better. |
So far its working. Was the 1,2,3 channel name renamed to exclude the 1,2,3 in a recent update? |
Not that I know of. Mine still shows a "1,2,3" channel number, if that's what you're referring to. The channel name has always matched the name that is entered into the Emporia mobile app. |
I have 2 VUE in my account it looks like the detailed info is only being pulled for one of them not the other: Also you can see the Right1,2,3 is gone, now its just reported as "Right" energy_usage,account_name=Home,detailed=False,device_name=Home-Left-1,host=telegraf_vue usage=0 1629901269039036000 That changed after the latest update I pulled, previously it was Right1,2,3 |
I'm not sure what caused your channel number to be concatenated to your channel name like that, especially without a hyphen. I checked back 2 weeks ago and my influxDB does not have 1,2,3 appended to my main:
The lookupChannelName() method was refactored in the latest release, and that's where the appending occurs, but I cannot see how the pre-refactor version would have led the a channel name like "Right1,2,3". As far as the detail data only pulled for one, that again I don't see in my local environment. Both Left and Right panels are showing detailed data. Are your devices nested into each other? It shouldn't matter but just trying to think of something that might be different from my setup. |
They are not nested. |
I am not sure if this is the cause or not, but i see in the logs its throwing an error every hour when it tries to pull the detailed data:
|
Check your influx logs to see if it has a reason for closing the socket. |
Thanks, I thought it was being disconnected by the Emporia API side not Influx. Thanks for all the help today. |
First off, thanks for creating this great project. I am running the latest version 1.3.2 and noticed in my logs, that when it tries to pull the detailed data every hour, it gets the following error every time:
today at 6:42:55 AM 2021-08-25 10:42:55.292851 | ERROR | Failed to record new usage data: (<class 'TypeError'>, TypeError("unsupported operand type(s) for *: 'float' and 'NoneType'"), <traceback object at 0x7f8bfe5eecc0>)
today at 6:42:55 AM Traceback (most recent call last):
today at 6:42:55 AM File "/opt/vuegraf/vuegraf.py", line 219, in
today at 6:42:55 AM extractDataPoints(device, usageDataPoints)
today at 6:42:55 AM File "/opt/vuegraf/vuegraf.py", line 133, in extractDataPoints
today at 6:42:55 AM watts = float(secondsInAMinute * minutesInAnHour * wattsInAKw) * kwhUsage
today at 6:42:55 AM TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
The text was updated successfully, but these errors were encountered: