@Flexer sagte in [neuer Adapter] Gardena Smart System API :
Hallo und guten Morgen in die Runde, ich habe den Adapter installiert und versuche damit meinen Wasseranschluss zu schalten. Wie mache ich das? Welchen Datenpunkt muss ich dafür nehmen? Leider klappt das nicht.
Viele Grüsse
@Flexer
@jack99n
Funktioniert bei mir mit der 2.5.0
Hier am Beispiel von Ventil 1
kleines Blockly (Bewässerungsdauer habe ich mal 20 Minuten eingestellt)
hier ein par Button erstellt (werden mit dem Blockly erstellt)
iot/Alexa
und Routinen in der Alexa App
Blockly Export
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="procedures_defcustomnoreturn" id="26nsdO)^8JRT7aJbe?T1" x="63" y="37">
<mutation statements="false"></mutation>
<field name="NAME">dp_erstellen</field>
<field name="SCRIPT">Ly9EYXRlbnB1bmt0IEFsZXhhIGVyc3RlbGxlbiBCZXfkc3NlcnVuZyBhbgpjcmVhdGVTdGF0ZSgiRWlnZW5lX0RhdGVucHVua3RlLjI0QmV3YWVzc2VydW5nLjAxaGludGVuX2FuIiwgewogICAgbmFtZTogJzAxQmV3YWVzc2VydW5nX2hpbnRlbl9hbicsIAogICAgcm9sZTogJ2J1dHRvbicsCiAgICB0eXBlOiAnYm9vbGVhbicsIAogICAgcmVhZDogIHRydWUsIAogICAgd3JpdGU6IHRydWUsCiAgICAic21hcnROYW1lIjogewogICAgImRlIjogIjAxQmV3YWVzc2VydW5nX2hpbnRlbl9hbiIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTsKLy9EYXRlbnB1bmt0IEFsZXhhIGVyc3RlbGxlbiBCZXfkc3NlcnVuZyBhdXMKY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS4yNEJld2Flc3NlcnVuZy4wMWhpbnRlbl9hdXMiLCB7CiAgICBuYW1lOiAnMDFCZXdhZXNzZXJ1bmdfaGludGVuX2F1cycsIAogICAgcm9sZTogJ2J1dHRvbicsCiAgICB0eXBlOiAnYm9vbGVhbicsIA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1ZSwKICAgICJzbWFydE5hbWUiOiB7CiAgICAiZGUiOiAiMDRCZXdhZXNzZXJ1bmdfdm9ybl9saW5rc19hbiIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTsKLy9EYXRlbnB1bmt0IEFsZXhhIGVyc3RlbGxlbiBCZXfkc3NlcnVuZyBhdXMKY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS4yNEJld2Flc3NlcnVuZy4wNHZvcm5fbGlua3NfYXVzIiwgewogICAgbmFtZTogJzA0QmV3YWVzc2VydW5nX3Zvcm5fbGlua3NfYXVzJywgCiAgICByb2xlOiAnYnV0dG9uJywKICAgIHR5cGU6ICdib29sZWFuJywgCiAgICByZWFkOiAgdHJ1ZSwgCiAgICB3cml0ZTogdHJ1ZSwKICAgICJzbWFydE5hbWUiOiB7CiAgICAiZGUiOiAiMDRCZXdhZXNzZXJ1bmdfdm9ybl9saW5rc19hdXMiLAogICAgInNtYXJ0VHlwZSI6ICJTV0lUQ0giCn0KfSk7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_callcustomnoreturn" id="E[J?f]w+Ti^C*vI:7E4F" x="62" y="88">
<mutation name="dp_erstellen"></mutation>
<next>
<block type="on" id="-@Q5JN^p9iJp45PD(i,(">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.01hinten_an</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="L_8/=msA^MbZo2gfd@#a">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.duration</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="v/1LOg@B92Yeo2dfG*f*">
<field name="NUM">20</field>
</block>
</value>
<next>
<block type="control" id="!rk$Rl7m43kBWOVe}_[s">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="-*#/6984y7G*+5+_d`I.">
<field name="TEXT">manual</field>
</block>
</value>
<next>
<block type="control" id="T^U_h[TjIgxIl1[3Aw_B">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="*dQH|Y~M%{T@b^|K(_q+">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="ajCaGcjb[r[;3I~pv6C0">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.01hinten_aus</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="QW{Fj2kY:{L@vh/AYnq.">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="|}!vLWJK`e5neiRv!Ym4">
<field name="TEXT">idle</field>
</block>
</value>
<next>
<block type="control" id=";9K-P5N?1Ev0Uu4nJl5{">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="5NcEPTf;kz|[QDyx-THt">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="RV}IV)WTw0a_GE~Zp4=K">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.02seite_an</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="{~oGUfO,_{bu]hUt8gz]">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.duration</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="yHpCL$Dh2HiJtGoNFy2Q">
<field name="NUM">20</field>
</block>
</value>
<next>
<block type="control" id="L:|_|e4hN5Mq7r`vuo7H">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="aoMWCr,K]?-Q(CF|ah8%">
<field name="TEXT">manual</field>
</block>
</value>
<next>
<block type="control" id="pm}JPuoLr14A79BH:c90">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="8}`Q=I[-L]LVd%k[PGc_">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="B?UJ]jUk/EwL(ay?OF7|">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.02seite_aus</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="7lxmd^ti^RX|mFIIT{h.">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="rx126jpNv_wEQp|gH:mk">
<field name="TEXT">idle</field>
</block>
</value>
<next>
<block type="control" id="7/U[yF].l@M$o}}(6YHZ">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="SG6l0c;}fM|VzlDXQLF7">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="n5DMJ-y+Y9CM?m9..X[,">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.03vorn_rechts_an</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id=".a/`=6nNgU:iz}ibb)KK">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.duration</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="ZVehJK-Hx12q(K@4QGF!">
<field name="NUM">20</field>
</block>
</value>
<next>
<block type="control" id="!:7LM,zB+{1ID^#~ic2_">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="z!+i59~)9R5P%(u-d-IJ">
<field name="TEXT">manual</field>
</block>
</value>
<next>
<block type="control" id="Yb9@G?2GwhnS~-.r2!e/">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_uC`h}juMHn{M$BH@DW}">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="Wglce}v_6`bix=j%flWJ">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.03vorn_rechts_aus</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="wdws!r_%1E.,px?8BP|,">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Ih(9MHnKc6.qUU}T`:rx">
<field name="TEXT">idle</field>
</block>
</value>
<next>
<block type="control" id="Lp-ue5a}59^fx}-Vi},f">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="p1K/xuum:IjHyI29w-^u">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="jgH^4w1SSC~tcDO#zL{|">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.04vorn_links_an</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="*=4Ll-P3gxFieA-p_5/-">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.duration</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="~O8igyD$f(vCH*Sixgk=">
<field name="NUM">20</field>
</block>
</value>
<next>
<block type="control" id="L60f^-()Z%UZ!]3(L!7p">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="S4.k}K)K26znC-sY0iN(">
<field name="TEXT">manual</field>
</block>
</value>
<next>
<block type="control" id="Bt#rin3UfryUM@,ION@[">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="A7NmFtE=h]QeL6(gX)Ch">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="`or8)0)X_J]y@R0|[}h/">
<field name="OID">javascript.0.Eigene_Datenpunkte.24Bewaesserung.04vorn_links_aus</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="gxV(zJv,U!eT`8V$,Lw;">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.properties.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="!JBm8Xz/:4p6y_Lw.NKp">
<field name="TEXT">idle</field>
</block>
</value>
<next>
<block type="control" id="]+5SuSWn_Nx.Xooh5:77">
<mutation delay_input="false"></mutation>
<field name="OID">gardena.0.datapoints.xxx.smart_trigger</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="B{dYihF8cF.!;3Qa9O4P">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Bei mir gibt es vier Ventile.
Hier sind Beispiele:
https://github.com/t4qjXH8N/ioBroker.gardena/wiki/Examples