To use this plugin for reading data from your smart power meter hardware you need to have a serial or network interface connected to your hardware.
Most smart power meter hardware have an optical interface on the front of the casis. These are two IR LEDs which can be used to read data from the power meter hardware (e.g. by using a optical reader connected to an USB port).
[sml] class_name = Sml class_path = plugins.sml serialport = /dev/ttyUSB0 # host = 192.168.2.1 # port = 1234
The plugin reads data from smart power meter hardware by using a serial interface (e.g. /dev/ttyUSB0) or by connecting to a host/port. It reads messages using the SML (Smart Message Language) protocol. If you want to know more about the protocol see here.
Usually the smart power meter hardware is sending status information every few seconds via the interface which is read by the plugin. This status information, consisting of a SML_PublicOpen and SML_GetList message, provides the current power status and details (e.g. total power consumed, current power).
All status values retrieved by these messages have a unique identifier which is called OBIS code. This can be used to identify the meaning of the value returned.
Description of the attributes:
You can assign a value retrieved by the plugin to some of your items using the OBIS identifier.
Here’s a list of OBIS codes which may be useful:
Here you can find a sample configuration:
[power] [[home]] [[[total]]] type = num sml_obis = 1-0:1.8.0*255 [[[current]]] type = num sml_obis = 1-0:16.7.0*255
Currently there is no logic configuration for this plugin.
Currently there are no functions offered from this plugin.