I have an issue with the Led-Light plugin. I seemed to have it installed correctly but I get an error when using it. In the interface it looks good but as I use the brightness of on/off switch the following error appears:
14:27:49.622 [pimatic-led-light] error: [Error: connection timeout]
14:27:49.625 [pimatic-led-light] error: [Error: connection timeout]
14:27:49.631 [pimatic-led-light] error: { [Error: This socket is closed.]
14:27:49.631 [pimatic-led-light] error:> __trace: 'Error: From connect
at Socket.connect (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:55:29)
at IwyMaster._connect (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/iwy_master/index.js:202:10)
at IwyMaster._send (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/iwy_master/index.js:111:8)
at IwyMaster.switchOn (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/iwy_master/index.js:218:8)
at IwyMaster.turnOn (/home/pi/pimatic-app/node_modules/pimatic-led-light/devices/iwy_master.coffee:27:15)
at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:263:36
at tryCatch1 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/util.js:43:21)
at Function.Promise$_Try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/promise.js:246:11)
at Object.callActionFromReq (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:261:26)
at DeviceManager.callDeviceActionReq (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1332:22)
at DeviceManager.callDeviceActionReq (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1:1)
at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:270:32
at tryCatch1 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/util.js:43:21)
at Function.Promise$_Try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/promise.js:246:11)
at callActionFromReq (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:268:26)
at Promise.try.then.response (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:360:14)
at tryCatch1 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/util.js:43:21)
at Function.Promise$_Try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/node_modules/bluebird/js/main/promise.js:246:11)
at callActionFromReqAndRespond (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:358:24)
at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:438:18
at callbacks (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:164:37)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:138:11)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:135:11)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:135:11)
at pass (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:100:7)
at callbacks (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:167:11)
at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:917:19
at callbacks (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:164:37)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:138:11)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:135:11)
at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:135:11)
at pass (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:173:5)
at Object.router (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:33:10)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.handle (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:305:18)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.cookieSession [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js:121:5)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.jsonParser [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/lib/types/json.js:100:40)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.urlencodedParser [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/lib/types/urlencoded.js:88:40)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.cookieParser [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/cookie-parser/index.js:48:5)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.handle (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:234:9)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.handle (/home/pi/pimatic-app/node_modules/pimatic/node_modules/connect-timeout/index.js:64:5)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.expressInit [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/middleware.js:30:5)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.query [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/middleware/query.js:43:5)
at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Function.app.handle (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:182:3)
at Server.app (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/connect.js:67:37)
at Server.EventEmitter.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2108:12)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
at Socket.socket.ondata (http.js:1966:22)
at TCP.onread (net.js:525:27)' }
Does this ring a bell anyone? I’m not that familiar with these errors…
The device itself works good on my LAN when using an app on my cellphone.