ilcato / homebridge-mqttswitch

Homebridge accessory plugin that create an HomeKit Switch based on MQTT topics
Apache License 2.0
31 stars 41 forks source link

Problem starting Homebridge #20

Closed nixmeer closed 5 years ago

nixmeer commented 5 years ago

Hello,

this is no pull request but I couldn't find another option to get in touch with you.

This is the minimum config:

{
    "accessory": "mqtt-sprinkler",
     "name": "Sprinkler",
     "url": "mqtt://192.168.178.76:1883",
     "topics":
     {
         "statusGet": "TESTTOPIC/GET",
         "statusSet": "TESTTOPIC/SET"
     }
 }

When I start Homebridge, the following error occurs:

[2019-4-19 17:49:01] [Sprinkler] Initializing mqtt-sprinkler accessory...
/usr/lib/node_modules/homebridge-mqtt-sprinkler/lib/Accessory.js:90
 const sprinklerService = new Service.Valve(this.displayName);
 ^
TypeError: Service.Valve is not a constructor

I am running Homebridge version 0.4.32. Is this too old? It's NorternMan54's Homebridge version which supports Alexa without the need of a remote amazon server

What am I doing wrong??