Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.6k Topics 79.6k Posts

NEWS

  • Blockley Warning ???

    2
    1
    0 Votes
    2 Posts
    203 Views
    MaschlM
    @maschl Hat sich erledigt. Es war ein Baustein mit Datenpunkt, wo ich nicht gesehen habe.
  • Listen sortieren, mal gehts, mal nicht

    143
    5
    0 Votes
    143 Posts
    19k Views
    E
    @paul53 wollte kurz Rückmeldung geben, dass Punkt 1 (kein Akku laden zw. 06-20Uhr wenn der Preis < 19cent) funktioniert. Test zu Punkt 2 steht noch aus. Gruß Einstein
  • ( gelöst ) Blockly Gas Umrechnung m3 in kW

    64
    2
    0 Votes
    64 Posts
    7k Views
    P
    @homoran Danke für die Info, ich habs dann auch schon hinbekommen, weil ich in einem anderen Blockly auch den Debug output drin hatte und da konnte ich schauen wie es geht
  • [GELÖST] Auslesen JSON Wert Bedeutung

    18
    3
    0 Votes
    18 Posts
    973 Views
    P
    @paul53 said in Auslesen JSON Wert Bedeutung: Der Datenpunkt hat den falschen Typ. Ja stimmt, jetzt keine Fehler mehr. Puh was man alles übersehen kann - danke für die Unterstützung, hab wieder was gelernt!
  • [GELÖST] mit Blockly Schlüssel in Objektliste ändern

    5
    3
    0 Votes
    5 Posts
    376 Views
    M
    @codierknecht Dank dir für beide Möglichkeiten!
  • sendto telegram mehrere chat-id angeben

    2
    0 Votes
    2 Posts
    236 Views
    M
    @kallewirsch const chatIds = [123456789, 987654321]; // Liste der Chat-IDs chatIds.forEach(chatId => { sendTo("telegram", { text: "Hallo, das ist eine Nachricht an mehrere Chats!", chatId: chatId }); });
  • starte Aktion nach Liste mit Stundenangabe

    7
    1
    0 Votes
    7 Posts
    541 Views
    paul53P
    @mik-le-kn70 sagte: Hier das Script: Es sendet 60 mal so oft, wie mein Vorschlag.
  • Batterie laden bis SOC erreicht

    2
    0 Votes
    2 Posts
    260 Views
    madingM
    @chriswitt sagte in Batterie laden bis SOC erreicht: Hallo zusammen. Ich hänge an einem Script, Vll. Bin ich einfach zu blind… Folgender Fall : zu einer gewissen Zeit soll der SOC der Batterie abgefragt werden. Ist dieser wert kleiner x , so soll er in einem gewissen zeitrahmen mit Watt Y die Batterie bis auf Wert x wieder aufladen. Danach soll er mit dem batterienetladen warten, bis eine neue zeit erreicht ist. Wie bringe ich den Batteriewachselrichter dazu hier bei Wert x zu stoppen? Danke und Gruß Chris Zwei separate Trigger, einen der ein bool auf true/false stellt (gewisse Zeit) und einen anderen der auf soc triggert und im script den bool zusätzlich abfragt.
  • Gelöst: Nur zu einer bestimmten Zeit

    17
    1
    0 Votes
    17 Posts
    1k Views
    CodierknechtC
    @dr-pie Jo - Anwesenheit mit der Fritte funzt nicht. Bei mir geht's einigermaßen. Da funkt ein Unifi-AP - der reagiert deutlich schneller und zuverlässiger. Der Fritte habe ich das funken angewöhnt :grin:
  • Syntax des IDs vom Selektor?

    8
    0 Votes
    8 Posts
    682 Views
    paul53P
    @tasuanetrukiat sagte: Beschreibung nachlesen. Doku zum Javascript-Adapter Der einzige Unterschied zu Blockly: Blockly wandelt das Objekt in ein Array.
  • Wie HMIP Thermostat Profil ändern?

    14
    1
    0 Votes
    14 Posts
    889 Views
    Walter WhiteW
    @homoran um das zu Testen zieht man den steuere Block aus dem Trigger und speichert. Dann wird steuere sofort ausgeführt Oh das muss ich mir merken, das macht es in Zukunft einfacher beim testen. Der Trigger war nur kurz zum testen, beim eigentlichen Skript werden dafür zu viele dinge abgefragt. :)
  • Wertänderung mit Wert vor 5 Min vergleichen

    15
    0 Votes
    15 Posts
    1k Views
    paul53P
    @mika-0 sagte: Da muss ich mich aber erst richtig einlesen. Es gibt mittlerweile auch einen Adapter.
  • Curl Befehl in Blockly Script ausführen

    9
    0 Votes
    9 Posts
    814 Views
    frana120500F
    @haus-automatisierung ach verdammt. der Fehler sitzt wie immer vor dem Rechner. Durch dieses ganze Copy&Paste habe ich mir ein / mitkopiert was da nicht hingehört. http-post-request funktioniert. Danke dir.
  • Mal wieder Bearbeitung von erzeugten Listen

    11
    5
    0 Votes
    11 Posts
    935 Views
    H
    Das exportieren der MAC Adressen via Schleifen ist nicht (mehr) das Problem. Das läuft, sowohl für die MAC-Adressen der Devices, als auch für die der Clients. Devices: Spoiler <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="{Pv5){4~w158o@Cmx}q}" x="863" y="413"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=IFAs`DW|XS7^X`s8*9e"> <field name="oid">ID auswählen</field> </shadow> <block type="selector" id="58^jI6XQ=xT^~AV,~zXl"> <field name="TEXT">state[state.id=unifi.0.default.devices.*.mac]</field> </block> </value> <statement name="STATEMENT"> <block type="procedures_callcustomnoreturn" id="5%;6a+^yk1`RV@4{Vi0h"> <mutation name="dp_devices_ausleitungen"></mutation> <next> <block type="variables_set" id="[FA)jVB;fy/]7!+LH~3P"> <field name="VAR" id="eIJA-5e/[gK,eff6c3cD">anzahl_devices</field> <value name="VALUE"> <block type="math_number" id="oIXa$a?O`y+OB!*^mQ|G"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="CMkTSb~;;mcZ(jgB8ann"> <field name="VAR" id="7~jt=ib9sx]c}W8*s(r$">ausleitung_mac_devices</field> <value name="VALUE"> <block type="lists_create_with" id="ggtba#@?%OX`Z1oA-H69"> <mutation items="0"></mutation> </block> </value> <next> <block type="controls_forEach" id="?Y?hy+QZj+5a~zR0G;~H"> <field name="VAR" id="@eDJ]{C,Nm,#SY6K?]U(">aa</field> <value name="LIST"> <block type="selector" id="^XNAb7vi]w@S2VwTqXR="> <field name="TEXT">state[state.id=unifi.0.default.devices.*.mac]</field> </block> </value> <statement name="DO"> <block type="controls_if" id="[**|[4(K;A[}-r$[*xu`"> <value name="IF0"> <block type="logic_negate" id="XT[@q!W[j7[,qtFjB5Tk"> <value name="BOOL"> <block type="text_contains" id="jMJhXd-9y2H$G{QJcwc!"> <value name="VALUE"> <block type="variables_get" id="X,U-l@983_k+TE{_{3s$"> <field name="VAR" id="@eDJ]{C,Nm,#SY6K?]U(">aa</field> </block> </value> <value name="FIND"> <shadow type="text" id="Y!fQeiR$~q,R2xoq1x|R"> <field name="TEXT">abc</field> </shadow> <block type="text" id="|09j=fC4#Hd`5$BH;dFg"> <field name="TEXT">last_uplink</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="i9htiHBSz`4[beX`pq?="> <field name="VAR" id="eIJA-5e/[gK,eff6c3cD">anzahl_devices</field> <value name="DELTA"> <shadow type="math_number" id="f4w,mg9WRl?MIajF`Mio"> <field name="NUM">1</field> </shadow> <block type="math_number" id="J]j2ed:Enu[+Y/X]4+?3"> <field name="NUM">1</field> </block> </value> <next> <block type="lists_setIndex" id="q%~%p.jh.#JB1X5vHk[6"> <mutation at="false"></mutation> <field name="MODE">INSERT</field> <field name="WHERE">LAST</field> <value name="LIST"> <block type="variables_get" id="BM)cE0eBqs85V~79*90?"> <field name="VAR" id="7~jt=ib9sx]c}W8*s(r$">ausleitung_mac_devices</field> </block> </value> <value name="TO"> <block type="get_value_var" id="1AgbUBh*-^$t6Dvpf~l9"> <field name="ATTR">val</field> <value name="OID"> <shadow type="field_oid" id="R)K|c8|peW-,`,H.#!rT"> <field name="oid">ID auswählen</field> </shadow> <block type="variables_get" id="exO0xXtklJ1.f7W.ix?X"> <field name="VAR" id="@eDJ]{C,Nm,#SY6K?]U(">aa</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="procedures_callnoreturn" id="x-j{N[b{[88+Tblj9}pj"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="#[o94aQ|s`_92B}_)%^C"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="JB_jbw1aI5B{#)+%.6{A"> <field name="TEXT">Anzahl der Unifi-Devices</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="^u~qy=-QF$wlN-L9lQ9m"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="XSy/m7g6-e05[_qLbyZ7"> <field name="VAR" id="eIJA-5e/[gK,eff6c3cD">anzahl_devices</field> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="}=}moQ[3S)9WMD9-?e8["> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="OoZkes5RXSrNO:w]_5jq"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="`qFPH.o%G)Pg78]C/C-E"> <field name="TEXT">MAC aus der Bearbeitung:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="$J-n[`X88y^f4.TQ%AT$"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="PyHB@a8p5niFjDLPIN/1"> <field name="VAR" id="7~jt=ib9sx]c}W8*s(r$">ausleitung_mac_devices</field> </block> </value> </block> </value> <next> <block type="update" id=",V(_@q@1F4sl2yRJe^i0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.it.unifi.devices.mac-ausleitung-devices</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="8?.rxjULyiPGvO$#_=CD"> <field name="VAR" id="7~jt=ib9sx]c}W8*s(r$">ausleitung_mac_devices</field> </block> </value> <next> <block type="update" id="2F;cV7Rp9+^TBm%`N?o]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.it.unifi.devices.anzahl-devices</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="%f{]i~2{J*`mSZlZ7iX]"> <field name="VAR" id="eIJA-5e/[gK,eff6c3cD">anzahl_devices</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> Clients: Spoiler <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id=";|_4R[q^C$8TYi+nZ1Lm" collapsed="true" x="613" y="538"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=IFAs`DW|XS7^X`s8*9e"> <field name="oid">ID auswählen</field> </shadow> <block type="selector" id="T!VL+4xam{YN~.fbZ/^o"> <field name="TEXT">state[state.id=unifi.0.default.clients.*.mac]</field> </block> </value> <statement name="STATEMENT"> <block type="procedures_callcustomnoreturn" id="JKd`s1-Epm~[HrrIFP=@"> <mutation name="dp_clients_ausleitungen"></mutation> <next> <block type="variables_set" id="=nE7[@Ygl*sQHLe{vkqN"> <field name="VAR" id="#qu/-Dvc}B!}!BCc/W.y">anzahl_clients</field> <value name="VALUE"> <block type="math_number" id="7V{rE;#5.uZ~1a0b3AS$"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="N]qkH^m-!5S:EU(`8j)^"> <field name="VAR" id="e%yonpx,c-=wyq|Q(alx">ausleitung_mac_clients</field> <value name="VALUE"> <block type="lists_create_with" id="%V1_Ldx@^i:h(25Oau!("> <mutation items="0"></mutation> </block> </value> <next> <block type="controls_forEach" id="9?^._bA$7kVnPT$!Rj:q"> <field name="VAR" id="/dkW]|gqbdSPkvDzH].x">ab</field> <value name="LIST"> <block type="selector" id="a@%]aZmNBYZ_#-FWyszT"> <field name="TEXT">state[state.id=unifi.0.default.clients.*.mac]</field> </block> </value> <statement name="DO"> <block type="controls_if" id="[rw6E]L/`rCAn=CYw]cw"> <value name="IF0"> <block type="logic_negate" id="B@o00wD75`}Ycw}E2.-T"> <value name="BOOL"> <block type="text_contains" id=".@lprXUoF6u_z_mNo1=="> <value name="VALUE"> <block type="variables_get" id="glXn[O%6q/|SN6jt/S,I"> <field name="VAR" id="/dkW]|gqbdSPkvDzH].x">ab</field> </block> </value> <value name="FIND"> <shadow type="text" id="Y!fQeiR$~q,R2xoq1x|R"> <field name="TEXT">abc</field> </shadow> <block type="text" id="8-+z5AtLU/lx[bA8;-IN"> <field name="TEXT">last_uplink</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="DC][(Wmtp+q*1-7*Ye#m"> <field name="VAR" id="#qu/-Dvc}B!}!BCc/W.y">anzahl_clients</field> <value name="DELTA"> <shadow type="math_number" id="f4w,mg9WRl?MIajF`Mio"> <field name="NUM">1</field> </shadow> <block type="math_number" id="1-mT;f*6^fo2v?;)AFt!"> <field name="NUM">1</field> </block> </value> <next> <block type="lists_setIndex" id="8s=vQ!Db)JjYZ0m:!jG!"> <mutation at="false"></mutation> <field name="MODE">INSERT</field> <field name="WHERE">LAST</field> <value name="LIST"> <block type="variables_get" id="NkML^iz$7J;;Ebb|tZzi"> <field name="VAR" id="e%yonpx,c-=wyq|Q(alx">ausleitung_mac_clients</field> </block> </value> <value name="TO"> <block type="get_value_var" id="qOs9jJ)f%s6l,kf#6gy#"> <field name="ATTR">val</field> <value name="OID"> <shadow type="field_oid" id="R)K|c8|peW-,`,H.#!rT"> <field name="oid">ID auswählen</field> </shadow> <block type="variables_get" id="KZI={4fSw-pdi8cxJT;g"> <field name="VAR" id="/dkW]|gqbdSPkvDzH].x">ab</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="procedures_callnoreturn" id="YnTKT91nq|k;{[u,w-Uw"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="?g@R)6ION`$QnbNCd!tk"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="U-U/`]sM:%W^8eEqm/5F"> <field name="TEXT">Anzahl der Unifi-Clients:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="^.PRJbAaAWcFeDoMi-sx"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="D$LUWv/mc][j~REUWaAr"> <field name="VAR" id="#qu/-Dvc}B!}!BCc/W.y">anzahl_clients</field> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id=":ABj+P~$P|P2H/1]C!W]"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="kk#,vD+6tbOfvNNz1imI"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="d,VRHXEvlqNoZYsI-f}*"> <field name="TEXT">MAC aus der Bearbeitung:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="gs2s`3ymM(Ndf3%{b`_)"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id=",9f|9Bl)S`fuw@9pJN8J"> <field name="VAR" id="e%yonpx,c-=wyq|Q(alx">ausleitung_mac_clients</field> </block> </value> </block> </value> <next> <block type="update" id="`4)}a^/.C$-qYOhlz%)-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.it.unifi.clients.mac-ausleitung-clients</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="6ZheO|a`RXAJ6jI]IsWd"> <field name="VAR" id="e%yonpx,c-=wyq|Q(alx">ausleitung_mac_clients</field> </block> </value> <next> <block type="update" id="%Vwhm/#8AA?nX,bKj|_N"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.it.unifi.clients.anzahl-clients</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="sohwNmAkSytn?.YDbiFe"> <field name="VAR" id="#qu/-Dvc}B!}!BCc/W.y">anzahl_clients</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> Nun möchte ich die MAC Adressen der Devices mit den MAC Adressen der AP-Points (für WLAN) bzw. Switches (für LAN) vergleichen. Wenn beide MACs zusammen passen, soll der Name des Switch bzw. des Access Point in einen DP geschrieben werden. Das wollte ich über eine Schleife - in - Schleife Lösung bearbeiten, was mir aber bisher nicht gelingt. Spoiler <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="tt^d/rGT0a-;jc=Y^g9E" x="88" y="1388"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="comment" id="y@BjcsW:aQLhT=Gpl48~"> <field name="COMMENT">Name des WLAN - AP</field> <next> <block type="variables_set" id="3q,,r-@3-ax,fz%}]QjT"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> <value name="VALUE"> <block type="lists_create_with" id="`xl5F9?38DC|~tJ*mdUK"> <mutation items="0"></mutation> </block> </value> <next> <block type="controls_forEach" id="A8yQNS,#)v7UR6DF!{dL"> <field name="VAR" id="U4qAbb4G8%()+]~H86?y">d</field> <value name="LIST"> <block type="selector" id="_5Z(an$,i*fICxbV.LSO"> <field name="TEXT">unifi.0.default.clients.*.ap_mac</field> </block> </value> <statement name="DO"> <block type="lists_setIndex" id=":#cU4dl)~27;fQMCZnRx"> <mutation at="false"></mutation> <field name="MODE">INSERT</field> <field name="WHERE">LAST</field> <value name="LIST"> <block type="variables_get" id=".JPSG?z@pa6C~qJ6QH28"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> </block> </value> <value name="TO"> <block type="get_value_var" id="c`Do!o:,cFp[s/DA%9iW"> <field name="ATTR">val</field> <value name="OID"> <shadow type="field_oid" id="R)K|c8|peW-,`,H.#!rT"> <field name="oid">ID auswählen</field> </shadow> <block type="variables_get" id="Cwp!lS.2,p0l02sxJ;]M"> <field name="VAR" id="U4qAbb4G8%()+]~H86?y">d</field> </block> </value> </block> </value> </block> </statement> <next> <block type="procedures_callnoreturn" id="@dCssXR@ye?{-KGJ!EG|"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="0Y_M@a!w*USZ#9@4G]2#"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="Bp|WXP)Jp{{2=AEPL!gZ"> <field name="TEXT">MAC Clients Channel / Port:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="%J7zTlZeop8o26n}lQ!M"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="ktVa$Es@Q:UU1hI|p].N"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> </block> </value> </block> </value> <next> <block type="variables_set" id="@3yj[e,_IL!!$o$Qt2gP"> <field name="VAR" id="Bd$UryAodB^.nXY?qe%7">bearbeitung_device_channel_port_wlan</field> <value name="VALUE"> <block type="lists_create_with" id=":MyJG=8UF;dmsjpr=H7}"> <mutation items="0"></mutation> </block> </value> <next> <block type="variables_set" id="~3Hh7m}U-2;I*f/8QXSq"> <field name="VAR" id="Bd$UryAodB^.nXY?qe%7">bearbeitung_device_channel_port_wlan</field> <value name="VALUE"> <block type="get_value" id="3Q~nLvekYBi%R9gN6au9"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.it.unifi.devices.mac-ausleitung-devices</field> </block> </value> <next> <block type="procedures_callnoreturn" id="!1?wqzw.Q8c42*0Yn|hg"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="HYiz!p;jLHS_*BY5I@72"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="FFE~~|@AIoNH:HX5w4G("> <field name="TEXT">MAC Device Channel / Port:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="#yw8m%4HXgbfkRgy5Y9a"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="Y]q!2r}WV~;MJYtaP^r("> <field name="VAR" id="Bd$UryAodB^.nXY?qe%7">bearbeitung_device_channel_port_wlan</field> </block> </value> </block> </value> <next> <block type="variables_set" id="e+A+e7Sxr3Y8JX}Dly9}"> <field name="VAR" id="OntyTsw?Rb|qB1_0zQ]1">macliste_client_channel_port_wlan</field> <value name="VALUE"> <block type="lists_create_with" id="It;QRwd8JK.?rx2fS-lk"> <mutation items="0"></mutation> </block> </value> <next> <block type="variables_set" id="O(}j+Sq8^(do`4u:v*Ua"> <field name="VAR" id="7zi_Zvu;nE9%B~v}ja!Q">macliste_device_channel_port</field> <value name="VALUE"> <block type="lists_create_with" id="6|KEKWSdlitn=`*bkNz!"> <mutation items="0"></mutation> </block> </value> <next> <block type="controls_repeat_ext" id="`-NE/hG:%!o*M+%sgq%:"> <value name="TIMES"> <shadow type="math_number" id="BKH~,crX_Lec57h6VPbT"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="N%;(Cb2nI=U|:KWrR5E["> <value name="VALUE"> <block type="variables_get" id="Wcc9V@N^*hw1%m%9SscW"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> </block> </value> </block> </value> <statement name="DO"> <block type="procedures_callnoreturn" id="(e5$0}/Kzs;}a62|;Y%,"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="(DL5lDUU~f]/WunRtFXd"> <mutation items="1"></mutation> <value name="ADD0"> <block type="text" id="])49oC!d3X7%PKNC|33)"> <field name="TEXT">Erste Schleife zur Port Zuordnung wird gestartet!</field> </block> </value> </block> </value> <next> <block type="variables_set" id="p^wHEx.DHSFsT=6$*Y(i"> <field name="VAR" id="OntyTsw?Rb|qB1_0zQ]1">macliste_client_channel_port_wlan</field> <value name="VALUE"> <block type="lists_getIndex" id="UHOD`}Fg?#32bFbuemrx"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="Ij?4!#|OzZOO?TC%M`(x"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> </block> </value> <value name="AT"> <block type="math_number" id="2RQ8elvqtLd@LnbuXq6_"> <field name="NUM">1</field> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="6({F^QMY[+eX^Yh^eA%p"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="%OWVei/w@MA`k]FqR4cZ"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="sc9.}YaU|]b0:KD.`,7P"> <field name="TEXT">MAC WLAN Gerät zur Channel Suche:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="0Sa;@lnlTbo1Lbri(X5/"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="spbABkI~`cMyLg;*|%aV"> <field name="VAR" id="OntyTsw?Rb|qB1_0zQ]1">macliste_client_channel_port_wlan</field> </block> </value> </block> </value> <next> <block type="controls_repeat_ext" id="W3{ISe2v.M_+m8nzC)ej"> <value name="TIMES"> <shadow type="math_number" id="0d-i~6*LYSSVr*Sin3]}"> <field name="NUM">10</field> </shadow> <block type="get_value" id="|xUAoBe;TAQ)Hdm(et!H"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.it.unifi.devices.anzahl-devices</field> </block> </value> <statement name="DO"> <block type="procedures_callnoreturn" id="O@S:g9{~1tTFqa*/C8s}"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id="JDip2me!X8E9W%*#kK@S"> <mutation items="1"></mutation> <value name="ADD0"> <block type="text" id="jGD,`u[(hCB~,HS+bFkQ"> <field name="TEXT">Zweite Schleife zur Port Zuordnung wird gestartet!</field> </block> </value> </block> </value> <next> <block type="variables_set" id="/{W@%SdG|CGy`NCWC94l"> <field name="VAR" id="7zi_Zvu;nE9%B~v}ja!Q">macliste_device_channel_port</field> <value name="VALUE"> <block type="lists_getIndex" id="2l9O5HU8b,NIJ^7oDtp~"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="oDV$~Ea`lQ%Ah0oqS*A4"> <field name="VAR" id="Bd$UryAodB^.nXY?qe%7">bearbeitung_device_channel_port_wlan</field> </block> </value> <value name="AT"> <block type="math_number" id="AAkUJ`%c$Z0:AAkuRm9t"> <field name="NUM">1</field> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="g_e4$,{E/;ydN^7@-khH"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text_join" id=";!a3.p2TP?D5GgDK@T|Z"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="}n/va+FSCH|_[GoCvB!L"> <field name="TEXT">MAC AP CHANNEL:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="FE)Ps[/mY^LFkHU?2btm"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="ru4/ns1?GxF5:0}yFrs0"> <field name="VAR" id="7zi_Zvu;nE9%B~v}ja!Q">macliste_device_channel_port</field> </block> </value> </block> </value> <next> <block type="controls_if" id="@wAl=)bi7Fn3?6EzC_GI"> <value name="IF0"> <block type="logic_compare" id="tv^58FDm|]I{d|hvzjps"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="dX?H4DImMqq{DJ,Fj#+r"> <field name="VAR" id="OntyTsw?Rb|qB1_0zQ]1">macliste_client_channel_port_wlan</field> </block> </value> <value name="B"> <block type="variables_get" id="klGChs0$+|B!G7~!:Ip;"> <field name="VAR" id="7zi_Zvu;nE9%B~v}ja!Q">macliste_device_channel_port</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="y8%?Q$Oj/@7(:EANgC?U"> <mutation name="consolenlog"> <arg name="log_text"></arg> </mutation> <value name="ARG0"> <block type="text" id="krGY`QYC_u(/pH_at[Fv"> <field name="TEXT">Mac-Adressen sind gleich! AP wird benannt!</field> </block> </value> <next> <block type="comment" id="e!p?ejh),|%~MW@Z@lzJ"> <field name="COMMENT">Name des AP</field> <next> <block type="control_ex" id="DmhTN=^0kUJ9hb:Z#rsU"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="x6b]s(D_O7s9{kT9_9_/"> <field name="oid">ID auswählen</field> </shadow> <block type="text_join" id="beVg-sk=PU59h0dEa*w^"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="~.Q_hC{j/X/tl9v1{Lw!"> <field name="TEXT">0_userdata.0.it.unifi.clients.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="@CzUfH[LJp/wudfDc_cI"> <field name="VAR" id="OntyTsw?Rb|qB1_0zQ]1">macliste_client_channel_port_wlan</field> </block> </value> <value name="ADD2"> <block type="text" id="`7jC(y:;XG4g2=9+0U85"> <field name="TEXT">.ap_sw_name</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="]BS~xRB;6.T-NO;3A;s$"> <field name="BOOL">TRUE</field> </shadow> <block type="get_value_var" id="L/Xn2i]4/|Z(|Uho_UOy"> <field name="ATTR">val</field> <value name="OID"> <shadow type="field_oid" id="a~KFJD~fN6qom,t0(4)T"> <field name="oid">ID auswählen</field> </shadow> <block type="text_join" id="4*9`E2f(VY#dW8*gr^bN"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="v4pCJxOolBH*DjQM!)Sv"> <field name="TEXT">unifi.0.default.clients.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="d6^zOq(^:?AbQuhW`}O."> <field name="VAR" id="7zi_Zvu;nE9%B~v}ja!Q">macliste_device_channel_port</field> </block> </value> <value name="ADD2"> <block type="text" id="S|}MJ=0BLu#U{I~KZAzO"> <field name="TEXT">.name</field> </block> </value> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="5|hYDxp5jWY~VCq(ii{H"> <field name="NUM">0</field> </shadow> </value> <value name="EXPIRE"> <shadow type="math_number" id="%_SAJF/KjETa7qNaCp7~"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="lists_getIndex" id="D-|i7{ho!wD=i2Dd9`{N"> <mutation statement="true" at="true"></mutation> <field name="MODE">REMOVE</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="a4E}eLqA0,xLH0`4A7I("> <field name="VAR" id="Bd$UryAodB^.nXY?qe%7">bearbeitung_device_channel_port_wlan</field> </block> </value> <value name="AT"> <block type="math_number" id="?4uJ(K|#J!e3N1o4Usz`"> <field name="NUM">1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="lists_getIndex" id="k?1Y2m9fu!g4$uLtlxt9"> <mutation statement="true" at="true"></mutation> <field name="MODE">REMOVE</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="lEKq75IhYSAC},`ht)Mz"> <field name="VAR" id="Il,HopGDL}[9{vi5=NpV">bearbeitung_client_channel_port_wlan</field> </block> </value> <value name="AT"> <block type="math_number" id="ki+$Qq9}#`eEFfLTb^h@"> <field name="NUM">1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block>
  • States aus DP auslesen

    8
    0 Votes
    8 Posts
    551 Views
    mickymM
    @david-g Ja dann hier nur nochmal eine einfach JSONATA Lösung mit regulärem Ausdruck mit dem common Objekt. [image: 1737844373023-6a5b6615-9c16-4cb5-8db2-35c0eba08bb5-image-resized.png] Ansonsten halt weglassen. $match(common.states,/\w+/).match~>$distinct() also nur $match(states,/\w+/).match~>$distinct() Spoiler <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="f{SPWMDeJ!t?Tt{oHa-w">Liste</variable> </variables> <block type="variables_set" id="jKN8F;HD7[UKq45_:Vw{" x="-287" y="-237"> <field name="VAR" id="f{SPWMDeJ!t?Tt{oHa-w">Liste</field> <value name="VALUE"> <block type="convert_json2object" id="gY[U%GBa-TB2;qcL^=87"> <value name="VALUE"> <block type="text" id="HdUSNbWPE)HiUPN4!yw["> <field name="TEXT">{ "common": { "states": "localhost:localhost;proxmox:proxmox;MariaDB:MariaDB;Docker:Docker;Adguard:Adguard;Jellyfin:Jellyfin;AgentDVR:AgentDVR;TrueNAS:TrueNAS;Wireguard:Wireguard;" } }</field> </block> </value> </block> </value> <next> <block type="debug" id="CN/v16=5#s1D|=8)yk[}"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="-n5X=}DS{1k*jws-P:%,"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="^o;H~=_0K^WR1PF,+5R:"> <field name="VAR" id="f{SPWMDeJ!t?Tt{oHa-w">Liste</field> </block> </value> <next> <block type="variables_set" id=";CqShE#z4I$MLA3-2e;m"> <field name="VAR" id="f{SPWMDeJ!t?Tt{oHa-w">Liste</field> <value name="VALUE"> <block type="convert_jsonata" id=":%m?7,V!o=^RxLW@VkF9"> <value name="EXPRESSION"> <shadow type="text" id="U0x!nDlO!=6Wl|+I`4P~"> <field name="TEXT">$match(common.states,/\w+/).match~&gt;$distinct()</field> </shadow> </value> <value name="TARGET"> <block type="variables_get" id="t-{z1,$a7wl~_lusrXW4"> <field name="VAR" id="f{SPWMDeJ!t?Tt{oHa-w">Liste</field> </block> </value> </block> </value> <next> <block type="debug" id="-F}Nw`irgr)0w_],AYKV"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="*fR:|[obP+4|R)-AOCP^"> <field name="TEXT">test</field> </shadow> <block type="lists_getSublist" id="}/zTsh*p-V6mK,z!qD$l"> <mutation at1="false" at2="false"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">LAST</field> <value name="LIST"> <block type="variables_get" id="jdxs=WV==C.]F`0XK5VK"> <field name="VAR" id="f{SPWMDeJ!t?Tt{oHa-w">Liste</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </xml>
  • Neue Woche / Monat und Jahr detektieren in Blockly

    Moved
    19
    0 Votes
    19 Posts
    2k Views
    paul53P
    @hotspot_2 sagte: morgen ein neues Jahr beginnt? Dann ist heute der 31.12. [image: 1737755731725-blockly_temp.jpg]
  • (gelöst) Awattar: 8 günstigsten Stunden von 6-21 Uhr

    42
    0 Votes
    42 Posts
    4k Views
    M
    @paul53 Danke für die Info. Mach ich.
  • Wert vom Miele Adapter auf den KNX Bus senden

    10
    1
    0 Votes
    10 Posts
    755 Views
    J
    Ziel: Werte der Miele Geräte auf den KNX BUS bringen... Was hab ich bereits gemacht: Miele Adapter installiert, läuft. KNX Adapter läuft. KNX Kommunikationsobjekte angelegt und mit Hilfe von Blockly verbunden. ETS Dummy angelegt und den Kommunikationsobjekten die "vermeintlich" richtige Datenpunkte zugewiesen. Es steht zwar im iobroker bei den knx Datenpunkten die Werte, sprich diese werden vermutlich im Blockly übertragen, ABER auf dem KNX in der ETS kommt nichts an. Fragen: Hat jemand bereits den Miele Baustein erfolgreich in KNX eingebunden und Werte übertragen? Wenn ja, welche Einstellungen wären das? Kann ich im iobroker noch irgendwas Einstellungen bzw. muss ich etwas ergänzen oder kann ich meine Suche auf die Datenpunkte in der ETS konzentrieren? [image: 1737703081708-miele_objekte_2_knxseite.jpg] [image: 1737703081657-miele_objekte_1.jpg] [image: 1737703081600-miele-objekte.jpg]
  • Funktionsblock JS v8.9.0 Blockly lässt sich nicht editieren

    8
    0 Votes
    8 Posts
    720 Views
    CodierknechtC
    @vepman sagte in Funktionsblock in Blockly lässt sich nicht mehr editieren: Downvote habe ich zurückgenommen Wäre nett gewesen mich darauf hinzuweisen. Die 8.9.0 wurde (-mir- noch) nicht zum Update angeboten. Vielleicht änderst Du noch den Titel des Eingangspost in sowas wie "ACHTUNG: Javascript 8.9.0 - Funktionsblock ..." Dann sehen andere bereits, dass man sich mit der 8.9.0 ein Problem einhandelt. bevor ich ein Issue aufmache. ... und bevor sich hier die Meldungen a lá "hab' ich auch" häufen: @vepman hat ein Issue erstellt. Es hilft, dieses Issue hochzuvoten: https://github.com/ioBroker/ioBroker.javascript/issues/1814
  • GELÖST: Base64 Bilddatei per Telegram senden?

    9
    0 Votes
    9 Posts
    760 Views
    9
    @mcu Perfekt! So funktionierts. Vielen, vielen Dank für Deine schnelle und umfangreiche Hilfe :+1: :clap: :pray:

720

Online

32.7k

Users

82.5k

Topics

1.3m

Posts