<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist.]]></title><description><![CDATA[<p dir="auto">Hallo, ich versuche mich erst seit ein paar Tagen mit Blockly.<br />
Die Nachricht an telegram senden, wenn der Kontakt aktiviert ist, habe ich hinbekommen.<br />
Mein Problem ist, dass bei kurzen Einschaltimpulsen auch immer eine Mitteilung erfolgt.<br />
Mit timeout und pause habe ich es nicht geschafft.<br />
Kann mir bitte jemand einen Lösungsansatz zeigen?</p>
]]></description><link>https://forum.iobroker.net/topic/45852/nachricht-nur-wenn-shelly-als-2-sekunden-aktiviert-ist</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 11:31:01 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/45852.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2021 17:42:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 18 Aug 2021 15:29:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> Ok danke, vielleicht kann ja jemand anderes helfen.</p>
]]></description><link>https://forum.iobroker.net/post/666270</link><guid isPermaLink="true">https://forum.iobroker.net/post/666270</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Wed, 18 Aug 2021 15:29:17 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 18 Aug 2021 14:55:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hardl" aria-label="Profile: hardl">@<bdi>hardl</bdi></a> sagte: nur klappt das mit den Anrufen über telegram nicht mehr:</p>
<p dir="auto">Mit telegram kenne ich mich nicht aus.</p>
]]></description><link>https://forum.iobroker.net/post/666249</link><guid isPermaLink="true">https://forum.iobroker.net/post/666249</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 18 Aug 2021 14:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 18 Aug 2021 14:53:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> Ich bräuchte bitte nochmals Hilfe: Das Skript funktioniert prima, nur klappt das mit den Anrufen über telegram nicht mehr:</p>
<pre><code>var timeout;


on({id: 'shelly.0.SHSW-1#E098068D0BFA#1.Relay0.Switch', change: "ne"}, async function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  if ((obj.state ? obj.state.val : "")) {
    timeout = setTimeout(async function () {
      setState("shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch"/*Switch*/, true);
      setState("alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak-volume"/*Volume to use for speak commands*/, 20);
      setState("alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak"/*speak*/, ('Achtung, bitte Kanal prüfen'));
      sendTo("telegram.0", "send", {
          text: 'Achtung Kanal-Pumpe läuft'
      });
      sendTo("telegram.0", "call", {
          text: 'Achtung,bitte Pumpe vom Kanal pruefen',
          user: '@muellerreinhard',
          lang: "de-DE-Standard-B",
          repeats: "1"
      });
      setStateDelayed("shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch"/*Switch*/, false, 5000, true);
    }, 5000);
  } else {
    (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
  }
});
</code></pre>
<pre><code>18.8.2021, 16:13:30.157	[info ]: javascript.0 (165) Start javascript script.js.telegram.Kanal
18.8.2021, 16:13:30.175	[info ]: javascript.0 (165) script.js.telegram.Kanal: subscribe: {"pattern":{"id":"shelly.0.SHSW-1#E098068D0BFA#1.Relay0.Switch","change":"ne","q":0},"name":"script.js.telegram.Kanal"}
18.8.2021, 16:13:30.176	[info ]: javascript.0 (165) script.js.telegram.Kanal: registered 1 subscription and 0 schedules
18.8.2021, 16:13:53.188	[info ]: javascript.0 (165) script.js.telegram.Kanal: setTimeout(ms=5000)
18.8.2021, 16:13:58.190	[info ]: javascript.0 (165) script.js.telegram.Kanal: setForeignState(id=shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch, state={"val":true,"ack":false,"c":"script.js.telegram.Kanal"})
18.8.2021, 16:13:58.190	[info ]: javascript.0 (165) script.js.telegram.Kanal: setForeignState(id=alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak-volume, state={"val":20,"ack":false,"c":"script.js.telegram.Kanal"})
18.8.2021, 16:13:58.191	[info ]: javascript.0 (165) script.js.telegram.Kanal: setForeignState(id=alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak, state={"val":"Achtung, bitte Kanal prüfen","ack":false,"c":"script.js.telegram.Kanal"})
18.8.2021, 16:13:58.191	[info ]: javascript.0 (165) script.js.telegram.Kanal: sendTo(adapter=telegram.0, cmd=send, msg={"text":"Achtung Kanal-Pumpe läuft"})
18.8.2021, 16:13:58.195	[info ]: javascript.0 (165) script.js.telegram.Kanal: sendTo(adapter=telegram.0, cmd=call, msg={"text":"Achtung,bitte Pumpe vom Kanal pruefen","user":"@muellerreinhard","lang":"de-DE-Standard-B","repeats":"1"})
18.8.2021, 16:13:58.203	[info ]: javascript.0 (165) script.js.telegram.Kanal: setStateDelayed(id=shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch, state=false, isAck=false, delay=5000, clearRunning=true)
18.8.2021, 16:13:58.204	[info ]: javascript.0 (165) script.js.telegram.Kanal: setStateDelayed: no running timers
18.8.2021, 16:14:03.205	[info ]: javascript.0 (165) script.js.telegram.Kanal: setForeignState(id=shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch, state={"val":false,"ack":false,"c":"script.js.telegram.Kanal"})
18.8.2021, 16:14:03.222	[warn ]: javascript.0 (165) script.js.telegram.Kanal: clearTimeout() =&gt; not found
</code></pre>
<p dir="auto">Anrufe über telegram und Test  mit API auf <a href="http://callMeBot.com" rel="nofollow ugc">callMeBot.com</a>  funktionieren. Ich habe schon stundenlang probiert und komme nicht weiter.</p>
]]></description><link>https://forum.iobroker.net/post/666248</link><guid isPermaLink="true">https://forum.iobroker.net/post/666248</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Wed, 18 Aug 2021 14:53:52 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 23 Jun 2021 16:04:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hardl" aria-label="Profile: hardl">@<bdi>hardl</bdi></a> ja</p>
]]></description><link>https://forum.iobroker.net/post/645639</link><guid isPermaLink="true">https://forum.iobroker.net/post/645639</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Wed, 23 Jun 2021 16:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 23 Jun 2021 15:23:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hardl" aria-label="Profile: hardl">@<bdi>hardl</bdi></a><br />
Das ist in Ordnung, sollte also nicht die Warnung erzeugen.<br />
Es handelt sich um das Skript "Kanal" unter der Gruppe "telegram"?</p>
]]></description><link>https://forum.iobroker.net/post/645622</link><guid isPermaLink="true">https://forum.iobroker.net/post/645622</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 23 Jun 2021 15:23:05 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 23 Jun 2021 15:14:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a></p>
<pre><code>var timeout;


