<?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[Log für Schaltvorgänge]]></title><description><![CDATA[<p dir="auto">Hallo,<br />
ich suche nach einer Möglichkeit mit zu loggen wodurch z.B. Lampen oder Steckdosen geschalten wurden.</p>
<p dir="auto">Ich habe sehr viele Zigbee Geräte über Deconz eingebunden, im "Normalbetrieb" läuft soweit alles gut. Ich war jetzt aber im Urlaub und habe dann doch das ein oder andere Mal über Telegram eine Nachricht bekommen das eine Lampe eingeschaltet würde oder das Heizkörper Thermostat hochgeregelt hat (Heizperiode wurde eingeschaltet).</p>
<p dir="auto">Ich würde gerne mitloggen welches Licht wurde geschalten und warum (Bewegungsmelder, Schalter, Vis, Adapterausfall oder sontiges).</p>
<p dir="auto">Gibt es da eine Lösung oder Ideen dafür?</p>
<p dir="auto">Mfg danny_v1</p>
]]></description><link>https://forum.iobroker.net/topic/37067/log-für-schaltvorgänge</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 05:01:11 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/37067.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Sep 2020 21:44:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Log für Schaltvorgänge on Fri, 25 Sep 2020 11:13:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a> ich habe einfach die triggerdatenpunkte eingegeben und letztlich auch den zu schaltenden dp - man kann die farbe für jeden aufgezeichneten dp angeben</p>
<p dir="auto">du kannst auch für wichtige sachen eine eigene instanz anlegen - dann hat man einen besseren überblick, weil man dann eine liste hat, die nur diese datenpunkte enthalten</p>
<p dir="auto"><img src="/assets/uploads/files/1601032388554-image-5.png" alt="Image 5.png" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1601032388387-image-6.png" alt="Image 6.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/493673</link><guid isPermaLink="true">https://forum.iobroker.net/post/493673</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Fri, 25 Sep 2020 11:13:59 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Fri, 25 Sep 2020 10:56:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a></p>
<p dir="auto">das schaut super aus, wie hast Du das gemacht?</p>
]]></description><link>https://forum.iobroker.net/post/493664</link><guid isPermaLink="true">https://forum.iobroker.net/post/493664</guid><dc:creator><![CDATA[danny_v1]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:56:04 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Fri, 25 Sep 2020 07:02:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a></p>
<p dir="auto">vielleicht zu umständlich - aber ich dachte du suchst sowas. ich habe hiermal 2 verschiedene trigger für ein licht</p>
<p dir="auto">dran erkennt man das "triggered bei bwm" schneller war als "triggered by rf" und die lampe dadurch eingschalten worden ist</p>
<p dir="auto">hellgrün sind die trigger und dunkelgrün ist das licht in der tabelle</p>
<p dir="auto"><img src="/assets/uploads/files/1601017313306-image-1.png" alt="Image 1.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/493578</link><guid isPermaLink="true">https://forum.iobroker.net/post/493578</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Fri, 25 Sep 2020 07:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 21:15:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asgothian" aria-label="Profile: Asgothian">@<bdi>Asgothian</bdi></a></p>
<p dir="auto">Danke für das Skript hab es gleich mal versucht. Funktioniert echt gut, vor allem da man sieht durch was etwas geschalten wurde. Was bedeuten die ersten vier Wert vor dem Datenpunkt der geschalten wurde?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a></p>
<p dir="auto">Der Adapter funktioniert auch recht gut, aber leider fehlt mir da die Quelle wodurch etwas geschalten wurde. Wenn das noch rein kommen sollte in den Adapter wäre das perfekt!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sigi234" aria-label="Profile: sigi234">@<bdi>sigi234</bdi></a></p>
<p dir="auto">Der Log Adapter ist leider keine Lösung, da ich ungern Deconz auf Debug Level stellen will. (Hab mir schon mal durch ein fehlerhaftes Skript und eigener Dummheit den kompletten Speicher des Pi vollgemüllt, 6GB an einem Tag, konnte mich nicht mal mehr einloggen in der GUI des Pi) ;)</p>
<p dir="auto">Danke euch für eure Antworten!</p>
]]></description><link>https://forum.iobroker.net/post/493530</link><guid isPermaLink="true">https://forum.iobroker.net/post/493530</guid><dc:creator><![CDATA[danny_v1]]></dc:creator><pubDate>Thu, 24 Sep 2020 21:15:45 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 17:12:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a></p>
<p dir="auto">anbei mein Skript. Ich logge das einfach in eine Datei, aber wenn du was anderes tun willst kannst du in der "function LogToFile" auch andere Dinge tun.</p>
<p dir="auto">Der Selektor holt sich den "on" zustand von allen deconz und zigbee Lampen</p>
<pre><code>const fs = require('fs');


