NEWS
[gelöst] HM-RPC bringt Fehler und pumpt den Duty cycle voll
-
Moin,
habe ein Problem. Habe einen Homematic IP Schalter eingerichtet, dass dieser ein node-Red Script ausführt, welches dann eine Homematic IP Steckdose schaltet.
Dies funktioniert soweit auch, nur schreibt der HM-RPC dann folgenden Fehler:hm-rpc.0 2022-11-11 09:18:26.185 error xmlrpc -> setValue ["0034DF2991CE15:3","STATE",true] BOOL
hm-rpc.0 2022-11-11 09:18:26.142 error Cannot call setValue: Unexpected endLine: 0Column: 0Char:Das Problem ist dies läuft dann endlos durch, bis ich den Adapter oder die CCU neu starte.
Woran kann das liegen?mfG
@renegade-0
Bist Du sicher dass "HM-RPC" hier den Fehler verursacht und nicht das Script?
Das Script auch zu zeigen wäre hilfreich. Dann könnte es sein, dass der Post in eine andere Kategorie gehört. -
@renegade-0
Bist Du sicher dass "HM-RPC" hier den Fehler verursacht und nicht das Script?
Das Script auch zu zeigen wäre hilfreich. Dann könnte es sein, dass der Post in eine andere Kategorie gehört.ein gutes Argument ;)
[ { "id": "7405dde45b8a1baf", "type": "tab", "label": "shutdown-Windows", "disabled": false, "info": "", "env": [] }, { "id": "1f0e7cfb8ccfd9a8", "type": "ping", "z": "7405dde45b8a1baf", "protocol": "IPv4", "mode": "triggered", "name": "PC-Buero", "host": "", "timer": "20", "inputs": 1, "x": 960, "y": 200, "wires": [ [ "dcb2753b0a38f02d" ] ] }, { "id": "fda15bb4a1a5d1d3", "type": "ioBroker in", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 120, "y": 120, "wires": [ [ "5faa03897caa5247" ] ] }, { "id": "dcb2753b0a38f02d", "type": "switch", "z": "7405dde45b8a1baf", "name": "is-pc-on", "property": "payload", "propertyType": "msg", "rules": [ { "t": "false" }, { "t": "nnull" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1140, "y": 200, "wires": [ [ "04d376ce62f36aea" ], [ "353cdefa1a183806" ] ] }, { "id": "353cdefa1a183806", "type": "change", "z": "7405dde45b8a1baf", "name": "yes", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 340, "wires": [ [ "4edb96add39a3c2a" ] ] }, { "id": "8e2f12ed7439c505", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-off", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 140, "wires": [] }, { "id": "b21688fd381ea941", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "10", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1450, "y": 140, "wires": [ [ "8e2f12ed7439c505" ] ] }, { "id": "04d376ce62f36aea", "type": "change", "z": "7405dde45b8a1baf", "name": "no", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 140, "wires": [ [ "b21688fd381ea941" ] ] }, { "id": "5faa03897caa5247", "type": "switch", "z": "7405dde45b8a1baf", "name": "on-off", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 270, "y": 120, "wires": [ [ "3b5e80eb69d52b52", "0c411ad641d64975" ], [ "9b8a6a01ec5fda3f" ] ] }, { "id": "3b5e80eb69d52b52", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-on", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 80, "wires": [] }, { "id": "86c938764ad86d76", "type": "exec", "z": "7405dde45b8a1baf", "command": "net rpc shutdown -f -C \"Der Rechner wird neu gestartet\" -I ", "addpay": "ip", "append": " -U Eisenfelden66/root%Riddick03", "useSpawn": "false", "timer": "", "winHide": false, "oldrc": false, "name": "shutdown", "x": 1280, "y": 440, "wires": [ [], [ "9791ef665c9d9b2c" ], [ "be37520033410705" ] ] }, { "id": "9791ef665c9d9b2c", "type": "debug", "z": "7405dde45b8a1baf", "name": "err", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1790, "y": 420, "wires": [] }, { "id": "f566a55d1e8155c8", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "0", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1450, "y": 520, "wires": [ [ "9871aa51e057573f" ], [ "6e8918e7057c6f1b" ] ] }, { "id": "be37520033410705", "type": "split", "z": "7405dde45b8a1baf", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1130, "y": 520, "wires": [ [ "db6db1049870597e" ] ] }, { "id": "0f9fde6441dd16ac", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "30", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 310, "y": 260, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "6e8918e7057c6f1b", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown OK", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" }, { "t": "set", "p": "execute", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 120, "y": 580, "wires": [ [ "0f9fde6441dd16ac", "4c9a73c251e333e8" ] ] }, { "id": "9871aa51e057573f", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown fail", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1610, "y": 480, "wires": [ [ "9791ef665c9d9b2c" ] ] }, { "id": "db6db1049870597e", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "istype", "v": "number", "vt": "number" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 1290, "y": 520, "wires": [ [ "f566a55d1e8155c8" ] ] }, { "id": "4edb96add39a3c2a", "type": "switch", "z": "7405dde45b8a1baf", "name": "executed", "property": "execute", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1460, "y": 340, "wires": [ [ "0f9fde6441dd16ac" ], [ "86c938764ad86d76" ] ] }, { "id": "9b8a6a01ec5fda3f", "type": "change", "z": "7405dde45b8a1baf", "name": "execute", "rules": [ { "t": "set", "p": "execute", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 440, "y": 140, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "4c9a73c251e333e8", "type": "debug", "z": "7405dde45b8a1baf", "name": "shutdown", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 320, "y": 580, "wires": [] }, { "id": "7be17cedad88fe38", "type": "ioBroker get", "z": "7405dde45b8a1baf", "name": "ip_adress", "topic": "0_userdata.0.shutdown.windows.ip_adress", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 620, "y": 200, "wires": [ [ "a2b1edef2bb209f9" ] ] }, { "id": "0c411ad641d64975", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 460, "y": 40, "wires": [] }, { "id": "a2b1edef2bb209f9", "type": "change", "z": "7405dde45b8a1baf", "name": "ip", "rules": [ { "t": "set", "p": "ip", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 200, "wires": [ [ "1f0e7cfb8ccfd9a8" ] ] } ]Wobei laut Protokoll ja der rpc einen Fehler beim schreiben auswirft.
-
ein gutes Argument ;)
[ { "id": "7405dde45b8a1baf", "type": "tab", "label": "shutdown-Windows", "disabled": false, "info": "", "env": [] }, { "id": "1f0e7cfb8ccfd9a8", "type": "ping", "z": "7405dde45b8a1baf", "protocol": "IPv4", "mode": "triggered", "name": "PC-Buero", "host": "", "timer": "20", "inputs": 1, "x": 960, "y": 200, "wires": [ [ "dcb2753b0a38f02d" ] ] }, { "id": "fda15bb4a1a5d1d3", "type": "ioBroker in", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 120, "y": 120, "wires": [ [ "5faa03897caa5247" ] ] }, { "id": "dcb2753b0a38f02d", "type": "switch", "z": "7405dde45b8a1baf", "name": "is-pc-on", "property": "payload", "propertyType": "msg", "rules": [ { "t": "false" }, { "t": "nnull" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1140, "y": 200, "wires": [ [ "04d376ce62f36aea" ], [ "353cdefa1a183806" ] ] }, { "id": "353cdefa1a183806", "type": "change", "z": "7405dde45b8a1baf", "name": "yes", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 340, "wires": [ [ "4edb96add39a3c2a" ] ] }, { "id": "8e2f12ed7439c505", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-off", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 140, "wires": [] }, { "id": "b21688fd381ea941", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "10", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1450, "y": 140, "wires": [ [ "8e2f12ed7439c505" ] ] }, { "id": "04d376ce62f36aea", "type": "change", "z": "7405dde45b8a1baf", "name": "no", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 140, "wires": [ [ "b21688fd381ea941" ] ] }, { "id": "5faa03897caa5247", "type": "switch", "z": "7405dde45b8a1baf", "name": "on-off", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 270, "y": 120, "wires": [ [ "3b5e80eb69d52b52", "0c411ad641d64975" ], [ "9b8a6a01ec5fda3f" ] ] }, { "id": "3b5e80eb69d52b52", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-on", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 80, "wires": [] }, { "id": "86c938764ad86d76", "type": "exec", "z": "7405dde45b8a1baf", "command": "net rpc shutdown -f -C \"Der Rechner wird neu gestartet\" -I ", "addpay": "ip", "append": " -U Eisenfelden66/root%Riddick03", "useSpawn": "false", "timer": "", "winHide": false, "oldrc": false, "name": "shutdown", "x": 1280, "y": 440, "wires": [ [], [ "9791ef665c9d9b2c" ], [ "be37520033410705" ] ] }, { "id": "9791ef665c9d9b2c", "type": "debug", "z": "7405dde45b8a1baf", "name": "err", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1790, "y": 420, "wires": [] }, { "id": "f566a55d1e8155c8", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "0", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1450, "y": 520, "wires": [ [ "9871aa51e057573f" ], [ "6e8918e7057c6f1b" ] ] }, { "id": "be37520033410705", "type": "split", "z": "7405dde45b8a1baf", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1130, "y": 520, "wires": [ [ "db6db1049870597e" ] ] }, { "id": "0f9fde6441dd16ac", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "30", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 310, "y": 260, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "6e8918e7057c6f1b", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown OK", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" }, { "t": "set", "p": "execute", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 120, "y": 580, "wires": [ [ "0f9fde6441dd16ac", "4c9a73c251e333e8" ] ] }, { "id": "9871aa51e057573f", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown fail", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1610, "y": 480, "wires": [ [ "9791ef665c9d9b2c" ] ] }, { "id": "db6db1049870597e", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "istype", "v": "number", "vt": "number" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 1290, "y": 520, "wires": [ [ "f566a55d1e8155c8" ] ] }, { "id": "4edb96add39a3c2a", "type": "switch", "z": "7405dde45b8a1baf", "name": "executed", "property": "execute", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1460, "y": 340, "wires": [ [ "0f9fde6441dd16ac" ], [ "86c938764ad86d76" ] ] }, { "id": "9b8a6a01ec5fda3f", "type": "change", "z": "7405dde45b8a1baf", "name": "execute", "rules": [ { "t": "set", "p": "execute", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 440, "y": 140, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "4c9a73c251e333e8", "type": "debug", "z": "7405dde45b8a1baf", "name": "shutdown", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 320, "y": 580, "wires": [] }, { "id": "7be17cedad88fe38", "type": "ioBroker get", "z": "7405dde45b8a1baf", "name": "ip_adress", "topic": "0_userdata.0.shutdown.windows.ip_adress", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 620, "y": 200, "wires": [ [ "a2b1edef2bb209f9" ] ] }, { "id": "0c411ad641d64975", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 460, "y": 40, "wires": [] }, { "id": "a2b1edef2bb209f9", "type": "change", "z": "7405dde45b8a1baf", "name": "ip", "rules": [ { "t": "set", "p": "ip", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 200, "wires": [ [ "1f0e7cfb8ccfd9a8" ] ] } ]Wobei laut Protokoll ja der rpc einen Fehler beim schreiben auswirft.
@renegade-0
Naja, einUnexpected endLineklingt eher nach 'nem Problem mit dem Script.
Da ich Node-Red nicht kenne und das auch nicht installiert habe, kann ich persönlich mit dem Code wenig anfangen - dafür vielleicht Andere.Hast Du mal versucht, das Ganze alternativ z.B. mit Blockly oder JS zu steuern?
Nur so als Überprüfung, ob andere "Scripte" das Problem auch produzieren. -
@renegade-0
Naja, einUnexpected endLineklingt eher nach 'nem Problem mit dem Script.
Da ich Node-Red nicht kenne und das auch nicht installiert habe, kann ich persönlich mit dem Code wenig anfangen - dafür vielleicht Andere.Hast Du mal versucht, das Ganze alternativ z.B. mit Blockly oder JS zu steuern?
Nur so als Überprüfung, ob andere "Scripte" das Problem auch produzieren.Damit kenn ich mich jetzt leider nicht aus, darum noch keine Überprüfung gemacht. Aber im Endeffekt schreibt ja node-Red nur ein true oder false bei diesem Script. Bei anderen haut es super hin.
Hoffentlich findet sich einer, der den Fehler sieht. Ich suche seid 2 Tagen und finde nichts. :/Evtl. ist auch die Steckdose hin. Denn es gibt nur bei der Probleme. Ist eine HmIP-PSM-2. Die anderen sind alle normale PSM.
-
ein gutes Argument ;)
[ { "id": "7405dde45b8a1baf", "type": "tab", "label": "shutdown-Windows", "disabled": false, "info": "", "env": [] }, { "id": "1f0e7cfb8ccfd9a8", "type": "ping", "z": "7405dde45b8a1baf", "protocol": "IPv4", "mode": "triggered", "name": "PC-Buero", "host": "", "timer": "20", "inputs": 1, "x": 960, "y": 200, "wires": [ [ "dcb2753b0a38f02d" ] ] }, { "id": "fda15bb4a1a5d1d3", "type": "ioBroker in", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 120, "y": 120, "wires": [ [ "5faa03897caa5247" ] ] }, { "id": "dcb2753b0a38f02d", "type": "switch", "z": "7405dde45b8a1baf", "name": "is-pc-on", "property": "payload", "propertyType": "msg", "rules": [ { "t": "false" }, { "t": "nnull" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1140, "y": 200, "wires": [ [ "04d376ce62f36aea" ], [ "353cdefa1a183806" ] ] }, { "id": "353cdefa1a183806", "type": "change", "z": "7405dde45b8a1baf", "name": "yes", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 340, "wires": [ [ "4edb96add39a3c2a" ] ] }, { "id": "8e2f12ed7439c505", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-off", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 140, "wires": [] }, { "id": "b21688fd381ea941", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "10", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1450, "y": 140, "wires": [ [ "8e2f12ed7439c505" ] ] }, { "id": "04d376ce62f36aea", "type": "change", "z": "7405dde45b8a1baf", "name": "no", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1290, "y": 140, "wires": [ [ "b21688fd381ea941" ] ] }, { "id": "5faa03897caa5247", "type": "switch", "z": "7405dde45b8a1baf", "name": "on-off", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 270, "y": 120, "wires": [ [ "3b5e80eb69d52b52", "0c411ad641d64975" ], [ "9b8a6a01ec5fda3f" ] ] }, { "id": "3b5e80eb69d52b52", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc-on", "topic": "hm-rpc.0.0034DF2991CE15.3.STATE", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1610, "y": 80, "wires": [] }, { "id": "86c938764ad86d76", "type": "exec", "z": "7405dde45b8a1baf", "command": "net rpc shutdown -f -C \"Der Rechner wird neu gestartet\" -I ", "addpay": "ip", "append": " -U Eisenfelden66/root%Riddick03", "useSpawn": "false", "timer": "", "winHide": false, "oldrc": false, "name": "shutdown", "x": 1280, "y": 440, "wires": [ [], [ "9791ef665c9d9b2c" ], [ "be37520033410705" ] ] }, { "id": "9791ef665c9d9b2c", "type": "debug", "z": "7405dde45b8a1baf", "name": "err", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1790, "y": 420, "wires": [] }, { "id": "f566a55d1e8155c8", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "0", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1450, "y": 520, "wires": [ [ "9871aa51e057573f" ], [ "6e8918e7057c6f1b" ] ] }, { "id": "be37520033410705", "type": "split", "z": "7405dde45b8a1baf", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1130, "y": 520, "wires": [ [ "db6db1049870597e" ] ] }, { "id": "0f9fde6441dd16ac", "type": "delay", "z": "7405dde45b8a1baf", "name": "delay", "pauseType": "delay", "timeout": "30", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 310, "y": 260, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "6e8918e7057c6f1b", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown OK", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" }, { "t": "set", "p": "execute", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 120, "y": 580, "wires": [ [ "0f9fde6441dd16ac", "4c9a73c251e333e8" ] ] }, { "id": "9871aa51e057573f", "type": "change", "z": "7405dde45b8a1baf", "name": "shutdown fail", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1610, "y": 480, "wires": [ [ "9791ef665c9d9b2c" ] ] }, { "id": "db6db1049870597e", "type": "switch", "z": "7405dde45b8a1baf", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "istype", "v": "number", "vt": "number" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 1290, "y": 520, "wires": [ [ "f566a55d1e8155c8" ] ] }, { "id": "4edb96add39a3c2a", "type": "switch", "z": "7405dde45b8a1baf", "name": "executed", "property": "execute", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1460, "y": 340, "wires": [ [ "0f9fde6441dd16ac" ], [ "86c938764ad86d76" ] ] }, { "id": "9b8a6a01ec5fda3f", "type": "change", "z": "7405dde45b8a1baf", "name": "execute", "rules": [ { "t": "set", "p": "execute", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 440, "y": 140, "wires": [ [ "7be17cedad88fe38" ] ] }, { "id": "4c9a73c251e333e8", "type": "debug", "z": "7405dde45b8a1baf", "name": "shutdown", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 320, "y": 580, "wires": [] }, { "id": "7be17cedad88fe38", "type": "ioBroker get", "z": "7405dde45b8a1baf", "name": "ip_adress", "topic": "0_userdata.0.shutdown.windows.ip_adress", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 620, "y": 200, "wires": [ [ "a2b1edef2bb209f9" ] ] }, { "id": "0c411ad641d64975", "type": "ioBroker out", "z": "7405dde45b8a1baf", "name": "pc_state", "topic": "0_userdata.0.shutdown.windows.pc_state", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 460, "y": 40, "wires": [] }, { "id": "a2b1edef2bb209f9", "type": "change", "z": "7405dde45b8a1baf", "name": "ip", "rules": [ { "t": "set", "p": "ip", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 200, "wires": [ [ "1f0e7cfb8ccfd9a8" ] ] } ]Wobei laut Protokoll ja der rpc einen Fehler beim schreiben auswirft.
@renegade-0 sagte in HM-RPC bringt Fehler und pumpt den Duty cycle voll:
Wobei laut Protokoll ja der rpc einen Fehler beim schreiben auswirft.
natürlich!
hm-rpc kann mit dem unvollständigen Befehl deines Skripts nichts anfangen!was ist denn mit:
@codierknecht sagte in HM-RPC bringt Fehler und pumpt den Duty cycle voll:
Das Script auch zu zeigen wäre hilfreich.
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1
-
Damit kenn ich mich jetzt leider nicht aus, darum noch keine Überprüfung gemacht. Aber im Endeffekt schreibt ja node-Red nur ein true oder false bei diesem Script. Bei anderen haut es super hin.
Hoffentlich findet sich einer, der den Fehler sieht. Ich suche seid 2 Tagen und finde nichts. :/Evtl. ist auch die Steckdose hin. Denn es gibt nur bei der Probleme. Ist eine HmIP-PSM-2. Die anderen sind alle normale PSM.
@renegade-0 sagte in HM-RPC bringt Fehler und pumpt den Duty cycle voll:
Damit kenn ich mich jetzt leider nicht aus
Blockly hast Du installiert?
Ist für so eine kleine Überprüfung ja recht simpel:

Vorausgesetzt, im DP für den Schalter wird irgendwo true/false geliefert, um damit die Dose auf true/false zu setzen.Du kannst auch das folgende nehmen und in Blockly importieren.

Dann musst Du das nur entsprechend anpassen: -
@renegade-0 sagte in HM-RPC bringt Fehler und pumpt den Duty cycle voll:
Wobei laut Protokoll ja der rpc einen Fehler beim schreiben auswirft.
natürlich!
hm-rpc kann mit dem unvollständigen Befehl deines Skripts nichts anfangen!was ist denn mit:
@codierknecht sagte in HM-RPC bringt Fehler und pumpt den Duty cycle voll:
Das Script auch zu zeigen wäre hilfreich.
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1
@homoran
Hio und guten Morgen.Last login: Fri Nov 11 09:29:04 2022 pi@SmartBox:~$ node -v v16.18.0 pi@SmartBox:~$Node-Red Adapter v 3.0.2
NPM v8.19.2
js-Controller v 4.0.23
ioAdmin v6.2.23
hm-rpc 1.15.15und alle Adapter natürlich aktuell. So hoffe das waren alle fehlenden Infos.
-
@homoran
Hio und guten Morgen.Last login: Fri Nov 11 09:29:04 2022 pi@SmartBox:~$ node -v v16.18.0 pi@SmartBox:~$Node-Red Adapter v 3.0.2
NPM v8.19.2
js-Controller v 4.0.23
ioAdmin v6.2.23
hm-rpc 1.15.15und alle Adapter natürlich aktuell. So hoffe das waren alle fehlenden Infos.
EDIT:
Fehler gefunden. Es war noch eine Testnode drinnen, welche eine Endlosschleife verursacht hat und wenn der duty cycle voll war, konnte der rpc nicht mehr schreiben.
somit closed.
Danke für eure Zeit
-
EDIT:
Fehler gefunden. Es war noch eine Testnode drinnen, welche eine Endlosschleife verursacht hat und wenn der duty cycle voll war, konnte der rpc nicht mehr schreiben.
somit closed.
Danke für eure Zeit
@renegade-0
Dann bearbeite bitte Deinen Eingangspost und setze ein "[gelöst] - " davor. -
@renegade-0
Dann bearbeite bitte Deinen Eingangspost und setze ein "[gelöst] - " davor.@codierknecht
erledigt
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden