dass man beide nicht einfach "kopieren" konnte war mir klar. Das neue, kombinierte Skript wirft mir Fehler aus, wenn ich den Taster betätige. Die Lichter gehen jedoch alle aus.
` > host.NUC 2018-10-06 18:15:06.690 error instance system.adapter.milight.0 terminated with code 0 (OK)
Caught 2018-10-06 18:15:06.690 error by controller[0]: at UDP.onMessage [as onmessage] (dgram.js:658:8)
Caught 2018-10-06 18:15:06.690 error by controller[0]: at Socket.emit (events.js:214:7)
Caught 2018-10-06 18:15:06.690 error by controller[0]: at emitTwo (events.js:126:13)
Caught 2018-10-06 18:15:06.690 error by controller[0]: at Socket. <anonymous>(C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:638:36)
Caught 2018-10-06 18:15:06.690 error by controller[0]: at Object.MiLightV6._func.8800000003 (C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:616:56)
Caught 2018-10-06 18:15:06.690 error by controller[0]: TypeError: Cannot read property 'toString' of undefined
milight.0 2018-10-06 18:15:06.678 info terminating
milight.0 2018-10-06 18:15:06.675 error at UDP.onMessage [as onmessage] (dgram.js:658:8)
milight.0 2018-10-06 18:15:06.675 error at Socket.emit (events.js:214:7)
milight.0 2018-10-06 18:15:06.675 error at emitTwo (events.js:126:13)
milight.0 2018-10-06 18:15:06.675 error at Socket. <anonymous>(C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:638:36)
milight.0 2018-10-06 18:15:06.675 error at Object.MiLightV6._func.8800000003 (C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:616:56)
milight.0 2018-10-06 18:15:06.675 error TypeError: Cannot read property 'toString' of undefined
milight.0 2018-10-06 18:15:06.674 error uncaught exception: Cannot read property 'toString' of undefined
milight.0 2018-10-06 18:15:05.795 info starting. Version 0.3.4 in C:/ioBroker/node_modules/iobroker.milight, node: v8.9.3
host.NUC 2018-10-06 18:15:05.214 info instance system.adapter.milight.0 started with pid 78328
host.NUC 2018-10-06 18:15:04.201 info Restart adapter system.adapter.milight.0 because enabled
host.NUC 2018-10-06 18:15:04.201 error instance system.adapter.milight.0 terminated with code 0 (OK)
Caught 2018-10-06 18:15:04.201 error by controller[0]: at UDP.onMessage [as onmessage] (dgram.js:658:8)
Caught 2018-10-06 18:15:04.201 error by controller[0]: at Socket.emit (events.js:214:7)
Caught 2018-10-06 18:15:04.201 error by controller[0]: at emitTwo (events.js:126:13)
Caught 2018-10-06 18:15:04.201 error by controller[0]: at Socket. <anonymous>(C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:638:36)
Caught 2018-10-06 18:15:04.201 error by controller[0]: at Object.MiLightV6._func.8800000003 (C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:616:56)
Caught 2018-10-06 18:15:04.201 error by controller[0]: TypeError: Cannot read property 'toString' of undefined
milight.0 2018-10-06 18:15:04.189 info terminating
milight.0 2018-10-06 18:15:04.186 error at UDP.onMessage [as onmessage] (dgram.js:658:8)
milight.0 2018-10-06 18:15:04.186 error at Socket.emit (events.js:214:7)
milight.0 2018-10-06 18:15:04.186 error at emitTwo (events.js:126:13)
milight.0 2018-10-06 18:15:04.186 error at Socket. <anonymous>(C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:638:36)
milight.0 2018-10-06 18:15:04.186 error at Object.MiLightV6._func.8800000003 (C:\ioBroker\node_modules\iobroker.milight\lib\bridge.js:616:56)
milight.0 2018-10-06 18:15:04.186 error TypeError: Cannot read property 'toString' of undefined
milight.0 2018-10-06 18:15:04.185 error uncaught exception: Cannot read property 'toString' of undefined</anonymous></anonymous></anonymous></anonymous> `
Muss es mir mal in Ruhe ansehen.