function LogToFile(obj)
{
    fs.appendFile('/opt/iobroker/log/lights.log', Date.now().toLocaleString() + ": " + obj.id+ ": " + JSON.stringify(obj.state) + '\n', function (err) {
  if (err) throw err;
  
});

}

$('[role=switch][state.id=*.on]').each(function (id, i) {
    console.log(id);
    on({id:id, change:"ne"}, LogToFile);
});
$('[role=switch][state.id=*.state]').each(function (id, i) {
    console.log(id);
    on({id:id, change:"ne"}, LogToFile);
});
console.log("script is running")

</code></pre>
]]></description><link>https://forum.iobroker.net/post/493376</link><guid isPermaLink="true">https://forum.iobroker.net/post/493376</guid><dc:creator><![CDATA[Asgothian]]></dc:creator><pubDate>Thu, 24 Sep 2020 17:12:21 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 14:00:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a></p>
<p dir="auto">evtl dieser adapter- habe ihn gerade entdeckt - noch nicht wirklich getestet</p>
<p dir="auto"><a href="https://forum.iobroker.net/topic/37078/test-eventlist-adapter">https://forum.iobroker.net/topic/37078/test-eventlist-adapter</a></p>
<p dir="auto"><img src="/assets/uploads/files/1600955730877-image-6.png" alt="Image 6.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/493268</link><guid isPermaLink="true">https://forum.iobroker.net/post/493268</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Thu, 24 Sep 2020 14:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 08:31:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sigi234" aria-label="Profile: sigi234">@<bdi>sigi234</bdi></a> sagte in <a href="/post/493137">Log für Schaltvorgänge</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a><br />
Eventuell Log Adapter</p>
</blockquote>
<p dir="auto">Aber nur wenn jeder Schaltvorgang im Log abgebildet ist. Das ist er bei Deconz meines Wissens nach nur wenn der Adapter auf Debug läuft.</p>
]]></description><link>https://forum.iobroker.net/post/493141</link><guid isPermaLink="true">https://forum.iobroker.net/post/493141</guid><dc:creator><![CDATA[Asgothian]]></dc:creator><pubDate>Thu, 24 Sep 2020 08:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 08:18:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a><br />
Eventuell Log Adapter</p>
]]></description><link>https://forum.iobroker.net/post/493137</link><guid isPermaLink="true">https://forum.iobroker.net/post/493137</guid><dc:creator><![CDATA[sigi234]]></dc:creator><pubDate>Thu, 24 Sep 2020 08:18:43 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 08:09:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a> meines Wissens nicht.</p>
<p dir="auto">A.</p>
]]></description><link>https://forum.iobroker.net/post/493135</link><guid isPermaLink="true">https://forum.iobroker.net/post/493135</guid><dc:creator><![CDATA[Asgothian]]></dc:creator><pubDate>Thu, 24 Sep 2020 08:09:26 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 07:28:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asgothian" aria-label="Profile: Asgothian">@<bdi>Asgothian</bdi></a><br />
ja das mit dem Skript wäre echt super.</p>
<p dir="auto">Also einen fertigen Adapter gibt es dafür nicht?</p>
]]></description><link>https://forum.iobroker.net/post/493112</link><guid isPermaLink="true">https://forum.iobroker.net/post/493112</guid><dc:creator><![CDATA[danny_v1]]></dc:creator><pubDate>Thu, 24 Sep 2020 07:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Log für Schaltvorgänge on Thu, 24 Sep 2020 05:49:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny_v1" aria-label="Profile: danny_v1">@<bdi>danny_v1</bdi></a><br />
Du kannst einen Selektor nutzen um auf die entsprechenden Datenpunkte im ioBroker zu triggern. Im Trigger kannst du dann den "Ursprung" der Änderung verfolgen, sprich welcher Adapter das Signal gesendet hat. Zusammen mit der Zeit, dem vorherigen Schaltzustand und dem neuen Schaltzustand kann das durchaus interessant sein.</p>
<p dir="auto">Ich habe so ein Skript zu hause laufen, kann das aber erst heute Abend posten - da komm ich von hier nicht ran.</p>
<p dir="auto">A.</p>
]]></description><link>https://forum.iobroker.net/post/493080</link><guid isPermaLink="true">https://forum.iobroker.net/post/493080</guid><dc:creator><![CDATA[Asgothian]]></dc:creator><pubDate>Thu, 24 Sep 2020 05:49:41 GMT</pubDate></item></channel></rss>