Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

pimatic-mqtt-simple

0.1.1 • Public • Published

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"
    }
  ]
}

Keywords

none

install

npm i pimatic-mqtt-simple

Downloadsweekly downloads

18

version

0.1.1

license

none

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability