Smartmeter driver

Electricity and gas meter

Arguments

connection

The next arguments depend on the value of the connection argument:
  • socket
    host
    Default: 127.0.0.1.
    port
  • comport
    device
    baudrate
    Possible values: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200, 230400.
    Default: 9600.

Meter type

Properties

power
An integer value between -2000 and 5000.
tariff
Possible values: high, low.
gasreading
Floating point value.
usage1
Floating point value.
usage2
Floating point value.
return1
Floating point value.
return2
Floating point value.

Events

power
Fires whenever the value of the power property changes.
tariff
Fires whenever the value of the tariff property changes.
gasreading
Fires whenever the value of the gasreading property changes.
usage1
Fires whenever the value of the usage1 property changes.
usage2
Fires whenever the value of the usage2 property changes.
return1
Fires whenever the value of the return1 property changes.
return2
Fires whenever the value of the return2 property changes.