Externer Inhalt
www.youtube.com
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
Da sich viele gewünscht haben das es Mal ein Grundlagen Video zu Blockly im ioBroker gibt, habe ich das nun Mal für euch gemacht. Ich zeige wie Ihr ein Skript von Anfang an aufbauen könnt, wie man manuell Objekte im ioBroker erstellt und wie Ihr die Skripte dann noch importieren oder exportieren könnt.
****************************************************************
✪ Amazon Angebote
✪ GearBest Angebote
https://de.gearbest.com/?lkid=15084121
Und hier natürlich auch noch zum beispiel, der Code zum Importieren, aus dem Video...
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="Y[@!9Iec[21uAbG]Ag(+" x="-413" y="-263">
<mutation items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="TSd:v|+RXi,DRhh;Ve5%">
<field name="oid">mihome.0.devices.weather_v1_158d000201b6c9.humidity</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="vPD52qAdKiZK,?gsWg(,">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="+1;!ZWE`^p:)M-;u!4f9">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="GB5~LvFHMb9sd3^I%b#k">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.weather_v1_158d000201b6c9.humidity</field>
</block>
</value>
<value name="B">
<block type="text" id="[?fqp+hmfyFEg2)KXs{M">
<field name="TEXT">40</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="[/m~pV7,aW,O/-QkIqHN">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF1072320HX1.Routines.489c40cd-e740-45ab-8923-d9161a360269</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Lc4TQr*~nrYkN@?pZi6x">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="WJ1fjoSW%^^c|a6cLBp6">
<field name="OP">GTE</field>
<value name="A">
<block type="get_value" id="|},0w5my@H9lpl(+-f7.">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.weather_v1_158d000201b6c9.humidity</field>
</block>
</value>
<value name="B">
<block type="text" id="O|mj0+,62CPr[e)y6y;F">
<field name="TEXT">45</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="Wp@1`2e8vPGkLKDcuB7x">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF1072320HX1.Routines.d97db246-087b-4376-8e80-a5e4a4494fa7</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="ER.CIMfdmy#J+SrIMulb">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alles anzeigen