saberone / pimatic-smartmeter

Read energy usage data from a "smartmeter" through it's P1 port
MIT License
0 stars 6 forks source link

P1 smartmeter variables are not being logged #4

Open dsfser opened 9 years ago

dsfser commented 9 years ago

Hello,

I am using the plugin and it works like a charm!

But i want to see my usage for the day and week.

I have a clean install with the smart meter connected to USB0 and i'm getting the data.

The config:

"devices": [ { "id": "smartmeter", "class": "Smartmeterdevice", "name": "Smartmeter", "serialport": "/dev/ttyUSB0", "baudRate": 9600, "dataBits": 7, "parity": "even", "stopBits": 1, "flowControl": true },

But the database is not logging any variable.

How can i let pimatic log those values?

Thank you

incmve commented 9 years ago

I have no problems with the log. How have you configured the DB loggin? in your config.json do you have something like this?

database": {
      "deviceAttributeLogging": [
        {
          "deviceId": "*",
          "attributeName": "*",
          "expire": "0d",
          "type": "continuous"