jertel / vuegraf

Populate metrics from your Emporia Vue energy monitoring devices into an InfluxDB
MIT License
166 stars 53 forks source link

Smart Plug data not submitting to Influx #29

Closed tfindleton closed 3 years ago

tfindleton commented 3 years ago

I'm unable to get the service to submit data into the InfluxDB. I do not see any errors other than the Devices appear to be reporting as channels?

The service status reports it found new channels:

Feb 25 12:35:48 zbox python3[171297]: 2021-02-25 20:35:48.206697 | INFO  | Discovered new channel: Home (1,2,3)
Feb 25 12:35:48 zbox python3[171297]: 2021-02-25 20:35:48.519672 | INFO  | Discovered new channel: Living Room (1,2,3)
Feb 25 12:35:48 zbox python3[171297]: 2021-02-25 20:35:48.844572 | INFO  | Discovered new channel: PC (1,2,3)
Feb 25 12:35:49 zbox python3[171297]: 2021-02-25 20:35:49.039635 | INFO  | Discovered new channel: Server (1,2,3)
Feb 25 12:35:49 zbox python3[171297]: 2021-02-25 20:35:49.495013 | INFO  | Submitted datapoints to database; account="Home"; points=16
Feb 25 12:36:49 zbox python3[171297]: 2021-02-25 20:36:49.946429 | INFO  | Submitted datapoints to database; account="Home"; points=40
Feb 25 12:37:50 zbox python3[171297]: 2021-02-25 20:37:50.442709 | INFO  | Submitted datapoints to database; account="Home"; points=59
Feb 25 12:38:50 zbox python3[171297]: 2021-02-25 20:38:50.938024 | INFO  | Submitted datapoints to database; account="Home"; points=61
Feb 25 12:39:51 zbox python3[171297]: 2021-02-25 20:39:51.360788 | INFO  | Submitted datapoints to database; account="Home"; points=58
Feb 25 12:40:51 zbox python3[171297]: 2021-02-25 20:40:51.874593 | INFO  | Submitted datapoints to database; account="Home"; points=61

Config with secrets removed.

{
   "influxDb":{
      "host":"localhost",
      "port":8086,
      "user":"MyUser",
      "pass":"MyPassword",
      "database":"MyDatabase",
      "reset":false
   },
   "accounts":[
      {
         "name":"Home",
         "email":"MyEmail",
         "password":"MyPassword",
         "devices":[
            {
               "name":"PC"
            },
            {
               "name":"Server"
            },
            {
               "name":"Living Room"
            }
         ]
      }
   ]
}
tfindleton commented 3 years ago

This issue was resolved by updating to the most recent commit. Thank you!