für das Schalten und Abfragen per telegram-Adapter in Verbindung mit text2command nutze ich unter anderem folgendes Script (das habe ich aus einem Beitrag von @Dutchman).
Ich erhalte beim Ausführen eines derartigen Scriptes folgende Warnung
State "Object ID" not found
Anstelle von "Object ID" gehört hier offensichtlich ein anderer Wert/Bezug rein.
Meine Kenntnisse reichen leider nicht um herauszufinden was das sein könnte
Jemand eine Idee? (das vollständige Log füge ich bei)
javascript.0 2019-07-21 10:59:09.669 warn at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
javascript.0 2019-07-21 10:59:09.669 warn at Socket.Readable.push (_stream_readable.js:224:10)
javascript.0 2019-07-21 10:59:09.669 warn at readableAddChunk (_stream_readable.js:269:11)
javascript.0 2019-07-21 10:59:09.669 warn at addChunk (_stream_readable.js:288:12)
javascript.0 2019-07-21 10:59:09.669 warn at Socket.emit (events.js:198:13)
javascript.0 2019-07-21 10:59:09.669 warn at Socket.realHandler (/opt/iobroker/node_modules/ws/lib/WebSocket.js:825:20)
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.add (/opt/iobroker/node_modules/ws/lib/Receiver.js:103:24)
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.expectHandler (/opt/iobroker/node_modules/ws/lib/Receiver.js:499:31)
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.finish (/opt/iobroker/node_modules/ws/lib/Receiver.js:541:12)
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.flush (/opt/iobroker/node_modules/ws/lib/Receiver.js:347:3)
javascript.0 2019-07-21 10:59:09.668 warn at /opt/iobroker/node_modules/ws/lib/Receiver.js:508:14
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.applyExtensions (/opt/iobroker/node_modules/ws/lib/Receiver.js:371:5)
javascript.0 2019-07-21 10:59:09.668 warn at /opt/iobroker/node_modules/ws/lib/Receiver.js:536:18
javascript.0 2019-07-21 10:59:09.668 warn at Receiver.ontext (/opt/iobroker/node_modules/ws/lib/WebSocket.js:841:10)
javascript.0 2019-07-21 10:59:09.668 warn at WebSocket.emit (events.js:198:13)
javascript.0 2019-07-21 10:59:09.668 warn at WebSocket.onMessage (/opt/iobroker/node_modules/ws/lib/WebSocket.js:442:14)
javascript.0 2019-07-21 10:59:09.668 warn at WebSocket.ws.onmessage (/opt/iobroker/node_modules/engine.io-client/lib/transports/websocket.js:146:10)
javascript.0 2019-07-21 10:59:09.668 warn at WS.Transport.onData (/opt/iobroker/node_modules/engine.io-client/lib/transport.js:137:8)
javascript.0 2019-07-21 10:59:09.668 warn at WS.Transport.onPacket (/opt/iobroker/node_modules/engine.io-client/lib/transport.js:145:8)
javascript.0 2019-07-21 10:59:09.668 warn at WS.Emitter.emit (/opt/iobroker/node_modules/engine.io-client/node_modules/component-emitter/index.js:133:20)
javascript.0 2019-07-21 10:59:09.668 warn at WS.<anonymous> (/opt/iobroker/node_modules/engine.io-client/lib/socket.js:268:10)
javascript.0 2019-07-21 10:59:09.668 warn at Socket.onPacket (/opt/iobroker/node_modules/engine.io-client/lib/socket.js:451:14)
javascript.0 2019-07-21 10:59:09.668 warn at Socket.Emitter.emit (/opt/iobroker/node_modules/engine.io-client/node_modules/component-emitter/index.js:133:20)
javascript.0 2019-07-21 10:59:09.668 warn at Socket.<anonymous> (/opt/iobroker/node_modules/component-bind/index.js:21:15)
javascript.0 2019-07-21 10:59:09.668 warn at Manager.ondata (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:322:16)
javascript.0 2019-07-21 10:59:09.668 warn at Decoder.add (/opt/iobroker/node_modules/socket.io-parser/index.js:246:12)
javascript.0 2019-07-21 10:59:09.668 warn at Decoder.Emitter.emit (/opt/iobroker/node_modules/component-emitter/index.js:134:20)
javascript.0 2019-07-21 10:59:09.668 warn at Decoder.<anonymous> (/opt/iobroker/node_modules/component-bind/index.js:21:15)
javascript.0 2019-07-21 10:59:09.668 warn at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:332:8)
javascript.0 2019-07-21 10:59:09.668 warn at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
javascript.0 2019-07-21 10:59:09.668 warn at Manager.<anonymous> (/opt/iobroker/node_modules/component-bind/index.js:21:15)
javascript.0 2019-07-21 10:59:09.668 warn at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:228:12)
javascript.0 2019-07-21 10:59:09.667 warn at Socket.onevent (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:270:10)
javascript.0 2019-07-21 10:59:09.667 warn at Socket.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
javascript.0 2019-07-21 10:59:09.667 warn at Socket.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemClient.js:52:30)
javascript.0 2019-07-21 10:59:09.667 warn at Object.change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:3706:37)
javascript.0 2019-07-21 10:59:09.667 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:364:25)
javascript.0 2019-07-21 10:59:09.667 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:973:38)
javascript.0 2019-07-21 10:59:09.667 warn at Object.<anonymous> (script.js.Geräte.Telegram.telegram_scriptHauptmenu:4:3)
javascript.0 2019-07-21 10:59:09.667 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1276:20)
javascript.0 2019-07-21 10:59:09.667 warn State "Object ID" not found
Hallo BBTown,
in Zeile 4 müsstest du "Object ID" ersetzen durch eine konkrete ObjektID ersetzen.
Die richtige Objekt ID kannst du mithilfe des folgenden Buttons selektieren: