0.1.1 • Published 9 years ago

pimatic-mqtt-simple v0.1.1

Weekly downloads
24
License
-
Repository
github
Last release
9 years ago

pimatic-mqtt-simple

A very basic mqtt plugin for Pimatic

Installation

Edit your config.json as below, and once you restart pimatic the plugin will be downloaded automatically from npm.

Usage

In your plugins section of pimatic's config.json file add:

{
  "plugin": "mqtt-simple"
}

In the devices section:

{
  "class": "MqttSimpleSensor",
  "id": "powerusage",
  "name": "Power Usage",
  "mqtturl": "mqtt://localhost",
  "attributes": [
    {
      "name": "PowerUsage",
      "topic": "power/usage",
      "type": "number",
      "unit": "W",
      "acronym": "P.Usage"
    }
  ]
}
0.1.1

9 years ago

0.1.0

9 years ago