- Home
- Deutsch
- ioBroker Allgemein
- Probleme mit Text2Command
Probleme mit Text2Command
-
Guten Morgen zusammen,
auch ich habe ein paar Probleme mit dem Adapter "Text2Command".
Bis vor ein paar Tagen lief noch alles einwandfrei, was dann passiert ist kann ich nicht genau sagen.
Ich hab heute neue Magnetkontakte in mein System eingelernt und dann ist mir der Fehler erst aufgefallen.Undzwar verwende ich ein Blockly Script, welches meine Fenster überprüft ob sie offen oder geschlossen sind ( Das Script wurde nicht von mir geschrieben, ich habe es nur auf meine Bedürfnisse angepasst ). Das Script wird über Telegram mittels Text2Command angesteuert und greift auf ein Datenpunkt zu.
Ich hatte in dem Datenpunkt alle Fenster drin, hab sie aber für die Testzwecke rausgeworfen und nur einen genommen. Ebenfalls hab ich im Blocklyscript nur das eine Fenster in der Überprüfung.Ich bin kein Profi in diesem Bereich und hoffe daher, dass es nur einfaches Problem ist und nur ein Typischer "Layer 8" ( hab ich mal in unserer IT-Abteilung aufgeschnappt :D) Fehler ist.
Vielen Dank im Vorraus!
Systeminfo:
Raspberry Pi 4
CPU: 2,67 %
RAM: 31 %
Betriebszeit: 0h
Verfügbar: 7.0.6
Installiert: 7.0.6
Ereignisse: ⇥13 / ↦13
Plattform: linux
Betriebssystem: linux
Architektur: arm64
CPUs: 4
Geschwindigkeit: 1100 MHz
Modell: Cortex-A72
RAM: 3.7 GB
System-Betriebszeit: 00:16:18
Node.js: v20.18.3
time: 1741167263442
timeOffset: -60
NPM: 10.8.2
Adapter-Anzahl: 556
Datenträgergröße: 58.0 GB
Freier Festplattenspeicher: 48.3 GB
Aktive Instanzen: 13
Pfad: /opt/iobroker/
Betriebszeit: 00:01:06
aktiv: true
_nodeCurrent: 20.18.3
_nodeNewest: 20.18.3
_nodeNewestNext: 20.18.3
_npmCurrent: 10.8.2
_npmNewest: 10.8.2
_npmNewestNext: 10.8.2
Hier der Fehler aus den Logs:2025-03-05 10:35:20.798 - info: text2command.0 (24973) processText: "Fensterstatus" 2025-03-05 10:35:20.801 - info: text2command.0 (24973) Control ID "0_userdata.0.Eigene_Datenpunkte.Fensterstatus" with: true 2025-03-05 10:35:20.824 - info: text2command.0 (24973) Response: undefined 2025-03-05 10:35:20.829 - error: text2command.0 (24973) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2025-03-05 10:35:20.830 - error: text2command.0 (24973) unhandled promise rejection: undefined is not a valid state value 2025-03-05 10:35:21.023 - error: text2command.0 (24973) Error: undefined is not a valid state value at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/maybeCallback.ts:129:17) at AdapterClass._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7808:26) at AdapterClass.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7766:21) at /opt/iobroker/node_modules/iobroker.text2command/main.js:252:60 at Immediate. (/opt/iobroker/node_modules/iobroker.text2command/lib/simpleControl.js:410:21) at processImmediate (node:internal/timers:485:21) 2025-03-05 10:35:21.024 - error: text2command.0 (24973) undefined is not a valid state value 2025-03-05 10:35:21.052 - info: text2command.0 (24973) terminating 2025-03-05 10:35:21.054 - warn: text2command.0 (24973) Terminated (UNCAUGHT_EXCEPTION): Without reason 2025-03-05 10:35:21.556 - info: text2command.0 (24973) terminating 2025-03-05 10:35:21.637 - error: host.iobroker Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2025-03-05 10:35:21.638 - error: host.iobroker Caught by controller[1]: Error: undefined is not a valid state value 2025-03-05 10:35:21.638 - error: host.iobroker Caught by controller[1]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/maybeCallback.ts:129:17) 2025-03-05 10:35:21.638 - error: host.iobroker Caught by controller[1]: at AdapterClass._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7808:26) 2025-03-05 10:35:21.638 - error: host.iobroker Caught by controller[1]: at AdapterClass.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7766:21) 2025-03-05 10:35:21.639 - error: host.iobroker Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.text2command/main.js:252:60 2025-03-05 10:35:21.639 - error: host.iobroker Caught by controller[1]: at Immediate. (/opt/iobroker/node_modules/iobroker.text2command/lib/simpleControl.js:410:21) 2025-03-05 10:35:21.639 - error: host.iobroker Caught by controller[1]: at processImmediate (node:internal/timers:485:21) 2025-03-05 10:35:21.639 - error: host.iobroker instance system.adapter.text2command.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2025-03-05 10:35:21.639 - info: host.iobroker Restart adapter system.adapter.text2command.0 because enabled 2025-03-05 10:35:52.016 - info: host.iobroker instance system.adapter.text2command.0 in version "3.0.3" started with pid 25131 2025-03-05 10:35:54.326 - info: text2command.0 (25131) starting. Version 3.0.3 in /opt/iobroker/node_modules/iobroker.text2command, node: v20.18.3, js-controller: 7.0.6code_text
Hier ein Bild des Datenpunktes:
Und hier noch das Blockly-Script:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</variable> <variable id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</variable> <variable id="/|{Paqw|`?,RWX@dU+4f">Fenster</variable> <variable id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</variable> </variables> <block type="procedures_defcustomnoreturn" id=".}seu`gD99^pXgi@37f:" x="13" y="13"> <mutation statements="false"></mutation> <field name="NAME">Datenpunkt_erstellen</field> <field name="SCRIPT">Ly9EYXRlbnB1bmt0IGVyc3RlbGxlbgpjcmVhdGVTdGF0ZSgiRWlnZW5lX0RhdGVucHVua3RlLjA0VGVsZWdyYW0uRmVuc3RlcnN0YXR1cy5GZW5zdGVyc3RhdHVzIiwgewogICAgbmFtZTogJ0ZlbnN0ZXJzdGF0dXMnLCAKICAgICJyb2xlIjogImJ1dHRvbiIsCiAgICAidHlwZSI6ICJtaXhlZCIsCiAgICAicmVhZCI6IHRydWUsCiAgICAid3JpdGUiOiB0cnVlLAogICAgInNtYXJ0TmFtZSI6IHsKICAgICJkZSI6ICJGZW5zdGVyc3RhdHVzIiwKICAgICJzbWFydFR5cGUiOiAiU1dJVENIIgp9Cn0pOw==</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="procedures_callcustomnoreturn" id=":2L|IC`!^cdLlX%y|@^x" x="13" y="63"> <mutation name="Datenpunkt_erstellen"></mutation> <next> <block type="on_ext" id="JpU,dLDC_}H1m*N76AUO"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="/[v!o-ChnBT_o!T)*p-)"> <field name="oid">0_userdata.0.Eigene_Datenpunkte.Fensterstatus</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="dBcitHNWr9jX:Ub;;eSd"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> <value name="VALUE"> <block type="math_number" id=",TX;`m#6*Sw)kXItl6tj"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="T~hQ.XK?-lDR|D`I.0_p"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> <value name="VALUE"> <block type="math_number" id="izw}/v{9?T,zHb)rxT^f"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="lY:|ehah_#|x(f,.kJp4"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> <value name="VALUE"> <block type="text" id="A_t@#Pw`wD]W@}^@1dSH"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="_N%+5H3?my:Hhre+4o6y"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text" id="KA~DgX3/J*6]qxSr1#W,"> <field name="TEXT"></field> </block> </value> <next> <block type="comment" id="^N8=D(eOI=/l!C;?Lh8b"> <field name="COMMENT">hier Fenster mit Wert auf-zu</field> <next> <block type="controls_if" id="cmwuvcu_F0k;Xska3cXU"> <value name="IF0"> <block type="logic_compare" id="H!B9U}n{%m8+=gfOE!.p"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="h4/~m,5ctC%-!^jfM5u0"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00124b002934848c.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wGAW9Vbi+#@RJ@@1Q|-0"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="=4gy#W~+I:VZbcl-NzZ5"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> <value name="VALUE"> <block type="text" id="LoUOt[JH(YxvxuzXtv@o"> <field name="TEXT">MK DG Buero</field> </block> </value> <next> <block type="math_change" id="U3[-F24g#%he,on[=Z/:"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> <value name="DELTA"> <shadow type="math_number" id="I0pyEp3HG*uoN+*c=OxB"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="comment" id="x%xL?W(}x9hx5dr0-Y^#"> <field name="COMMENT">ab hier Ausgabe</field> <next> <block type="controls_if" id="0-taM{aJ^:NIi`N3F2XZ"> <value name="IF0"> <block type="logic_operation" id="xI45+_i*FiTvsjxegzBD" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="qpQ(PjZtS/-0YhBH#@Zt"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="kU)Is~MVZ^*eGUgMXWXe"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="njx?HYCXH0eNZj*r*,Ay"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="!!kHL:6vh^)TaAO,E==U"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="mXOcF~N:jhwkNb];3NC,"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="LoE81lVk9#N+`o;nP9Zw"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="0i[!WvfUh{zT!*g2j(:["> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="qP.8AfF=#Edn@F;T1:-w"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="mL.aZtUXq(5S4~[KsR:)"> <field name="TEXT">Es ist ein Fenster offen</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="u0z8fGa^aE6CoHA6h*=2"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="khzEI~oTm`E0EHHP37W0"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="cHUxeq[{)XT/2KM::9;Q"> <value name="IF0"> <block type="logic_operation" id="u_U!//px.T!tO})~UXG," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=")|9t1Xk@E2*G3B=_w~A{"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="xs/R8CrOBMy1_ee)z^iN"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="We+4s?OXqK^fw.9MtT6J"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="TZy1wvtn!e-jmMDwS9*c"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="h/LFeWWPES.ks{Vd:xJ/"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="Q@xBJ!,{tdmiL+|;}G]v"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="ZBKpelZz,@.E%VKGw@6k"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="[xeM3gNbKh;4DJW~D}cX"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="h}`h0HV@/?@8!!VuC/C~"> <field name="TEXT">Es ist ein Fenster gekippt</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="NV^`SR%!x_nB*@VKa!Sv"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="t:)Ek^/+P{K+bF}0_[)t"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="i_}!,Q@K,t|)IG0ddBqE"> <value name="IF0"> <block type="logic_operation" id="nImAVz7rnR+4)bi|/s0I" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="!7)(}`-3gg/{=~szF,0`"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="2?RH3/hu0x,DHlH%Rw!6"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="*%RXDd-En5QPr5IJ#i9o"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="2@:gJfjjt::mlO(#j~b;"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="/=,gX;7BKgm/EgAfHm.Y"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="LvQvK4aXM,!mVxJjRL8,"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="x^L#2cd2jZS.-.GhAK/3"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="{96}8F58W6kPPLIs:-e}"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="6o|;J1O/SgPAxHEYAEQ{"> <field name="TEXT">Es ist ein Fenster offen</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="`Qw@dzf4(_8CWD67Z{kj"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="Q9#s9[v8bx5A#=!!1hgJ"> <field name="TEXT">Es ist ein Fenster gekippt</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="JT),88xF#Il`;Y_ae^L]"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="R+TsfetH)5``=UrqugLY"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="OoE`LT-6n]4u[{?kh7)e"> <value name="IF0"> <block type="logic_operation" id="V,uE#?+yY1r2Spz^ef;W" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="9,|)(=JKp]/}oLbb@mag"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="HMye~GGr8,0m!D0AIhw9"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="R#ftR5,DQ(8+7X-8=xaI"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="t)+|;~d-wH-PR(_BuAm;"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="yWzPRP??A3(!.2|vk4-Y"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="Bj13fY^PeP~2h!fwehKu"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="vG!vBG8}`{n*zsZ9[)yr"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="{}Q?X0ng9QhqCcC)XZQR"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="3x=?ukBOrYAG.Q4%HB17"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD1"> <block type="variables_get" id=")F?BR):E1Gr;=Q?U@C_?"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="ADD2"> <block type="text" id="zr^QuiuqOrGUl*/eTDFE"> <field name="TEXT"> Fenster gekippt</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="b5X#B@4kAzc-n1W0+duj"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="m3M}yJ-ym^KxIR[Z?;`K"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="TK)vOKPYuqQL0./n_W5s"> <value name="IF0"> <block type="logic_operation" id="nEJPYMjt~YNB@t-/fN~|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="^Ih}K{=8jL_+(4YssTf_"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="q=%6l^o:5aiSm!w]?fec"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="37@s:-i!)aI%M|pxty%|"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="R~sttJ[%^X8wY+{:|kOZ"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="gz=@IeP7GDh-M2a0bb^k"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="C.Wq_1zFTz(9eKiKGsp~"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="6^nB_9/JZ-u+dt|et+4#"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="+X+3kl.JQ5,:7rhgdu8S"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="VGP87}K7on;V08H:7CSK"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="Iw?|u{lT{1}2T?VD%C.5"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="ADD2"> <block type="text" id="CFNB|e.~Fn!aMW`MNsL("> <field name="TEXT"> Fenster offen </field> </block> </value> <value name="ADD3"> <block type="text_newline" id="-=Vm?m6wgR/BW=q^_L-1"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="OfKxUE*Gsqvy+fyxLFZX"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="#-7JFh(%PAhztruK[FsC"> <value name="IF0"> <block type="logic_operation" id="d],!e(h#SO9=o6|6h5nq" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Q@ws+/O-eC:]gf+;6;;u"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="Mc5q^[7=vqcp?3:v4nmx"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="kmO[QfiU+XX?zbr?M)lK"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Y+8cWTZ,Q=-!rIZ/jNkk"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="TX6c~}PZv*i/(kG6{[5o"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="a#%m#EIp-6kDUK@dQS[!"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="=]9yIQ~w0v~*wAji[L57"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id=")T*0dl@9]J:M`Zb@JoCi"> <mutation items="7"></mutation> <value name="ADD0"> <block type="text" id="{UNAB`t47B_kMB4Gr7!V"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="shT1Vel4ni0U%KkmA8s)"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="ADD2"> <block type="text" id="@4dWE*_q)yT`{Ni[JxT9"> <field name="TEXT"> Fenster offen</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="kLq]H{T=L%nDA[/g%g!8"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="yNv+;zGq/33=|5d0}~:I"> <field name="TEXT">Es ist ein Fenster gekippt</field> </block> </value> <value name="ADD5"> <block type="text_newline" id="V8eqge4R{2]@UjD~ejz("> <field name="Type">\n</field> </block> </value> <value name="ADD6"> <block type="variables_get" id="RBW30K9/[x=i)cqt1+J;"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="~XZj7+Q}~c1U;%T6C%d9"> <value name="IF0"> <block type="logic_operation" id=")xNxVBcA^{R[lV]0P0]0" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="ECFQWnV/[HY^lc4`?!b%"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="bZ0%Du]Ncn0NdHOrEcSJ"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="fMZ*Fr93h}Mp6),GX,]:"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="a)EfoYu.}1j{yps;F^Ze"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="shJ78cU=HpR7H.d=9pGM"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="?w[@RS!x36n!(aNW6lNy"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="9[6UezPSizp`,8Gy/9%-"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="meM?.hB%0=Ml#u][@mye"> <mutation items="7"></mutation> <value name="ADD0"> <block type="text" id="L|a]#fU[qV.r{CB)/UrS"> <field name="TEXT">Es ist ein Fenster offen</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="`p0Gzl(Ro,oK[,b*y$3V"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id=",Lgs;3LS%pnKilY_ZLjr"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="+CPW:.=XFNn{4R:utNFj"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="ADD4"> <block type="text" id="bL6Z:.MJ?roJcNTE4ICF"> <field name="TEXT"> Fenster gekippt</field> </block> </value> <value name="ADD5"> <block type="text_newline" id="R3GS3qJe[!]2SIBVGxe`"> <field name="Type">\n</field> </block> </value> <value name="ADD6"> <block type="variables_get" id="._^]iF-:X?BQYLxrEo=="> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="A_KWHdc5AK0}g2YS[HAg"> <value name="IF0"> <block type="logic_operation" id="e:M*)R2:C,Mm*j1~i@gD" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="_G}v1A9COT8u(E_9xE|("> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="Xq*jYxe*.LX^]RH~lJ7B"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="A=vce`]wgn{tc|)RwW5t"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="yaLyl936xYmDe+pu1^D)"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="PKf?]g{3g{b-Yb#ieOqR"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="Pp-=+U/V#|4!F#(1A3/Z"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="jpOY[;1g1ye6j3n;,=d,"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text_join" id="OQZ78;zq%vx8Sj0U|JE/"> <mutation items="9"></mutation> <value name="ADD0"> <block type="text" id="OP@rN9QB%+1uSObDIxwU"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="{WXt(:ke!Fm{HdN_OiDN"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="ADD2"> <block type="text" id="%J{LoUukAabtTII=-n7k"> <field name="TEXT"> Fenster offen</field> </block> </value> <value name="ADD3"> <block type="text_newline" id="qs@T4y{FO0D.vHR`jNiG"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="P/6u.q=rW+LcRFbP:Pdy"> <field name="TEXT">Es sind </field> </block> </value> <value name="ADD5"> <block type="variables_get" id="VtZ;NSf-Ucdrb_MTN8@c"> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="ADD6"> <block type="text" id="}@OMe2K{MPE0]JSW;enV"> <field name="TEXT"> Fenster gekippt</field> </block> </value> <value name="ADD7"> <block type="text_newline" id="*C*zAxZN!Ha4I=Hev+*m"> <field name="Type">\n</field> </block> </value> <value name="ADD8"> <block type="variables_get" id="0eypd~8;4aiRs^^K7wLC"> <field name="VAR" id="/|{Paqw|`?,RWX@dU+4f">Fenster</field> </block> </value> </block> </value> </block> </statement> <next> <block type="controls_if" id="x,y#p8BGYEF=dxG6L)q3"> <value name="IF0"> <block type="logic_operation" id="+GcL)_#?HSZWm{fFz7^`" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="%XBDxv8OG.zADMMUYt/["> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id=":IlS!t)kBRySlNGmwSi!"> <field name="VAR" id="~Wi-J?QUCu{;hTg#^[.!">offene Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="HRNzo;oq;26nZO17*HJA"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="^NC^]c{G79`pdG-9iUw`"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="jnMtP*GDD5-i7;X3z?s("> <field name="VAR" id="{rWK)iTo0lD|x2j3Rzgx">gekippte Fenster</field> </block> </value> <value name="B"> <block type="math_number" id="+Z}O`AFzC}^pU5gtpM(v"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="J1i^yzNnTtkFT)|l(|m-"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> <value name="VALUE"> <block type="text" id="@fm3!zkB)o%-j#rZ847o"> <field name="TEXT">Alle Fenster sind geschlossen</field> </block> </value> </block> </statement> <next> <block type="telegram" id="_E{zP4rOnzpi*]a|Oyu#"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id=")o*MalV``_~yeG#!-go_"> <field name="TEXT">text</field> </shadow> <block type="variables_get" id="8D,U9B_TMaTD#a5^]I_D"> <field name="VAR" id="9[x_-(5}j+VmbtPM,}gC">Ausgabe</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>
-
@domm3 sagte: hier noch das Blockly-Script:
An diesem Skript liegt es nicht, denn es hat keine Beziehung zu "text2command".
Wie wird der DP "0_userdata.0.Eigene_Datenpunkte.Fensterstatus" auf true gesetzt?Lösche die Funktion "Datenpunkt_erstellen", denn sie erzeugt einen DP unter "javascript.0".
-
@paul53 Vielen Dank erstmal für die Antwort.
Die Funktion im Blocklyscript habe ich gelöscht, Fehler bleibt.Unter Kommandos von Text2Command wird die Funktion auf true gesetzt, wenn ich das richtig verstehe.
-
@domm3 sagte: von Text2Command wird die Funktion auf true gesetzt
Von Text2Command habe ich keine Ahnung. Den Bestätigungstext kann man leer lassen?
2025-03-05 10:35:20.824 - info: text2command.0 (24973) Response: undefined
-
Interessant. Auf die Idee, da was reinzuschreiben bin ich nicht gekommen, da sie vorher auch leer sein konnte. Jetzt hab ich aus Spaß mal "Test" reingeschrieben und es funktiontiert. Leider sendet der mir dann immer die Testnachricht mit, aber das kann ich erstmal ignorieren.
Falls jemand anders noch eine Idee hat, wäre ich sehr dankbar anderfalls ist das Problem damit behoben.
Danke nochmal @paul53
-
@domm3 sagte: "Test" reingeschrieben und es funktiontiert. Leider sendet der mir dann immer die Testnachricht mit
Ein Leerzeichen oder ein Punkt ist weniger auffällig.
-
@paul53
Irgendwas in die Richtung werde ich schon machen. Da es so wie so in einer seperaten Zeile ausgegeben wird, kann ich reinschreiben was ich möchte