on({id: 'shelly.0.SHSW-1#E098068D0BFA#1.Relay0.Switch', change: "ne"}, async function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  if ((obj.state ? obj.state.val : "")) {
    timeout = setTimeout(async function () {
      setState("shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch"/*Switch*/, true);
      setState("alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak-volume"/*Volume to use for speak commands*/, 50);
      setState("alexa2.0.Echo-Devices.G000WV0484231KF4.Commands.speak"/*speak*/, ('Achtung, bitte Kanal prüfen'));
      sendTo("telegram.0", "send", {
          text: 'Achtung Kanal-Pumpe läuft'
      });
      sendTo("telegram.0", "call", {
          text: 'Achtung, bitte Pumpe vom Kanal prüfen',
          user: '@XX',
          lang: "",
          repeats: "1"
      });
      setStateDelayed("shelly.0.SHSW-1#E098068D0A33#1.Relay0.Switch"/*Switch*/, false, 5000, false);
    }, 5000);
  } else {
    (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
  }
});```</code></pre>
]]></description><link>https://forum.iobroker.net/post/645621</link><guid isPermaLink="true">https://forum.iobroker.net/post/645621</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Wed, 23 Jun 2021 15:14:13 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 23 Jun 2021 11:51:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hardl" aria-label="Profile: hardl">@<bdi>hardl</bdi></a> sagte: Wieso bekomme ich nach Ausführung eine Warnung: (29707) script.js.telegram.Kanal: clearTimeout() =&gt; not found</p>
<p dir="auto">Keine Ahnung. Poste mal den erzeugten Javascript-Code ohne die letzte Zeile in Code tags.</p>
]]></description><link>https://forum.iobroker.net/post/645568</link><guid isPermaLink="true">https://forum.iobroker.net/post/645568</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 23 Jun 2021 11:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Wed, 23 Jun 2021 11:49:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> Wieso bekomme ich nach Ausführung eine Warnung: (29707) script.js.telegram.Kanal: clearTimeout() =&gt; not found<img src="/assets/uploads/files/1624448918886-bildschirmfoto-2021-06-23-um-13.36.51.png" alt="Bildschirmfoto 2021-06-23 um 13.36.51.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/645566</link><guid isPermaLink="true">https://forum.iobroker.net/post/645566</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Wed, 23 Jun 2021 11:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Thu, 17 Jun 2021 19:22:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> Vielen Dank für die schnelle Hilfe,<br />
Das funktioniert genau wie ich wollte. Meine Versuche sahen ähnlich aus, aber das mit<br />
sonst: stop timeout fehlte bei mir.</p>
]]></description><link>https://forum.iobroker.net/post/643762</link><guid isPermaLink="true">https://forum.iobroker.net/post/643762</guid><dc:creator><![CDATA[hardl]]></dc:creator><pubDate>Thu, 17 Jun 2021 19:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht, nur wenn Shelly &gt; als 2 Sekunden aktiviert ist. on Thu, 17 Jun 2021 17:53:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hardl" aria-label="Profile: hardl">@<bdi>hardl</bdi></a> sagte: Mit timeout und pause habe ich es nicht geschafft.</p>
<p dir="auto"><img src="/assets/uploads/files/1623952360874-bild_2021-06-17_195240.png" alt="Bild_2021-06-17_195240.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em>Wert</em> findet man unter "Trigger".</p>
]]></description><link>https://forum.iobroker.net/post/643743</link><guid isPermaLink="true">https://forum.iobroker.net/post/643743</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Thu, 17 Jun 2021 17:53:21 GMT</pubDate></item></channel></rss>