NEWS
Fehler javascript.1 (818) at Object.<anonymous>
-
Hallo IO Broker Gemeinde,
ich habe -wie gewohnt- ein harmloses Blockly Skript entwickelt.
Das Skript funktioniert wie es soll, jedoch erscheint immer wieder die Meldung "javascript.1 (818) at Object.<anonymous> (script.js.Test.TibberBlockly:4:5)"<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="cjAXfrHzVfB$0/|{M;=?" x="-674" y="-482"> <field name="COMMENT">SUN2000 An/Aus</field> <next> <block type="on_ext" id="q36`2xwzX/7}8Q@9#FdM"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=".`}0$y^/Qgwo#uCd`{g-"> <field name="oid">ManuelleStates.0.Wallbox_Aktueller_Zaehlerstand.Wallbox_Stomverbrauch_Aktuell</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="1H(K3@S^}et_H6#zbsks"> <field name="oid">fritzdect.0.DECT_087610364944.power</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="LIoaL!pcv7MdEOiSjvNb"> <field name="oid">sonoff.0.Trockner.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="I6pY1{.-gYD{$fWhXuy="> <value name="IF0"> <block type="logic_compare" id="R)7QuYwl2p-m3VEY33J("> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="S)5XowwmT4j,HmYuNy;o"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Powerwall.Akkubetrieb</field> </block> </value> <value name="B"> <block type="logic_boolean" id="T:ZA@R.j0U/4,H=MicEd"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="fJq(Cj[sv`%wh%0jdd{|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt.0.SUN2000.ACSetpointOVR</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="A*g)tBtA4e8W7,28]mRf"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow type="math_number" id="BY(ka-dm.5vUj`SG5{5N"> <field name="NUM">3.1</field> </shadow> <block type="math_on_list" id="mydSFuz~HqFl{;SdUWRi"> <mutation op="SUM"></mutation> <field name="OP">SUM</field> <value name="LIST"> <block type="lists_create_with" id="K^De_]%UR*7V`/ORJxq%"> <mutation items="4"></mutation> <value name="ADD0"> <block type="math_number" id="j*3J!VFM]ud5y,Z~@q;a"> <field name="NUM">140</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="agdMWP#d7K{ip69G=Ob("> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="mV%K-*E5mCBFp.`)x%P]"> <field name="NUM">1</field> </shadow> <block type="get_value_var" id="f%enDF5|Jpjc9=qOL:~P"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="field_oid" id="nWvzx_+?@K/Mcdd$rj|B"> <field name="oid">ManuelleStates.0.Wallbox_Aktueller_Zaehlerstand.Wallbox_Stomverbrauch_Aktuell</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="eSx+lqC7y:c^l5vI$(^+"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="get_value_var" id="x3x5l#5T47XH(2[`pYU:"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="field_oid" id="`X]S|U@{,3RIa+L2*c7]"> <field name="oid">fritzdect.0.DECT_087610364944.power</field> </block> </value> </block> </value> <value name="ADD3"> <block type="get_value_var" id="?Rq9u=V!,83$Q%.h}VI("> <field name="ATTR">val</field> <value name="OID"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="field_oid" id="GkIxLcUJG2|vT}NqA?V8"> <field name="oid">sonoff.0.Trockner.ENERGY_Power</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="u2l.BS}idU+`-Z,22Raf"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Powerwall.Ladebetrieb</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="cCI`;XF]BD$W;?e8:0_3"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="e+KHk;^aE}r{%hsf[(8y"> <value name="IF0"> <block type="logic_compare" id="ELY?Fy*L?12%IpReKij8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="``ILgl?.!cFqkjqxRPtR"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Powerwall.Akkubetrieb</field> </block> </value> <value name="B"> <block type="logic_boolean" id="cNPAewa75$Rns4/{t~@m"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="1ZwOs*s4zbWV{W1.PFbK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt.0.SUN2000.ACSetpointOVR</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="i~C}VVTtku]/dB6-rR44"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id="(3E|~dT0=2]kV~tD*/)5"> <field name="OID">0_userdata.0.Powerwall.Akkubetrieb</field> <field name="CONDITION">false</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="BHGJg.[C^fTB^Bl5knb,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">mqtt.1.LFP_Hausspeicher_BMS.DALY-BMS-to-MQTT.Device_Control.Pack_DischargeFET</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">15</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="s?J{NS?8ZF?|+*AKx@N:"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="on" id=",C?P*s^sNwj:[IX2y;`a"> <field name="OID">0_userdata.0.Powerwall.Akkubetrieb</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="R|+Jx$lI%(#CbF+6O;Ra"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt.1.LFP_Hausspeicher_BMS.DALY-BMS-to-MQTT.Device_Control.Pack_DischargeFET</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="a~EmG1o4p3!1)rW_7PJS"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="comment" id="5Y]vW|]0lW]HYMUHAmo("> <field name="COMMENT">HuaweiR4850G2_CAN_BUS_Control</field> <next> <block type="on_ext" id="G.L2_3QHaA{M^n%zeafr"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="-6f]MQG:*A51Yc8{-t:O"> <field name="oid">0_userdata.0.Powerwall.Ladebetrieb</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="TvEEJ+^E73t;Z)/vHqme"> <field name="oid">0_userdata.0.Powerwall.Ladestaerke_A</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="vGnnWDvh2VaWz4-~HE(I"> <value name="IF0"> <block type="logic_compare" id="OZ|y:x(m/~F=Yz}y{HxD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4lkVmsrh;vy~k_~OcHzN"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Powerwall.Ladebetrieb</field> </block> </value> <value name="B"> <block type="logic_boolean" id="@lVHQ9qBJJzx$=!h/5(l"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="request" id=".-.g_-=L9s(9m%2gSRcE"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id=";`Vij$3_oWQ16om4gM/6"> <field name="TEXT">http://192.168.2.59/System?SM=Online&V=56.8&A=0&P1V=56.8&P1A=50&P2V=56.8&P2A=25&P3V=&P3A=</field> </shadow> </value> <next> <block type="control" id=".C+,_W?%N4`3!b*NJ+L$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.1.7cb03eaa00b1b43e.state</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">30</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E?ayDlwpnr^cj(q!8Li]"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="]++grqQk}f{mJB24zyss"> <value name="IF0"> <block type="logic_compare" id="XBSOUKh7*Eas@3O^A}7M"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=",tsFu[}}aE{b}$fGUimr"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Powerwall.Ladebetrieb</field> </block> </value> <value name="B"> <block type="logic_boolean" id="jmDj(^A65nj{ltDU_vQ-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="I$VHgc55O-a7)wzDgvHr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00b1b43e.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?ZQ?#x]vlB@ylKurL7/7"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="X7{uq]E|Q_3jzpPZgPm;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Powerwall.Akkubetrieb</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/Tqn$A[B;?Q%ZXML,Sw["> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_wait" id="rCUul@J^Nw.kNZE()yuZ"> <field name="DELAY">7</field> <field name="UNIT">sec</field> <next> <block type="request" id="gq^O_Re9.3,y/Mj3K,fm"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="rYT)LRdAmpNs]=E0,nG`"> <field name="TEXT"></field> </shadow> <block type="text_join" id="n`8*Rad)P^Tewdt}S3/:"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="w?Q,0=x5+1zWDi9zhcjI"> <field name="TEXT">http://192.168.2.59/System?SM=Online&V=56.8&A=</field> </block> </value> <value name="ADD1"> <block type="get_value" id="vUo:T`~]$kj+|@O!.?]`"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Powerwall.Ladestaerke_A</field> </block> </value> <value name="ADD2"> <block type="text" id="BQd{eSTr%n*1]([dX@{a"> <field name="TEXT">&P1V=56.8&P1A=50&P2V=56.8&P2A=25&P3V=&P3A=</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
MOD-EDIT: Code in code-tags gesetzt!
-
@wauzzi
Pack das bitte in Code-Tags </>.
So kann (und will) das niemand lesen. -
@wauzzi
Ohne das Skript zu kennen: Im Tab "Protokolle" erhält meine weitere Informationen.EDIT: Ist der DP "mqtt.0.SUN2000.ACSetpointOVR" vom Typ Zahl("number")?
-
@wauzzi bitte immer auch als Screenshot!
Was soll man am Handy auch mit einem XML?https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1
-
@paul53 sagte in Fehler javascript.1 (818) at Object.<anonymous>:
Ist der DP "mqtt.0.SUN2000.ACSetpointOVR" vom Typ Zahl("number")?
Würde ja zumindest zur angemeckerten Zeile passen.
Aber klärt mich mal auf:
- Was genau bedeutet in der Fehlermeldung das ":4:5"?
4 ist die Zeile? Und die 5? - Wo kommt
ManuelleStates.0
her?
- Was genau bedeutet in der Fehlermeldung das ":4:5"?
-
@codierknecht sagte in Fehler javascript.1 (818) at Object.<anonymous>:
4 ist die Zeile? Und die 5?
das 5. Zeichen = setState
-
@codierknecht sagte in Fehler javascript.1 (818) at Object.<anonymous>:
Wo kommt ManuelleStates.0 her?
so wie bei mir Messwerte.0 und Systemvariablen.0
-
@homoran sagte in Fehler javascript.1 (818) at Object.<anonymous>:
so wie bei mir Messwerte.0 und Systemvariablen.0
Prömpelt man die selbst da rein? Ohne Adapter und Instanz?
-
@codierknecht sagte in Fehler javascript.1 (818) at Object.<anonymous>:
@homoran sagte in Fehler javascript.1 (818) at Object.<anonymous>:
so wie bei mir Messwerte.0 und Systemvariablen.0
Prömpelt man die selbst da rein? Ohne Adapter und Instanz?
früher war alles besser!
Da ging das noch -
Hallo Zusammen,
vielen lieben Dank für Eure zahlreichen Rückmeldungen.
Sorry, natürlich hätte ich den Blockly Export in ein Code Tag einbetten müssen.Ich habe den Datenpunkt ACSetpointOVR von String in Number geändert. Jetzt scheint es zu passen.
Ihr seid klasse ! Vielen Dank !!!!