<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>diy Archive - Smartebude</title>
	<atom:link href="https://smartebude.de/tag/diy/feed/" rel="self" type="application/rss+xml" />
	<link>https://smartebude.de/tag/diy/</link>
	<description>Smart Home Deals, Homeassistant und ESP8266 Basteleien</description>
	<lastBuildDate>Sat, 12 Nov 2022 20:15:50 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://smartebude.de/wp-content/uploads/2023/01/cropped-smart_logo_favicon-32x32.png</url>
	<title>diy Archive - Smartebude</title>
	<link>https://smartebude.de/tag/diy/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Lichtwecker in Homeassistant &#8211; Sonnenaufgang simulieren #ADW6</title>
		<link>https://smartebude.de/lichtwecker-diy-homeassistant/</link>
					<comments>https://smartebude.de/lichtwecker-diy-homeassistant/#comments</comments>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 02 Sep 2022 10:00:00 +0000</pubDate>
				<category><![CDATA[Automatisierung der Woche]]></category>
		<category><![CDATA[Automatisierungen]]></category>
		<category><![CDATA[Home Assistant]]></category>
		<category><![CDATA[automatisierung]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[lichtwecker]]></category>
		<guid isPermaLink="false">https://smartebude.de/?p=1165</guid>

					<description><![CDATA[<p>Neue Woche neue Automatisierung &#8211; Automatisierung der Woche #6. Seit Jahren sind Lichtwecker ein Thema. Sie sollen Menschen helfen, morgens besser aufzuwachen. Der Körper bekommt natürliche Aufwachsignal durch einen Sonnenaufgang vorgespielt. Philips Hue hat dies bereits eine Weile in der App eingebaut. Dort kann man eine geplante Szene mit „natürlich aufwachen“ anlegen und wird morgens [...]</p>
<p>Der Beitrag <a href="https://smartebude.de/lichtwecker-diy-homeassistant/">Lichtwecker in Homeassistant &#8211; Sonnenaufgang simulieren #ADW6</a> erschien zuerst auf <a href="https://smartebude.de">Smartebude</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Neue Woche neue Automatisierung &#8211; Automatisierung der Woche #6. </p>



<p class="wp-block-paragraph">Seit Jahren sind Lichtwecker ein Thema. Sie sollen Menschen helfen, morgens besser aufzuwachen. Der Körper bekommt natürliche Aufwachsignal durch einen Sonnenaufgang vorgespielt.</p>



<p class="wp-block-paragraph">Philips Hue hat dies bereits eine Weile in der App eingebaut. Dort kann man eine geplante Szene mit „natürlich aufwachen“ anlegen und wird morgens mit heller werdenden Lampen geweckt. </p>



<p class="wp-block-paragraph">Nicht alle im Haus kommen leicht morgens aus dem Bett (ich schon, ich nutze morgens eine Stunde ab 5 für den Blog), daher habe ich einen einfachen Sonnenaufgang Alarm in Homeassistant erstellt.</p>



<p class="wp-block-paragraph">—</p>



<h2 class="wp-block-heading">Helfer für die Aufstehzeit anlegen</h2>



<p class="wp-block-paragraph">Die Aufstehzeit soll variieren. So soll diese täglich manuell gesetzt werden können oder durch Automatisierungen automatisch angelegt werden. Um dies zu ermöglichen, erstellen wir uns einen Helfer (Helper).</p>



<p class="wp-block-paragraph"><strong> Einstellungen &gt;&gt; Geräte und Dienste &gt;&gt; Helfer (oben) &gt;&gt; Helfer erstellen</strong></p>



<p class="wp-block-paragraph">Als Typ „Datum / Uhrzeit“ wählen. </p>



<figure class="wp-block-image aligncenter"><img fetchpriority="high" decoding="async" width="822" height="786" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1.png" alt="" class="wp-image-1161" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1.png 822w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-300x287.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-768x734.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-30x30.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-75x72.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-110x105.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-160x153.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-500x478.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-50x48.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-100x96.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.46.36@2x-1-200x191.png 200w" sizes="(max-width: 822px) 100vw, 822px" /></figure>



<p class="wp-block-paragraph">Den Helfer entsprechend anlegen und hier nur „Uhrzeit“ auswählen.</p>



<h2 class="wp-block-heading">Uhrzeit via Dashboard eingeben</h2>



<p class="wp-block-paragraph">Um einfach einen Wecker Uhrzeit angeben zu können, kannst du dir auf einem Dashboard die Helfer Entitiät anzeigen lassen. Dort kannst du dann entsprechend die Alarm-Uhrzeit eingeben.</p>



<p class="wp-block-paragraph">Dashboard über die 3 Punkte bearbeiten, neue Karte vom Typ ‚Entität‘. Fertig.</p>



<figure class="wp-block-image aligncenter"><img decoding="async" width="1990" height="1016" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1.png" alt="Karte für die Wecker Zeit anlegen" class="wp-image-1157" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1.png 1990w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-300x153.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-1024x523.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-768x392.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-30x15.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-75x38.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-110x56.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-160x82.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-500x255.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-50x26.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-100x51.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-200x102.png 200w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.51.07@2x-1-1536x784.png 1536w" sizes="(max-width: 1990px) 100vw, 1990px" /><figcaption class="wp-element-caption">Karte für die Wecker Zeit anlegen</figcaption></figure>



<figure class="wp-block-image aligncenter"><img decoding="async" width="1028" height="224" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1.png" alt="Wecker auf 08:00 gestellt" class="wp-image-1158" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1.png 1028w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-300x65.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-1024x223.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-768x167.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-30x7.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-75x16.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-110x24.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-160x35.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-500x109.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-50x11.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-100x22.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.52.51@2x-1-200x44.png 200w" sizes="(max-width: 1028px) 100vw, 1028px" /><figcaption class="wp-element-caption">Wecker auf 08:00 gestellt</figcaption></figure>



<h2 class="wp-block-heading">Automatisierung für den Wecker anlegen</h2>



<p class="wp-block-paragraph">Wir haben alles vorbereitet für unseren Wecker, jetzt starten wir mit der Magie. </p>



<p class="wp-block-paragraph">Über <strong>Einstellungen &gt;&gt; Automatisierungen &amp; Szenen &gt;&gt; + Automatisierung erstellen, </strong>legen wir eine neue Automatisierung an. Wir erstellen eine ohne Vorlage.</p>



<h4 class="wp-block-heading">Auslöser</h4>



<p class="wp-block-paragraph">Als Auslösertyp wählst du “Zeit“ und bei Modus „Wert eines Datums / Zeit-Helfers“. Dort entsprechend den eben angelegten Helfer auswählen.</p>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="2128" height="1128" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1.png" alt="der Helfer kann als Uhrzeit für die Automatisierung genutzt werden." class="wp-image-1162" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1.png 2128w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-300x159.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-1024x543.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-768x407.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-30x16.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-75x40.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-110x58.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-160x85.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-500x265.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-50x27.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-100x53.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-200x106.png 200w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-1536x814.png 1536w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-05.56.57@2x-1-2048x1086.png 2048w" sizes="auto, (max-width: 2128px) 100vw, 2128px" /><figcaption class="wp-element-caption">der Helfer kann als Uhrzeit für die Automatisierung genutzt werden.</figcaption></figure>



<h4 class="wp-block-heading">Bedingung</h4>



<p class="wp-block-paragraph">Eigentlich ist keine Bedingung erforderlich. Hierüber könnte man aber z.&nbsp;B. das Wecken am Wochenende blockieren, oder einen Filter einbauen das Zeiten vor 06:00 Uhr nicht möglich sind. </p>



<p class="wp-block-paragraph">Für das Kinderzimmer habe ich entsprechend beides gesetzt, falls Falscheingaben vorliegen, werden die entsprechend ignoriert.</p>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="2118" height="1364" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1.png" alt="" class="wp-image-1156" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1.png 2118w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-300x193.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-1024x659.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-768x495.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-30x19.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-75x48.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-110x71.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-160x103.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-500x322.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-50x32.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-100x64.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-200x129.png 200w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-1536x989.png 1536w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.01.22@2x-1-2048x1319.png 2048w" sizes="auto, (max-width: 2118px) 100vw, 2118px" /></figure>



<h4 class="wp-block-heading">Aktionen</h4>



<p class="wp-block-paragraph">In den Aktionen passiert die eigentliche Magie. Die ist einfacher als man denkt. </p>



<p class="wp-block-paragraph">Leider funktionieren bei HomeAssistant die Transitions nur bis 5 Minuten. Daher bauen wir uns eine kleine Zwischenlösung: Wir wiederholen aller 27 Sekunden unsere Aktion und erhöhen in dieser die Helligkeit um 3 Prozent. </p>



<p class="wp-block-paragraph"><br>Damit bekommen wir einen soften Aufwach-Effekt. Mit den Werten kann man nach Belieben spielen und den Taschenrechner anwerfen.</p>



<p class="wp-block-paragraph">Als Starthelligkeit beginnt die Lampe bei 0 % und endet bei 100 %. Das sind Werte, die jeder für sich ausprobieren kann, was am besten funktioniert.</p>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="2118" height="882" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1.png" alt="" class="wp-image-1163" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1.png 2118w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-300x125.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-1024x426.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-768x320.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-30x12.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-75x31.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-110x46.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-160x67.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-500x208.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-50x21.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-100x42.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-200x83.png 200w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-1536x640.png 1536w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.03.22@2x-1-2048x853.png 2048w" sizes="auto, (max-width: 2118px) 100vw, 2118px" /></figure>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="2152" height="744" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1.png" alt="" class="wp-image-1159" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1.png 2152w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-300x104.png 300w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-1024x354.png 1024w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-768x266.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-30x10.png 30w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-75x26.png 75w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-110x38.png 110w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-160x55.png 160w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-500x173.png 500w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-50x17.png 50w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-100x35.png 100w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-200x69.png 200w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-1536x531.png 1536w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-06.04.09@2x-1-2048x708.png 2048w" sizes="auto, (max-width: 2152px) 100vw, 2152px" /></figure>



<p class="wp-block-paragraph">Nach diesen 15 Minuten könnte man eine weitere Aktion auslösen, beispielsweise dass das Rollo automatisch öffnet, Alexa losplaudert oder wie man sich sonst noch am besten aus dem Bett befördern könnte (Wasser oder so ähnlich) …</p>



<h3 class="wp-block-heading">Erweiterung</h3>



<p class="wp-block-paragraph">Man kann das ganze noch erweitern, beispielsweise integriert man einen Ferienkalender oder baut einen Arbeitskalender-Binary-Sensor für Frühdienst mit ein. Hier gäbe es verschiedene Möglichkeiten, die das so richtig smart machen.</p>



<h2 class="wp-block-heading">YAML Code</h2>



<p class="wp-block-paragraph">Ein guter Start ist es, den Code als YAML einzufügen, dann musst du nur noch deine Lampen einfügen und fertig.</p>



<pre class="wp-block-code"><code lang="yaml" class="language-yaml">alias: Wecker - Kinderzimmer 2
description: ""
trigger:
  - platform: time
    at: input_datetime.kinderzimmer_2_wecker
condition:
  - condition: time
    after: "05:55:00"
    before: "20:00:00"
    weekday:
      - fri
      - thu
      - wed
      - tue
      - mon
action:
  - service: light.turn_on
    data:
      color_temp: 392
      brightness: 3
    target:
      entity_id:
        - light.shellydimmer_f35b12
        - light.light_tresen_97131efe_level_light_color_on_off
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - repeat:
      count: "20"
      sequence:
        - service: light.turn_on
          data:
            color_temp: 392
            brightness_step_pct: 5
          target:
            entity_id:
              - light.shellydimmer_f35b12
              - light.light_tresen_97131efe_level_light_color_on_off
              - light.tresen
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
mode: restart

</code></pre>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="2134" height="9471" src="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1.png" alt="" class="wp-image-1160" srcset="https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1.png 2134w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-231x1024.png 231w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-768x3408.png 768w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-7x30.png 7w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-17x75.png 17w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-25x110.png 25w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-36x160.png 36w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-11x50.png 11w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-45x200.png 45w, https://smartebude.de/wp-content/uploads/2022/09/CleanShot-2022-08-26-at-07.56.03@2x-1-346x1536.png 346w" sizes="auto, (max-width: 2134px) 100vw, 2134px" /></figure>


	<section class="section dark" id="section_1883890645">
		<div class="bg section-bg fill bg-fill  bg-loaded" >

			
			
			

		</div>

		

		<div class="section-content relative">
			

<h5 class="uppercase">Automatisierung der WOche</h5>
<p>Jeden Freitag 12:00 Uhr, pünktlich zur Mittagspause, wird eine neue Automatisierung veröffentlicht. Hast du auch eine Automatisierung die hier gut rein passt? Schick sie gerne als Inspiration für andere. </p>

  
    <div class="row large-columns-3 medium-columns- small-columns-1" >
  <div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/giessalarm-benachrichtigung-wenn-der-boden-zu-trocken-ist-adw-16/" class="plain" aria-label="Gießalarm – Benachrichtigung, wenn der Boden zu trocken ist &#8211; adw #16">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-300x158.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-300x158.png 300w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-1024x538.png 1024w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-768x404.png 768w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-30x16.png 30w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-75x39.png 75w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-110x58.png 110w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-160x84.png 160w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-500x263.png 500w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-50x26.png 50w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-100x53.png 100w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-200x105.png 200w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden-600x316.png 600w, https://smartebude.de/wp-content/uploads/2023/06/alarm-bei-zu-trockenem-boden.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/giessalarm-benachrichtigung-wenn-der-boden-zu-trocken-ist-adw-16/" class="plain">Gießalarm – Benachrichtigung, wenn der Boden zu trocken ist &#8211; adw #16</a>
					</h5>
										<div class="is-divider"></div>
					                                            <p class="from_the_blog_comments uppercase is-xsmall">
                            2 Kommentare                        </p>
                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div><div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/zeitplaene-nutzen-um-mehrere-temperaturen-in-home-assistant-zu-steuern/" class="plain" aria-label="Zeitpläne nutzen, um mehrere Temperaturen in Home Assistant zu steuern">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-300x158.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-300x158.png 300w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-1024x539.png 1024w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-768x404.png 768w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-30x16.png 30w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-75x40.png 75w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-110x58.png 110w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-160x84.png 160w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-500x263.png 500w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-50x26.png 50w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-100x53.png 100w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-200x105.png 200w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug-600x316.png 600w, https://smartebude.de/wp-content/uploads/2023/03/mehrere-zeitplaene-fuer-heizug.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/zeitplaene-nutzen-um-mehrere-temperaturen-in-home-assistant-zu-steuern/" class="plain">Zeitpläne nutzen, um mehrere Temperaturen in Home Assistant zu steuern</a>
					</h5>
										<div class="is-divider"></div>
					                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div><div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/lampen-steuern-mit-bewegungsmeldern-in-einer-automatisierung-adw15/" class="plain" aria-label="Lampen steuern mit Bewegungsmeldern in einer Automatisierung  #adw15">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-300x158.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-300x158.png 300w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-1024x538.png 1024w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-768x404.png 768w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-30x16.png 30w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-75x39.png 75w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-110x58.png 110w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-160x84.png 160w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-500x263.png 500w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-50x26.png 50w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-100x53.png 100w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-200x105.png 200w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos-600x316.png 600w, https://smartebude.de/wp-content/uploads/2023/01/Kopie-von-Kopie-von-Kopie-von-ist-alexa-kostenlos.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/lampen-steuern-mit-bewegungsmeldern-in-einer-automatisierung-adw15/" class="plain">Lampen steuern mit Bewegungsmeldern in einer Automatisierung  #adw15</a>
					</h5>
										<div class="is-divider"></div>
					                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div><div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/heizung-solltemperatur-reduzieren-wenn-fenster-geoeffnet-so-kannst-du-es-umsetzen-adw-13/" class="plain" aria-label="Heizung Temperatur reduzieren, wenn Fenster geöffnet – so kannst du es umsetzen # ADW 14">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-300x158.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-300x158.png 300w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-1024x538.png 1024w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-768x404.png 768w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-30x16.png 30w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-75x39.png 75w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-110x58.png 110w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-160x84.png 160w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-500x263.png 500w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-50x26.png 50w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-100x53.png 100w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-200x105.png 200w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos-600x316.png 600w, https://smartebude.de/wp-content/uploads/2022/11/Kopie-von-ist-alexa-kostenlos.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/heizung-solltemperatur-reduzieren-wenn-fenster-geoeffnet-so-kannst-du-es-umsetzen-adw-13/" class="plain">Heizung Temperatur reduzieren, wenn Fenster geöffnet – so kannst du es umsetzen # ADW 14</a>
					</h5>
										<div class="is-divider"></div>
					                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div><div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/licht-ueber-bewegungsmelder-anschalten-mit-zusaetzlichen-bedingungen/" class="plain" aria-label="Licht über Bewegungsmelder anschalten &#8211; mit zusätzlichen Bedingungen">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-300x158.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-300x158.png 300w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-1024x538.png 1024w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-768x404.png 768w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-30x16.png 30w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-75x39.png 75w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-110x58.png 110w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-160x84.png 160w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-500x263.png 500w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-50x26.png 50w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-100x53.png 100w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-200x105.png 200w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten-600x316.png 600w, https://smartebude.de/wp-content/uploads/2022/11/bwm-licht-anschalten.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/licht-ueber-bewegungsmelder-anschalten-mit-zusaetzlichen-bedingungen/" class="plain">Licht über Bewegungsmelder anschalten &#8211; mit zusätzlichen Bedingungen</a>
					</h5>
										<div class="is-divider"></div>
					                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div><div class="col post-item" >
			<div class="col-inner">
				<div class="box box-bounce box-text-bottom box-blog-post has-hover">
            					<div class="box-image" >
  						<div class="image-cover" style="padding-top:75%;">
							<a href="https://smartebude.de/frostwarnung-senden-mit-home-assistant-temperatur-unter-0-c-adw-12/" class="plain" aria-label="Frostwarnung senden mit Home Assistant &#8211; Temperatur unter 0 °C &#8211; ADW #12">
								<img loading="lazy" decoding="async" width="300" height="158" src="https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-300x158.png" class="attachment-medium size-medium wp-post-image" alt="Benachrichtigung bei Frost" srcset="https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-300x158.png 300w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-1024x538.png 1024w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-768x404.png 768w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-30x16.png 30w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-75x39.png 75w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-110x58.png 110w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-160x84.png 160w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-500x263.png 500w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-50x26.png 50w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-100x53.png 100w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung-200x105.png 200w, https://smartebude.de/wp-content/uploads/2022/10/home-assistant-frostwarnung.png 1200w" sizes="auto, (max-width: 300px) 100vw, 300px" />							</a>
  							  							  						</div>
  						  					</div>
          					<div class="box-text text-center" >
					<div class="box-text-inner blog-post-inner">

					
										<h5 class="post-title is-large ">
						<a href="https://smartebude.de/frostwarnung-senden-mit-home-assistant-temperatur-unter-0-c-adw-12/" class="plain">Frostwarnung senden mit Home Assistant &#8211; Temperatur unter 0 °C &#8211; ADW #12</a>
					</h5>
										<div class="is-divider"></div>
					                    
					
					
					</div>
					</div>
									</div>
			</div>
		</div></div>


		</div>

		
<style>
#section_1883890645 {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: rgb(40, 40, 40);
}
</style>
	</section>
	



<p class="wp-block-paragraph"></p>
<p>Der Beitrag <a href="https://smartebude.de/lichtwecker-diy-homeassistant/">Lichtwecker in Homeassistant &#8211; Sonnenaufgang simulieren #ADW6</a> erschien zuerst auf <a href="https://smartebude.de">Smartebude</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://smartebude.de/lichtwecker-diy-homeassistant/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>DIY Windsensor mit MQTT mit Esp8266 für IObroker</title>
		<link>https://smartebude.de/diy-windsensor-mit-mqtt-mit-esp8266-fuer-iobroker/</link>
					<comments>https://smartebude.de/diy-windsensor-mit-mqtt-mit-esp8266-fuer-iobroker/#comments</comments>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Tue, 10 Sep 2019 07:57:44 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[IOBroker]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[esp8266]]></category>
		<category><![CDATA[iobroker]]></category>
		<category><![CDATA[mqtt]]></category>
		<category><![CDATA[sensor]]></category>
		<guid isPermaLink="false">https://derfrickler.de/?p=235</guid>

					<description><![CDATA[<p>Ein Windsensor für meine Haussteuerung steht schon lange auf meiner ToDo Liste. Diesen brauche ich vor allem als Sicherheitsfunktion für die automatische Steuerung der Raffstores &#8211; und aus Datensammelwut. Als Basis habe ich mir einen Ventus Ersatzsensor entkernt und dort einen ESP8266 + Arduino Mini Pro 3,3V untergebracht. Die Komponenten Folgende Komponenten habe ich verbaut: [...]</p>
<p>Der Beitrag <a href="https://smartebude.de/diy-windsensor-mit-mqtt-mit-esp8266-fuer-iobroker/">DIY Windsensor mit MQTT mit Esp8266 für IObroker</a> erschien zuerst auf <a href="https://smartebude.de">Smartebude</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="768" src="https://derfrickler.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-1024x768.jpg" alt="" class="wp-image-238" srcset="https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-1024x768.jpg 1024w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-300x225.jpg 300w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-768x576.jpg 768w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-30x22.jpg 30w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-75x56.jpg 75w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-110x82.jpg 110w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-160x120.jpg 160w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-500x375.jpg 500w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-1536x1152.jpg 1536w, https://smartebude.de/wp-content/uploads/2019/09/MVIMG_20190909_075416-2048x1536.jpg 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Ein Windsensor für meine Haussteuerung steht schon lange auf meiner ToDo Liste. Diesen brauche ich vor allem als Sicherheitsfunktion für die automatische Steuerung der Raffstores &#8211; und aus Datensammelwut. </p>



<p class="wp-block-paragraph">Als Basis habe ich mir einen Ventus Ersatzsensor entkernt und dort einen ESP8266 + Arduino Mini Pro 3,3V untergebracht. </p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Die Komponenten</strong></p>



<p class="wp-block-paragraph">Folgende Komponenten habe ich verbaut: </p>



<ul class="wp-block-list">
<li>Ventus Ersatzwindmesser (<a href="https://www.reichelt.de/de/de/ersatz-windmesser-fuer-funkwetterstation-ventus-w132-p132595.html?r=1">link</a>)  ca. 23 € bei Reichelt .de</li>



<li>Arduino Pro 3,3V 8Mhz (<a href="https://amzn.to/2nCkogf">link</a>)  ca. 4 € bei Amazon.de</li>



<li>Wemos D1 Mini (<a href="https://amzn.to/2mUT4tb">link</a>) ca. 5 € bei Amazon.de</li>



<li>3 Volt Solarzelle (<a href="https://amzn.to/2mWt8xt">link</a>) für 8 € bei Amazon.de</li>



<li>100k Widerstand zur Spannungsmessung</li>
</ul>



<p class="wp-block-paragraph">Macht insgesamt ca.  40 € für einen smarten Windsensor mit Batteriebetrieb. Deutlich Billiger als alle Modelle die auf dem Markt sind und auch etwas besser  zu befestigen als die Stab-Bauweise von Homematic. </p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Warum 2 Boards?</strong><br>Für die Akkulaufzeit &#8211; den ESP8266 kann ich nicht mit einem externen Interrupt wecken ohne einen vollen Reboot zur durchlaufen. Der Arduino kann jedoch an 2 Interrupt Pins geweckt werden und anschließend wieder schlafen, ohne einen Reboot zu durchlaufen. </p>



<p class="wp-block-paragraph">Der Ablauf ist eigentlich recht einfach, der Arduino zählt an PIN 2 alle Umdrehung des Windsensors und lauscht auf PIN3 ob ein Low vom Wemos gesetzt wird. Kommt das Signal auf PIN3 erfolgt eine Serielle Ausgabe des Aktuellen Windcounters. </p>



<p class="wp-block-paragraph">Der Wemos Rebootet alle 30 Sekunden neu, liest den Serial Input und sendet ggf. Daten via MQTT an IObroker. Ansonsten sind beide Geräte im Deep Sleep und verbrauchen nur Minimal Strom.  </p>



<p class="wp-block-paragraph">Der Ablauf nochmal grafisch dargestellt: </p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="908" height="684" src="https://derfrickler.de/wp-content/uploads/2019/09/New-Arduino-flowchart.png" alt="" class="wp-image-237" srcset="https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart.png 908w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-300x226.png 300w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-768x579.png 768w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-30x23.png 30w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-75x56.png 75w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-110x83.png 110w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-160x121.png 160w, https://smartebude.de/wp-content/uploads/2019/09/New-Arduino-flowchart-500x377.png 500w" sizes="auto, (max-width: 908px) 100vw, 908px" /></figure>



<p class="wp-block-paragraph">Aktuell läuft das ganze noch im Testbetrieb, um zu sehen, wie sich die Batterielaufzeit verhält. Um möglichst lange Betriebszeiten zu erreichen werden 2 NiMH Akkus durch eine 3V Solarzelle geladen &#8211; ohne Laderegler. Den Laderegler halte ich für überflüssig, da NiMH Zellen ein überladen mit geringer Stärke gut verkraften. Ich habe die Akkus vorher einem Kapazitätstest unterzogen und werde im Frühjahr einen weiteren Test mache. </p>



<figure class="wp-block-image"><img decoding="async" src="blob:https://derfrickler.de/4cbf11e3-3098-4e7d-9795-242985a8109f" alt=""/><figcaption class="wp-element-caption">&#8222;Durchdachtes&#8220; Kabelmanagement im Prototyp</figcaption></figure>



<p class="wp-block-paragraph"><strong>Code Arduino Pro mini</strong></p>



<pre class="wp-block-code"><code lang="yaml" class="language-yaml">#include &lt;LowPower.h&gt;


#define WIND_INTERRUPT 0
#define ESP_INTERRUPT 1
#define WIND_INTERRUPT_PIN 3
#define ESP_INTERRUPT_PIN 2


volatile int pulses = 0;
volatile long last_interrupt_time = 0;
volatile int sendcheck = false;


void pulse() {

  unsigned long interrupt_time = millis();

  // If interrupts come faster than 200ms, assume it's a bounce and ignore
  if (interrupt_time - last_interrupt_time &gt; 10)
  {
    ++pulses;

  }
  last_interrupt_time = interrupt_time;
}


void ESP_awake() {
  sendcheck = true;
}


void sendWind() {

  int temppulse = pulses;

  delay(200);
  Serial.println("-");
  Serial.print("pulses:");
  Serial.println(temppulse);

  // gesendete vom Global Counter abziehen
  pulses -= temppulse;

}

void setup() {
  pinMode(WIND_INTERRUPT_PIN, INPUT_PULLUP);
  pinMode(ESP_INTERRUPT_PIN, INPUT);

  Serial.begin(9600);

  attachInterrupt(digitalPinToInterrupt(WIND_INTERRUPT_PIN), pulse, RISING);
  attachInterrupt(digitalPinToInterrupt(ESP_INTERRUPT_PIN), ESP_awake, FALLING);

}


void loop() {

  delay(100);
  LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF);


  // Wake up ab hier
  if (sendcheck) {
    sendcheck = false;
    sendWind();
  }
}</code></pre>



<p class="wp-block-paragraph"><strong>Code Wemos  / Esp8266</strong></p>



<pre class="wp-block-code"><code lang="yaml" class="language-yaml">
#include &lt;ESP8266WiFi.h&gt;
#include &lt;ESP8266HTTPClient.h&gt;
#include &lt;PubSubClient.h&gt;
#include &lt;RTCVars.h&gt;
RTCVars state; // create the state object

int reset_counter;
int program_step;
int sumwindcount;

unsigned int raw = 0;
float volt = 0.0;

WiFiClient espClient;
PubSubClient client(espClient);


const char* ssid = "****";
const char* password = "****";

const char* mqttServer = "192.168.****";
const int   mqttPort = 1886;
const char* mqttUser = "*****";
const char* mqttPassword = "*****";


int sleepTimeS = 30;
volatile unsigned long ContactBounceTime; // Timer to avoid contact bounce in interrupt routine


void setup() {
  Serial.begin(9600);

  state.registerVar( &amp;reset_counter );
  state.registerVar( &amp;sumwindcount );

  if (state.loadFromRTC()) {
    reset_counter++;
  } else {
    reset_counter = 0;
    sumwindcount = 0;
    program_step = 0;
  }

  // Pin 4 Aktivieren / Deaktiveren &gt;&gt; Signal für Arudino Interrupt
  pinMode(4, OUTPUT);
  digitalWrite(4, HIGH);
  delay(500);
  digitalWrite(4, LOW);

}


String getValue(String data, char separator, int index)
{
  int found = 0;
  int strIndex[] = { 0, -1 };
  int maxIndex = data.length() - 1;

  for (int i = 0; i &lt;= maxIndex &amp;&amp; found &lt;= index; i++) {
    if (data.charAt(i) == separator || i == maxIndex) {
      found++;
      strIndex[0] = strIndex[1] + 1;
      strIndex[1] = (i == maxIndex) ? i + 1 : i;
    }
  }
  return found &gt; index ? data.substring(strIndex[0], strIndex[1]) : "";
}



void senddata(int windspeed, int boe, float battery) {

  WiFi.begin(ssid, password);
  byte wifiCNT = 0;
  byte mqttCNT = 0;


  while (WiFi.status() != WL_CONNECTED  &amp;&amp; wifiCNT &lt; 10) {
    delay(500);
    wifiCNT++;
    Serial.println("Connecting to WiFi..");
  }

  Serial.println("Connected to the WiFi network");


  client.setServer(mqttServer, mqttPort);
  while (!client.connected() &amp;&amp; mqttCNT &lt; 10) {
    mqttCNT++;
    Serial.println("Connecting to MQTT...");
    if (client.connect("windsensor", mqttUser, mqttPassword )) {
      Serial.println("connected");
    } else {
      Serial.print("failed with state ");
      Serial.print(client.state());
      delay(200);

    }
  }


  if (windspeed != -1) {
    boolean rc = client.publish("windsensor/windspeed", String(windspeed).c_str());
  }

  if (battery != -1) {
    client.publish("windsensor/battery", String(battery).c_str());
  }
  if (boe != -1) {
    client.publish("windsensor/boe", String(boe).c_str());

  }

  delay(100);
}
void loop() {
  Serial.begin(9600);

  delay(100);
  String a;
  int aktwindcount = -1;

  while (Serial.available()) {
    Serial.println("wait for data");
    a = Serial.readString(); // read the incoming data as
    Serial.println(a);
    if (a.indexOf("pulses") &gt; 0) {
      a.replace("\n", "");
      a.replace("⸮-", "");
      a = getValue(a, ':', 1);

      Serial.println(a);
      aktwindcount = a.toInt();
      break;
    }

    delay(100);

  }


  if (aktwindcount &gt; 150) {
    senddata(-1, aktwindcount, -1);
  }

  // summe windcount erhöhen
  sumwindcount =  aktwindcount + sumwindcount;

  // aller 12 durchgänge senden oder wenn starker wind
  if (reset_counter &gt;= 12) {
    int raw = analogRead(A0);
    int windavg = sumwindcount / reset_counter;
    volt = raw / 1023.0;
    volt = volt * 4.2;


    senddata(windavg, -1, volt);
    reset_counter = 0;
    sumwindcount = 0;

  }

  state.saveToRTC();
  delay(100);
  ESP.deepSleep(29e6); // 20e6 is 20 microseconds


}




</code></pre>
<p>Der Beitrag <a href="https://smartebude.de/diy-windsensor-mit-mqtt-mit-esp8266-fuer-iobroker/">DIY Windsensor mit MQTT mit Esp8266 für IObroker</a> erschien zuerst auf <a href="https://smartebude.de">Smartebude</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://smartebude.de/diy-windsensor-mit-mqtt-mit-esp8266-fuer-iobroker/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
