wutu / pimatic-mqtt

MQTT plugin for Pimatic
https://pimatic.org/plugins/pimatic-mqtt/
GNU Affero General Public License v3.0
9 stars 13 forks source link

Invalid property "mqtturl" #6

Closed thost96 closed 8 years ago

thost96 commented 8 years ago

Hi, i getting this error after using mqtt with an esp8266: [pimatic] Invalid config of device "esp01": Property "mqtturl" is not a valid property

this is my config:

{
      "class": "MqttSensor",
      "id": "esp01",
      "name": "ESP01",
      "mqtturl": "mqtt://localhost",
      "attributes": [
        {
          "name": "dht-22-temperature",
          "topic": "/ESP01/dht22/temperature",
          "type": "number",
          "unit": "°C",
          "acronym": "Temperature"
        },
        {
          "name": "dht-22-humidity",
          "topic": "/ESP01/dht22/humidity",
          "type": "number",
          "unit": "%",
          "acronym": "Humidity"
        },
        {
          "name": "uptime",
          "topic": "/ESP01/system/uptime",
          "type": "number",
          "unit": "minute",
          "acronym": "Uptime"
        },
        {
          "name": "freeram",
          "topic": "/ESP01/system/freeram",
          "type": "number",
          "unit": "B",
          "acronym": "FreeRAM"
        },
        {
          "name": "pir",
          "topic": "/ESP01/contact/state",
          "type": "number",
          "acronym": "Presense",
          "onMessage": "1",
          "offMessage": "0"
        }
      ]
    }
wutu commented 8 years ago

Hi, MqttSensor device has no choice "mqtturl". If the Broker on localhost. There is no need to adjust its address in the plugin section.