{"id":1971,"date":"2021-08-02T23:14:32","date_gmt":"2021-08-02T21:14:32","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=1971"},"modified":"2024-04-21T14:41:41","modified_gmt":"2024-04-21T12:41:41","slug":"detecter-lallumage-dune-led-dalarme","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/de\/detecter-lallumage-dune-led-dalarme","title":{"rendered":"Ich \u00fcberpr\u00fcfe die Redox-Produktion des Salzelektrolyseger\u00e4ts in meinem Pool"},"content":{"rendered":"<h2>Ziel<\/h2>\n<p>Auf meinem Salzelektrolyseger\u00e4t habe ich eine blaue LED, die anzeigt, dass die Produktion im Gange ist, und wenn sie abgeschaltet wird, m\u00f6chte ich, dass mein Hausautomationssystem (Jeedom oder Home Assistant) dies wei\u00df, um mich zu warnen.<\/p>\n<p>Ich wollte den Elektrolyseur nicht demontieren, um die Stromversorgung oder nicht die LED zur\u00fcckzugewinnen, selbst wenn es mich juckte, suchte ich nach M\u00f6glichkeiten, stattdessen die \u201evisuelle\u201c Information der ein- oder ausgeschalteten LED zur\u00fcckzugewinnen.<\/p>\n<p>Meine Idee war es, zu pr\u00fcfen, ob es einen Lichtsensor gibt, der einfach mit meinem Lichtsensor zu verbinden ist. <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/controle-domotique-redox-orp-ou-ph-dune-piscine-vers-jeedom-80e\" target=\"_blank\" rel=\"noopener\">bestehendes Managementsystem f\u00fcr mein Schwimmbad<\/a>. Da mein System einen I2C-Anschluss nutzte, suchte ich nach diesem Chiptyp und musste aus Gr\u00fcnden der Einfachheit mit Esp Easy interoperabel sein.<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4567\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur-redoxled.png\" alt=\"\" width=\"306\" height=\"171\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur-redoxled.png 306w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur-redoxled-300x168.png 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/p>\n<h2>Verwendetes Material<\/h2>\n<p>Neben dem <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/controle-domotique-redox-orp-ou-ph-dune-piscine-vers-jeedom-80e\" target=\"_blank\" rel=\"noopener\">Ausr\u00fcstung des bestehenden Pool-Management-Systems<\/a> :<\/p>\n<ul>\n<li class=\"product-title-text\" data-spm-anchor-id=\"a2g0o.detail.1000016.i1.1af472b4ykj65L\"><strong>BH1750<\/strong> (oder GY-302) Ein Helligkeitssensor<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1973\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750.png\" alt=\"\" width=\"1117\" height=\"199\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750.png 1117w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750-600x107.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750-300x53.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750-1024x182.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/BH1750-768x137.png 768w\" sizes=\"auto, (max-width: 1117px) 100vw, 1117px\" \/><\/p>\n<p>Ich habe zwei bestellt f\u00fcr 0.83\u20ac x 2 + 0.73\u20ac Hafen + 0.48\u20ac Steuern = 2.86\u20ac<\/p>\n<h2>Anschluss der Sonde<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1975\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/1750-1.png\" alt=\"\" width=\"203\" height=\"203\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/1750-1.png 450w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/1750-1-300x300.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/1750-1-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/1750-1-150x150.png 150w\" sizes=\"auto, (max-width: 203px) 100vw, 203px\" \/><\/p>\n<ul>\n<li>Die Sonde besteht aus I2C, also zwei SDA- und SCL-Anschl\u00fcssen, die ohne Fehler mit dem <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/controle-domotique-redox-orp-ou-ph-dune-piscine-vers-jeedom-80e\" target=\"_blank\" rel=\"noopener\">Vorhandene Busse<\/a>.<\/li>\n<li>VCC bei 5v und GND bei Masse.<\/li>\n<li>Addr erm\u00f6glicht es, die Adresse zu \u00e4ndern, sodass der Standardwert beibehalten wird und keine Verbindung hergestellt wird.<\/li>\n<\/ul>\n<h2>Positionierung der Sonde auf der Alarm-LED<\/h2>\n<p>Positionieren Sie den Helligkeitssensor (gr\u00fcner Pfeil) auf der LED und lassen Sie ihn mit schwarzem Scotch halten, der gut abdeckt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1976\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/17502.png\" alt=\"\" width=\"450\" height=\"450\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/17502.png 450w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/17502-300x300.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/17502-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/17502-150x150.png 150w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4570\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized.jpg\" alt=\"\" width=\"471\" height=\"353\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized.jpg 2000w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized-600x450.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized-300x225.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized-1024x768.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized-768x576.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164737_resized-1536x1152.jpg 1536w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p>Es ist nicht so h\u00e4sslich, und es ist sehr praktisch, \u00fcber das reibungslose Funktionieren der Produktion informiert zu sein.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4571\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized.jpg\" alt=\"\" width=\"468\" height=\"351\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized.jpg 2000w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized-600x450.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized-300x225.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized-1024x768.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized-768x576.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/20230702_164654_resized-1536x1152.jpg 1536w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/p>\n<h2>Konfiguration von Esp Easy<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4572\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur1.png\" alt=\"\" width=\"761\" height=\"399\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur1.png 761w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur1-600x315.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur1-300x157.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/p>\n<p>Ich gebe zu, dass ich nicht zu viele Versuche mit der Einstellung der Entschlie\u00dfung oder dergleichen gemacht habe, ich habe alles standardm\u00e4\u00dfig gelassen, und es funktioniert gut.<\/p>\n<ul>\n<li>Wenn die LED eingeschaltet ist, habe ich Lux: zwischen 25000 und 30000<\/li>\n<li>Wenn die LED ausgeschaltet ist, habe ich Lux: 0<\/li>\n<\/ul>\n<p>Das passt sehr gut zu mir.<\/p>\n<h4>Es wurde eine Regel hinzugef\u00fcgt, um einen True\/False anstelle eines Lux-Werts zu haben.<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/\/\/ \/\/ Verwandelt den Wert von LedProduction in Lux in True\/False am Pool#Elektrolyse \/\/\/\/ on LedProduction#Lux do if [LedProduktion#Lux]&gt;10000 and [Wasser#WasserAus]=0 \/\/ Wenn LedProduktion UND Pumpe l\u00e4uft \/\/Licht=Produktion funktioniert TaskValueSet 8,4,1 \/\/ Pool-Update#Electrolyse=1 else \/\/Licht=Produktion funktioniert nicht TaskValueSet 8,4,0 \/\/ Pool-Update#Elektrolyse=0 endif endon<\/pre>\n<p>\u00a0<\/p>\n<p>Zur Erinnerung: TaskValueSet initialisiert mir die Variablen \u201eDummy Device\u201c, die ich verwende und in Jeedom abrufe.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4573\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur2.png\" alt=\"\" width=\"827\" height=\"154\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur2.png 827w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur2-600x112.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur2-300x56.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/electrolyseur2-768x143.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<p>Im Code weist TaskValueSet der 8. Zeile der Tabelle \/ dem 4. Wert das Ergebnis 0 oder 1 zu (also Electrolyse).<\/p>\n<p>Anmerkung: Ich habe eine kleine Kontrolle in die Regel aufgenommen, damit ein Alarm nur dann ausgel\u00f6st wird, wenn der Elektrolyseur mit Strom versorgt wird.<\/p>\n<h2>Wiederherstellung in Jeedom oder Home Assistant<\/h2>\n<p>F\u00fcr Jeedom wird dies erl\u00e4utert in:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.sigalou-domotique.fr\/de\/controle-domotique-redox-orp-ou-ph-dune-piscine-vers-jeedom-80e\/\" target=\"_blank\" rel=\"noopener\">Redox Haussteuerung (ORP) oder Ph d&amp;#8217;ein Schwimmbad nach Jeedom (80\u20ac)<\/a><\/li>\n<\/ul>\n<p>F\u00fcr Home Assistant folgen Sie den Erl\u00e4uterungen zu diesem Plugin:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.sigalou-domotique.fr\/de\/migration-jeedom-vers-home-assistant-le-lien-des-esp-sous-esp-easy-vers-ha\/\" target=\"_blank\" rel=\"noopener\">Jeedom-Migration zu Home Assistant, ESP-Link unter ESP-Easy zu HA<\/a><\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Auf meinem Salzelektrolyseger\u00e4t habe ich eine blaue LED, die anzeigt, dass die Produktion im Gange ist, und wenn sie abgeschaltet wird, m\u00f6chte ich, dass mein Hausautomationssystem (Jeedom oder Home Assistant) dies wei\u00df, um mich zu warnen. Ich w\u00fcrde den Elektrolyseur nicht demontieren, um eine Stromversorgung oder keine LED zur\u00fcckzugewinnen, selbst wenn es mich juckte, [\u2026]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,23],"tags":[61,59],"class_list":["post-1971","post","type-post","status-publish","format-standard","hentry","category-domotique","category-home-assistant","category-jeedom-2","tag-esp","tag-piscine"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/1971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/comments?post=1971"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/1971\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/media?parent=1971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/categories?post=1971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/tags?post=1971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}