<?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>Node-RED Archive - I MAKE YOU INTELLIGENT</title>
	<atom:link href="https://www.imakeyouintelligent.com/category/internet-of-things-iot/node-red/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.imakeyouintelligent.com/category/internet-of-things-iot/node-red/</link>
	<description>Mach die Welt ein bisschen intelligenter</description>
	<lastBuildDate>Thu, 03 Nov 2022 19:58:03 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.imakeyouintelligent.com/wp-content/uploads/2018/01/cropped-square_v4-32x32.png</url>
	<title>Node-RED Archive - I MAKE YOU INTELLIGENT</title>
	<link>https://www.imakeyouintelligent.com/category/internet-of-things-iot/node-red/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Photovoltaik Monitoring &#124; Live Werte der PV Anlage mit Shelly 1PM monitoren</title>
		<link>https://www.imakeyouintelligent.com/photovoltaik-monitoring-live-werte-der-pv-anlage-mit-shelly-1pm/</link>
					<comments>https://www.imakeyouintelligent.com/photovoltaik-monitoring-live-werte-der-pv-anlage-mit-shelly-1pm/#comments</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Wed, 29 Jul 2020 08:20:33 +0000</pubDate>
				<category><![CDATA[IoT Hardware]]></category>
		<category><![CDATA[IoT Software]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Balkonkraftwerk]]></category>
		<category><![CDATA[BKW]]></category>
		<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[Ertrag]]></category>
		<category><![CDATA[Grafana]]></category>
		<category><![CDATA[Lametric]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[NodeRed]]></category>
		<category><![CDATA[Photovoltaik]]></category>
		<category><![CDATA[PV-Anlage]]></category>
		<category><![CDATA[Shelly]]></category>
		<category><![CDATA[Shelly 1PM]]></category>
		<category><![CDATA[Solar]]></category>
		<category><![CDATA[Watt]]></category>
		<guid isPermaLink="false">https://www.imakeyouintelligent.com/?p=238435</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/photovoltaik-monitoring-live-werte-der-pv-anlage-mit-shelly-1pm/">Photovoltaik Monitoring | Live Werte der PV Anlage mit Shelly 1PM monitoren</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><div class="et_pb_section et_pb_section_0 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Hier eine kurze und knappe Erklärung wie man den <a href="https://www.amazon.de/gp/product/B07QB2JBZC/ref=as_li_tl?ie=UTF8&amp;camp=1638&amp;creative=6742&amp;creativeASIN=B07QB2JBZC&amp;linkCode=as2&amp;tag=heydemar03-21&amp;linkId=3a5fc85269d5b45cad11b9ef9726c1f7">Shelly 1PM</a> dazu &#8222;zweckentfremden&#8220; kann seine PV-Anlage in Bezug auf die aktuelle Leistung zu monitoren. Da die Anzahl der sogenannten Balkonkraftwerke oder Gurilliar PV-Anlagen immer mehr zunimmt, sicherlich eine Spannende Geschichte.</p>
<p>Viele realisieren es mit den AVM DECT 200 oder <a href="https://amzn.to/3Uj2OYy">DECT 210</a> &#8211; hier bin ich aber nicht im Thema wie diese sich an NodeRed anflanschen lassen und ob sie überhaupt eine API haben. Daher anbei das Bsp. mit einem Shelly 1PM welchen man mit einem einfachen HTTP GET Flow abfragen kann:</p>
<p>http://&#8220;WEBGUI-USER&#8220;:&#8220;WEBGUI-KENNWORT&#8220;@&#8220;IP&#8220;/status</p>
<p>Die Antwort sieht dann wie folgt aus: </p>
<p>{&#8222;wifi_sta&#8220;:{&#8222;connected&#8220;:true,&#8220;ssid&#8220;:&#8220;SSID&#8220;,&#8220;ip&#8220;:&#8220;SHELLYIP&#8220;,&#8220;rssi&#8220;:-81},&#8220;cloud&#8220;:{&#8222;enabled&#8220;:true,&#8220;connected&#8220;:true},&#8220;mqtt&#8220;:{&#8222;connected&#8220;:false},&#8220;time&#8220;:&#8220;10:16&#8243;,&#8220;unixtime&#8220;:1596017798,&#8220;serial&#8220;:9213,&#8220;has_update&#8220;:false,&#8220;mac&#8220;:&#8220;MAC&#8220;,&#8220;relays&#8220;:[{&#8222;ison&#8220;:true,&#8220;has_timer&#8220;:false,&#8220;timer_started&#8220;:0,&#8220;timer_duration&#8220;:0,&#8220;timer_remaining&#8220;:0,&#8220;overpower&#8220;:false}],&#8220;meters&#8220;:[{&#8222;power&#8220;:349.23,&#8220;is_valid&#8220;:true,&#8220;timestamp&#8220;:1596017798,&#8220;counters&#8220;:[348.113,346.327,337.534],&#8220;total&#8220;:211701}],&#8220;inputs&#8220;:[{&#8222;input&#8220;:0,&#8220;event&#8220;:&#8220;&#8220;,&#8220;event_cnt&#8220;:0}],&#8220;ext_sensors&#8220;:{},&#8220;ext_temperature&#8220;:{},&#8220;ext_humidity&#8220;:{},&#8220;temperature&#8220;:47.52,&#8220;overtemperature&#8220;:false,&#8220;tmp&#8220;:{&#8222;tC&#8220;:47.52,&#8220;tF&#8220;:117.54,&#8220;is_valid&#8220;:true},&#8220;update&#8220;:{&#8222;status&#8220;:&#8220;idle&#8220;,&#8220;has_update&#8220;:false,&#8220;new_version&#8220;:&#8220;20200601-123334/v1.7.0@d7961837&#8243;,&#8220;old_version&#8220;:&#8220;20200601-123334/v1.7.0@d7961837&#8243;},&#8220;ram_total&#8220;:49920,&#8220;ram_free&#8220;:36516,&#8220;ram_lwm&#8220;:28552,&#8220;fs_size&#8220;:233681,&#8220;fs_free&#8220;:151855,&#8220;uptime&#8220;:148516}</p>
<p>Wir extrahieren hier den Wert: <strong>payload.meters[0].power</strong> und haben somit unseren Live-Ertrag der PV-Anlage. Mit diesem Wert kann man nun folgende Dinge anstellen: <br />&#8211; Daten aus NodeRed in eine DB schreiben und mit Grafana oder PRTG visualisieren<br />&#8211; Notifications schicken bei Überschreitung von definierten Schwellen<br />&#8211; Daten an eine LaMetric senden</p>
<p>Alternativ zu dem HTTP GET kann man die Daten sich auch vom Shelly via MQTT schicken lassen, Nachteil ist hier jedoch das man dann die Verbindung zur Shelly-Cloud kappen muss und diesen dann via App aus dem WAN nicht mehr steuern kann. <br />BTW: Besteht Interesse, dass wir einen MQTT-Broker für euch bereitstellen? Gerne Meinungen in die Kommentare. </p>
<p>Hier noch ein Anschlussplan (unter Ausschluss sämtlicher Haftungen und deren Richtigkeit) wie man die PV Anlage mit dem Shelly anschließen und monitoren kann. <br /><strong>Arbeiten am Stromnetz sollten ausschließlich<em> von</em> einem <em>Elektriker</em> oder unter Aufsicht erledigt werden.</strong></p>
<p><a href="https://www.imakeyouintelligent.com/wp-content/uploads/2020/07/Shelly_1PM_verkableung_photovoltaik_monitoring-pv.jpg"><img fetchpriority="high" decoding="async" class="alignnone size-large wp-image-238706" src="https://www.imakeyouintelligent.com/wp-content/uploads/2020/07/Shelly_1PM_verkableung_photovoltaik_monitoring-pv-1024x660.jpg" alt="" width="1024" height="660" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2020/07/Shelly_1PM_verkableung_photovoltaik_monitoring-pv-980x631.jpg 980w, https://www.imakeyouintelligent.com/wp-content/uploads/2020/07/Shelly_1PM_verkableung_photovoltaik_monitoring-pv-480x309.jpg 480w" sizes="(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw" /></a></p>
<p><strong>Einen sehr interessanten Leitfaden zum Thema Photovoltaik gibt es hier: </strong><br /><a href="https://www.digistore24.com/redir/320603/profhase/">Photovoltaik-Leitfaden &#8211; Ratgeber für Eigenheimbesitzer</a></p>
<ul class="list_element plus">
<li>Der Planungsleitfaden hilft die Photovoltaikanlage optimal zu planen</li>
<li>Spar Zeit und Geld bei der Recherche für deine Solaranlage</li>
<li>Aktuelle Informationen zu Stromspeicher</li>
<li>Worauf man bei der Planung achten sollte</li>
<li>Berechnungsbeispiele, Checklisten und hilfreiche Tipps</li>
<li>Infos zum Thema &#8222;Elektroauto mit Solarstrom laden&#8220; und &#8222;Heizen mit Solarstrom&#8220;</li>
</ul></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div><div class="et_pb_section et_pb_section_1 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_1">
				<div class="et_pb_column et_pb_column_1_2 et_pb_column_1  et_pb_css_mix_blend_mode_passthrough">
				
				
				
				
				<div class="et_pb_with_border et_pb_module et_pb_pricing_tables_0 et_animated et_hover_enabled et_pb_pricing clearfix et_pb_pricing_1 et_pb_no_featured_in_first_row et_pb_pricing_no_bullet">
				
				
				
				
				<div class="et_pb_pricing_table_wrap">
					<div class="et_pb_pricing_table et_pb_pricing_table_0">
				
				
				
				
				<div class="et_pb_pricing_heading">
					<h4 class="et_pb_pricing_title">Shelly 1PM 2er Set</h4>
					
				</div>
				<div class="et_pb_pricing_content_top">
					<span class="et_pb_et_price"></span>
				</div>
				<div class="et_pb_pricing_content">
					<ul class="et_pb_pricing"><li><span><p style="text-align: center;"><iframe style="width: 120px; height: 240px;" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=DE&amp;source=ac&amp;ref=tf_til&amp;ad_type=product_link&amp;tracking_id=heydemar03-21&amp;marketplace=amazon&amp;region=DE&amp;placement=B07RFMD3HV&amp;asins=B07RFMD3HV&amp;linkId=d6565103d5b6db59cbbf9e7af8f4d7a9&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></span></li><li><span></iframe></span></li></ul>
				</div>
				
			</div>
				</div>
			</div><div class="et_pb_with_border et_pb_module et_pb_pricing_tables_1 et_animated et_hover_enabled et_pb_pricing clearfix et_pb_pricing_1 et_pb_no_featured_in_first_row et_pb_pricing_no_bullet">
				
				
				
				
				<div class="et_pb_pricing_table_wrap">
					<div class="et_pb_pricing_table et_pb_pricing_table_1">
				
				
				<span class="et_pb_background_pattern"></span>
				<span class="et_pb_background_mask"></span>
				<div class="et_pb_pricing_heading">
					<h4 class="et_pb_pricing_title">AVM DECT 200 Indoor</h4>
					
				</div>
				<div class="et_pb_pricing_content_top">
					<span class="et_pb_et_price"></span>
				</div>
				<div class="et_pb_pricing_content">
					<ul class="et_pb_pricing"><li><span><p style="text-align: center;"><iframe style="width: 120px; height: 240px;" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=DE&amp;source=ac&amp;ref=tf_til&amp;ad_type=product_link&amp;tracking_id=heydemar03-21&amp;marketplace=amazon&amp;region=DE&amp;placement=B00AQ9E77M&amp;asins=B00AQ9E77M&amp;linkId=cd7c0182c37393533dad67005c719e93&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">&amp;amp;lt;br /&amp;amp;gt;</span></li><li><span></iframe></span></li></ul>
				</div>
				
			</div>
				</div>
			</div>
			</div><div class="et_pb_column et_pb_column_1_2 et_pb_column_2  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_with_border et_pb_module et_pb_pricing_tables_2 et_animated et_hover_enabled et_pb_pricing clearfix et_pb_pricing_1 et_pb_no_featured_in_first_row et_pb_pricing_no_bullet">
				
				
				
				
				<div class="et_pb_pricing_table_wrap">
					<div class="et_pb_pricing_table et_pb_pricing_table_2">
				
				
				
				
				<div class="et_pb_pricing_heading">
					<h4 class="et_pb_pricing_title">Shelly 1PM Solo</h4>
					
				</div>
				<div class="et_pb_pricing_content_top">
					<span class="et_pb_et_price"></span>
				</div>
				<div class="et_pb_pricing_content">
					<ul class="et_pb_pricing"><li><span><p style="text-align: center;"><iframe style="width: 120px; height: 240px;" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=DE&amp;source=ac&amp;ref=tf_til&amp;ad_type=product_link&amp;tracking_id=heydemar03-21&amp;marketplace=amazon&amp;region=DE&amp;placement=B07QB2JBZC&amp;asins=B07QB2JBZC&amp;linkId=4a9ad4a55aaec21b9a2da0ee59e50651&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></span></li><li><span></iframe></span></li></ul>
				</div>
				
			</div>
				</div>
			</div><div class="et_pb_with_border et_pb_module et_pb_pricing_tables_3 et_animated et_hover_enabled et_pb_pricing clearfix et_pb_pricing_1 et_pb_no_featured_in_first_row et_pb_pricing_no_bullet">
				
				
				
				
				<div class="et_pb_pricing_table_wrap">
					<div class="et_pb_pricing_table et_pb_pricing_table_3">
				
				
				<span class="et_pb_background_pattern"></span>
				<span class="et_pb_background_mask"></span>
				<div class="et_pb_pricing_heading">
					<h4 class="et_pb_pricing_title">AVM DECT 210 Outdoor</h4>
					
				</div>
				<div class="et_pb_pricing_content_top">
					<span class="et_pb_et_price"></span>
				</div>
				<div class="et_pb_pricing_content">
					<ul class="et_pb_pricing"><li><span><p style="text-align: center;"><iframe style="width: 120px; height: 240px;" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=DE&amp;source=ac&amp;ref=tf_til&amp;ad_type=product_link&amp;tracking_id=heydemar03-21&amp;marketplace=amazon&amp;region=DE&amp;placement=B01MRZ60F0&amp;asins=B01MRZ60F0&amp;linkId=7e3debc0eed8546562dd3e43181767fb&amp;show_border=false&amp;link_opens_in_new_window=false&amp;price_color=333333&amp;title_color=0066c0&amp;bg_color=ffffff" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">&amp;amp;lt;br /&amp;amp;gt;</span></li><li><span></iframe></span></li></ul>
				</div>
				
			</div>
				</div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div></p>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/photovoltaik-monitoring-live-werte-der-pv-anlage-mit-shelly-1pm/">Photovoltaik Monitoring | Live Werte der PV Anlage mit Shelly 1PM monitoren</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/photovoltaik-monitoring-live-werte-der-pv-anlage-mit-shelly-1pm/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>Kostenloses Wildcard SSL-Zertifikat für NodeRed und Grafana mit CertBot&#124;Letsencrypt</title>
		<link>https://www.imakeyouintelligent.com/kostenloses-wildcard-ssl-zertifikat-fuer-nodered-und-grafana-mit-certbotletsencrypt/</link>
					<comments>https://www.imakeyouintelligent.com/kostenloses-wildcard-ssl-zertifikat-fuer-nodered-und-grafana-mit-certbotletsencrypt/#respond</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Thu, 21 Mar 2019 12:43:58 +0000</pubDate>
				<category><![CDATA[Diverses]]></category>
		<category><![CDATA[Enterprise Solutions]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Certbot]]></category>
		<category><![CDATA[Grafana]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Kostenlos]]></category>
		<category><![CDATA[letsencrypt]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NodeRed]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[SSL-Zertifikat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Zertifikat]]></category>
		<guid isPermaLink="false">https://www.imakeyouintelligent.com/?p=4685</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/kostenloses-wildcard-ssl-zertifikat-fuer-nodered-und-grafana-mit-certbotletsencrypt/">Kostenloses Wildcard SSL-Zertifikat für NodeRed und Grafana mit CertBot|Letsencrypt</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_2 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_2">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_3  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_1  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Hier möchte ich kurz erklären wie man auf einen Linux-Server/Raspberry oder VPS ein kostenloses SSL-Zertifikat installiert und dieses für NodeRed und Grafana konfiguriert. </p>
<ul>
<li>sudo apt-get update</li>
<li>sudo apt-get upgrade</li>
<li>apt install certbot</li>
<li>sudo certbot certonly &#8211;manual &#8211;preferred-challenges dns &#8211;agree-tos &#8211;server https://acme-v02.api.letsencrypt.org/directory 
<ul>
<li>Nun müsst ihr noch eine valide Mailadresse angeben.</li>
<li>Nun noch die zu sichernde Domäne in meinem Fall *.imakeyouintelligent.co.</li>
</ul>
</li>
</ul>
<p>Ihr erhaltet nur eine Meldung &#8222;Please deploy a DNS TXT record under the name&#8220; diese Infos packt ihr an eure Domäne.</p>
<p><a href="https://www.imakeyouintelligent.com/wp-content/uploads/2019/03/SSL_Zertifikat_Adminansicht_Webhoster.jpg"><img decoding="async" class="alignnone size-full wp-image-4686" src="https://www.imakeyouintelligent.com/wp-content/uploads/2019/03/SSL_Zertifikat_Adminansicht_Webhoster.jpg" alt="" width="455" height="232" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2019/03/SSL_Zertifikat_Adminansicht_Webhoster.jpg 455w, https://www.imakeyouintelligent.com/wp-content/uploads/2019/03/SSL_Zertifikat_Adminansicht_Webhoster-300x153.jpg 300w" sizes="(max-width: 455px) 100vw, 455px" /></a></p>
<p>Wenn Ihr die Änderungen beim Hoster an der Domäne durchgeführt habt, bestätigt in eurem Terminal-Fenster mit Enter. Nun sollte es folgende Meldung geben im unteren Bereich findet Ihr den Pfad wo die Zertifikate abgelegt wurden:</p>
<p><em>Press Enter to Continue</em><br />Waiting for verification&#8230;<br />Cleaning up challenges</p>
<p>IMPORTANT NOTES:<br />&#8211; Congratulations! Your certificate and chain have been saved at:<br /><strong>/etc/letsencrypt/live/imakeyouintelligent.com/fullchain.pem</strong><br />Your key file has been saved at:<br /><strong>/etc/letsencrypt/live/imakeyouintelligent.com/privkey.pem </strong>Your cert will expire on 2019-06-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run &#8222;certbot renew&#8220;<br />&#8211; Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal.</p>
<p><strong>Nun binden wir das Zertifikat an NodeRed und Grafana. </strong><br />Für NodeRed fügt bitte entsprechend euere Config folgendes ein: In die Datei: nano node-red/settings.js</p>
<p>ACHTUNG PFAD ZUM ZERTIFIKAT ANPASSEN: </p>
<p>https: {<br />key: fs.readFileSync(&#8218;/root/zertifikate/privkey.pem&#8216;),<br />cert: fs.readFileSync(&#8218;/root/zertifikate/cert.pem&#8216;),<br />ca: fs.readFileSync(&#8218;/root/zertifikate/fullchain.pem&#8216;)<br />},<br /> requireHttps: true,</p>
<p>Und nun noch die Einbindung in Grafana:<br />Ruft hierzu die Datei: sudo nano /usr/share/grafana/conf/defaults.ini auf, in diese muss nun folgendes entsprechend euere Werte/Zertifikate.</p>
<p>################################## Server ##############################</p>
<p>[server]<br /># Protocol (http, https, socket)<br />protocol = https<br /># The ip address to bind to, empty will bind to all interfaces<br />http_addr =<br /># The http port to use<br />http_port = 443<br /># The public facing domain name used to access grafana from a browser<br />domain = <a href="http://imakeyouintelligent.com">imakeyouintelligent.com </a><br /># Redirect to correct domain if host header does not match domain<br /># Prevents DNS rebinding attacks<br />enforce_domain = false<br /># The full public facing url<br />root_url = %(protocol)s://%(domain)s:%(http_port)s/<br /># Log web requests<br />router_logging = false<br /># the path relative working path<br />static_root_path = public<br /># enable gzip<br />enable_gzip = true<br /># https certs &amp; key file<br />cert_file = /root/zertifikate/cert.pem<br />cert_key = /root/zertifikate/privkey.pem<br /># Unix socket path<br />socket = /tmp/grafana.sock</p>
<p>Im Anschluss solltet Ihr den Server einmal durchstarten, oder die einzelnen Services der Applikationen.</p>
</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/kostenloses-wildcard-ssl-zertifikat-fuer-nodered-und-grafana-mit-certbotletsencrypt/">Kostenloses Wildcard SSL-Zertifikat für NodeRed und Grafana mit CertBot|Letsencrypt</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/kostenloses-wildcard-ssl-zertifikat-fuer-nodered-und-grafana-mit-certbotletsencrypt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PRTG &#8211; Node-Red: Monitoren eines Freifunk Nodes/VPN-Offloader</title>
		<link>https://www.imakeyouintelligent.com/prtg-node-red-monitoren-eines-freifunk-nodes/</link>
					<comments>https://www.imakeyouintelligent.com/prtg-node-red-monitoren-eines-freifunk-nodes/#comments</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Fri, 15 Dec 2017 14:34:55 +0000</pubDate>
				<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[PRTG]]></category>
		<category><![CDATA[Freifunk]]></category>
		<category><![CDATA[Freifunk-Aachen]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Node-Red]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4280</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/prtg-node-red-monitoren-eines-freifunk-nodes/">PRTG &#8211; Node-Red: Monitoren eines Freifunk Nodes/VPN-Offloader</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_3 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_3">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_4  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_2  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Wer gerne über Presslers PRTG und einer Node-Red Instanz einen Freifunk-Knoten monitoren möchte kann dies über folgenden Flow bewerkstelligen:</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-22-28.jpg"><img decoding="async" class="alignnone wp-image-4281 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-22-28.jpg" alt="" width="765" height="250" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-22-28.jpg 765w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-22-28-600x196.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-22-28-300x98.jpg 300w" sizes="(max-width: 765px) 100vw, 765px" /></a></p>
<p>Wir fragen hier die <a href="https://data.aachen.freifunk.net/nodes.json">Freifunk-API</a> ab: <a href="https://data.aachen.freifunk.net/nodes.json">https://data.aachen.freifunk.net/nodes.json</a> in dieser finden wir folgenden Node den wir mit PRTG monitoren können:</p>
<p>&#8222;hostname&#8220;:&#8220;FFDN-I MAKE YOU INTELLIGENT.com&#8220;,&#8220;hardware&#8220;:{&#8222;model&#8220;:&#8220;TP-Link TL-WR841N/ND v7&#8243;,&#8220;nproc&#8220;:1}},&#8220;flags&#8220;:{&#8222;online&#8220;:true,&#8220;uplink&#8220;:true},&#8220;statistics&#8220;:{&#8222;uptime&#8220;:443638.06,&#8220;gateway&#8220;:&#8220;ac:c1:2d:05:fe:04&#8243;,&#8220;memory_usage&#8220;:0.8144738705565784,&#8220;rootfs_usage&#8220;:0.6786,&#8220;clients&#8220;:230,&#8220;loadavg&#8220;:0.27},&#8220;lastseen&#8220;:&#8220;2017-12-15T14:27:37.174Z&#8220;,&#8220;firstseen&#8220;:&#8220;2017-12-09T11:41:07.756Z&#8220;},{&#8222;nodeinfo&#8220;:{&#8222;software&#8220;:{&#8222;autoupdater&#8220;:{&#8222;branch&#8220;:&#8220;stable&#8220;,&#8220;enabled&#8220;:true},&#8220;batman-adv&#8220;:{&#8222;version&#8220;:&#8220;2013.4.0&#8243;,&#8220;compat&#8220;:14},&#8220;fastd&#8220;:{&#8222;version&#8220;:&#8220;v18&#8243;,&#8220;enabled&#8220;:true},&#8220;firmware&#8220;:{&#8222;base&#8220;:&#8220;gluon-v2016.2.7&#8243;,&#8220;release&#8220;:&#8220;2016.2.7-1-stable&#8220;},&#8220;status-page&#8220;:{&#8222;api&#8220;:1}},&#8220;network&#8220;:{&#8222;addresses&#8220;:[&#8222;fe80::219:99ff:febc:62d4&#8243;,&#8220;2a03:2260:114:ac01:219:99ff:febc:62d4&#8243;,&#8220;2a03:2260:114:d:219:99ff:febc:62d4&#8243;,&#8220;fdac::219:99ff:febc:62d4&#8243;],&#8220;mesh&#8220;:{&#8222;bat0&#8220;:{&#8222;interfaces&#8220;:{&#8222;tunnel&#8220;:[&#8222;4a:d7:43:f0:61:e7&#8243;],&#8220;other&#8220;:[&#8222;4a:d7:43:f0:61:e3&#8243;]}}},&#8220;mac&#8220;:&#8220;00:19:99:bc:62:d4&#8243;},&#8220;location&#8220;:{&#8222;latitude&#8220;:50.74856212,&#8220;longitude&#8220;:6.16377532},&#8220;system&#8220;:{&#8222;site_code&#8220;:&#8220;ffac&#8220;},&#8220;node_id&#8220;:&#8220;001999bc62d4&#8243;</p>
<p>In PRTG legen wir einen &#8222;<a href="https://www.paessler.com/manuals/ipcheck_server_monitor_de/advancedhttpsensor">Advanced-HTTP-Sensor</a>&#8220; an der unseren Flow über die Node-Red Instanz abfragt, grafisch sieht das ganze dann wie folgt aus:</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14.jpg"><img decoding="async" class="alignnone wp-image-4282 size-large" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-1024x414.jpg" alt="" width="1024" height="414" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-1024x414.jpg 1024w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-600x243.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-300x121.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-768x311.jpg 768w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14-1080x437.jpg 1080w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/12/15-12-_2017_15-23-14.jpg 1672w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>Wir ziehen aus der API alle für uns wichtigen Informationen, wie:</p>
<ul>
<li>Arbeitsspeicher</li>
<li>Verbundene Clients</li>
<li>Systemlast</li>
<li>Zuletzt gesehen</li>
</ul>
<p>[ratings id=&#8220;4280&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/prtg-node-red-monitoren-eines-freifunk-nodes/">PRTG &#8211; Node-Red: Monitoren eines Freifunk Nodes/VPN-Offloader</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/prtg-node-red-monitoren-eines-freifunk-nodes/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Node-Red: Flows stopped due to missing node types. Check logs for details</title>
		<link>https://www.imakeyouintelligent.com/node-red-flows-stopped-due-to-missing-node-types-check-logs-for-details/</link>
					<comments>https://www.imakeyouintelligent.com/node-red-flows-stopped-due-to-missing-node-types-check-logs-for-details/#respond</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Mon, 27 Nov 2017 11:59:21 +0000</pubDate>
				<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Flows stopped]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Node-Red]]></category>
		<category><![CDATA[Red]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4237</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-flows-stopped-due-to-missing-node-types-check-logs-for-details/">Node-Red: Flows stopped due to missing node types. Check logs for details</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_4 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_4">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_5  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_3  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Nach dem Updates eines Nodes, war meine gesamten Node-Red Flows leider nicht mehr funktional, die GUI begrüßte mich mit: <span class="js-issue-title">Flows stopped due to missing node types. Check logs for details. Ggfs. kann es auch zu folgender Fehlermeldung kommen: Import of unrecognized types and &#8220; node not deployed&#8220; errors</span></p>
<p>Die Logs von Node-Red gaben mir folgende Information aus:</p>
<p>27 Nov 12:30:06 &#8211; [info] Server now running at <a href="http://127.0.0.1:1880/">http://127.0.0.1:1880/</a><br />
27 Nov 12:30:07 &#8211; [info] Waiting for missing types to be registered:<br />
27 Nov 12:30:07 &#8211; [info]  &#8211; homematic-config</p>
<p>Nach viel googeln war die Lösung doch relativ einfach:</p>
<ol>
<li>Klick auf das Hamburger-Symbol oben rechts in der Node-Red GUI</li>
<li>Configuration Nodes</li>
<li>Im unteren Bereich findet man eine Sparte &#8222;Unknown&#8220;</li>
</ol>
<p>Dort sollte man nun einen Node finden den man doppelt anklicken kann und dort dann oben rechts löschen kann. Im Anschluss über das Terminal &#8211; Node-red-stop und Node-red-start.</p>
<p>[ratings id=&#8220;4237&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-flows-stopped-due-to-missing-node-types-check-logs-for-details/">Node-Red: Flows stopped due to missing node types. Check logs for details</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/node-red-flows-stopped-due-to-missing-node-types-check-logs-for-details/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Node-Red: Nicht HomeKit zertifizierte Lampen an HomeKit anbinden via Hue Teil1</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/</link>
					<comments>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comments</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Sat, 25 Nov 2017 13:24:58 +0000</pubDate>
				<category><![CDATA[Apple Home-Kit]]></category>
		<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Philips Hue]]></category>
		<category><![CDATA[Smart-Home Systeme]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[Converter]]></category>
		<category><![CDATA[HomeKit]]></category>
		<category><![CDATA[HSL]]></category>
		<category><![CDATA[Hue]]></category>
		<category><![CDATA[Innr]]></category>
		<category><![CDATA[Lightify]]></category>
		<category><![CDATA[Node-Red]]></category>
		<category><![CDATA[Osram]]></category>
		<category><![CDATA[Philips]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[Umrechner]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/">Node-Red: Nicht HomeKit zertifizierte Lampen an HomeKit anbinden via Hue Teil1</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_5 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_5">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_6  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_4  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>In Teil 1 möchte ich erklären wie, wir eine <strong>nicht</strong> Apple HomeKit zertifizierte Lampe die wir in unserer Hue App haben via Node-Red im Apple HomeKit anbinden. Dies kann z.b eine <a href="http://www.ikea.com/de/de/catalog/categories/departments/lighting/smart_lighting/">IKEA Tradfri,</a>  <a href="https://www.innrlighting.com/de/home">Innr</a> oder <a href="https://www.osram.de/cb/lightify/lightify-home/index.jsp">OSRAM Lightify</a> sein. Diese Lampen lassen sich alle an das Philips Hue System binden &#8211; jedoch fehlt dann die Integration ins Apple HomeKit.</p>
<p>Ich werde in Teil 1 erst einmal nur auf den Weg eingehen die Lampe im Apple HomeKit zu sehen und dass sie die Änderungen aus der Philips Hue App bemerkt und Ihren Status dahingehend ändert.</p>
<p>Die Hürde, die wir hier haben ist die Umrechnung der Licht/Farbwerte aus der Philips Hue App ins Apple HomeKit. Wir müssen als <a href="https://de.wikipedia.org/wiki/RGB-Farbraum">RGB</a> welche uns die HUE App liefert in das von Apple geforderte Format <a href="https://de.wikipedia.org/wiki/HSV-Farbraum">HSL</a> umrechnen.</p>
<p>Dies habe ich mit einer Funktionsnode und der folgenden Formel erledigt:</p>
<p><div class='et-box et-shadow'>
					<div class='et-box-content'>/** * Converts an RGB color value to HSL. Conversion formula * adapted from http://en.wikipedia.org/wiki/HSL_color_space. * Assumes r, g, and b are contained in the set [0, 255] and * returns h, s, and l in the set [0, 1]. * * @param {number} r The red color value * @param {number} g The green color value * @param {number} b The blue color value * @return {Array} The HSL representation */ function rgbToHsl(r, g, b){ r /= 255, g /= 255, b /= 255; var max = Math.max(r, g, b), min = Math.min(r, g, b); var h, s, l = (max + min) / 2; if(max == min){ h = s = 0; // achromatic }else{ var d = max &#8211; min; s = l &gt; 0.5 ? d / (2 &#8211; max &#8211; min) : d / (max + min); switch(max){ case r: h = (g &#8211; b) / d + (g &lt; b ? 6 : 0); break; case g: h = (b &#8211; r) / d + 2; break; case b: h = (r &#8211; g) / d + 4; break; } h /= 6; } return [h, s, l];</div></div></p>
<p>Zu sehen hier ist der fertige Flow in Node-Red:</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49.jpg"><img decoding="async" class="alignnone wp-image-4222 size-large" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-1024x307.jpg" alt="" width="1024" height="307" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-1024x307.jpg 1024w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-600x180.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-300x90.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-768x231.jpg 768w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49-1080x324.jpg 1080w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-25_14-11-49.jpg 1096w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>In meiner Beschreibung arbeite ich mit einer Innr, dies spielt jedoch keine Rolle beim anlegen des Flows. Nach erfolgreichem hinzufügen der in Node-Red neu angelegten Lampe wird diese im Apple HomeKit wie folgt angezeigt</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212.jpg"><img decoding="async" class="alignnone wp-image-4226 size-medium" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-139x300.jpg" alt="" width="139" height="300" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-139x300.jpg 139w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-600x1299.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-768x1663.jpg 768w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-473x1024.jpg 473w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212-1080x2339.jpg 1080w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0212.jpg 1125w" sizes="(max-width: 139px) 100vw, 139px" /></a>    <a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211.jpg"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-4227" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-139x300.jpg" alt="" width="139" height="300" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-139x300.jpg 139w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-600x1299.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-768x1663.jpg 768w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-473x1024.jpg 473w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211-1080x2339.jpg 1080w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/IMG_0211.jpg 1125w" sizes="(max-width: 139px) 100vw, 139px" /></a></p>
<p>Mit diesem Flow ist es nun möglich die Änderungen der Hue-Lampe im AppleHomeKit zu sehen. Der komplette Flow zum importieren:</p>
<p><div class='et-box et-shadow'>
					<div class='et-box-content'>[{&#8222;id&#8220;:&#8220;8f898b4.d25a778&#8243;,&#8220;type&#8220;:&#8220;debug&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;&#8220;,&#8220;active&#8220;:true,&#8220;console&#8220;:&#8220;false&#8220;,&#8220;complete&#8220;:&#8220;true&#8220;,&#8220;x&#8220;:990,&#8220;y&#8220;:1020,&#8220;wires&#8220;:[]},{&#8222;id&#8220;:&#8220;8ae927b8.6131b8&#8243;,&#8220;type&#8220;:&#8220;hue-light&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Lampe Kleiderschrank&#8220;,&#8220;bridge&#8220;:&#8220;7bbf47a6.f94908&#8243;,&#8220;lightid&#8220;:&#8220;10&#8243;,&#8220;x&#8220;:340,&#8220;y&#8220;:780,&#8220;wires&#8220;:[[&#8222;63259b2b.c68274&#8220;]]},{&#8222;id&#8220;:&#8220;79edc8eb.e3258&#8243;,&#8220;type&#8220;:&#8220;inject&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Ausschalten&#8220;,&#8220;topic&#8220;:&#8220;&#8220;,&#8220;payload&#8220;:&#8220;false&#8220;,&#8220;payloadType&#8220;:&#8220;bool&#8220;,&#8220;repeat&#8220;:&#8220;&#8220;,&#8220;crontab&#8220;:&#8220;&#8220;,&#8220;once&#8220;:false,&#8220;x&#8220;:130,&#8220;y&#8220;:940,&#8220;wires&#8220;:[[&#8222;8ae927b8.6131b8&#8220;]]},{&#8222;id&#8220;:&#8220;4c4c2cdc.1b76c4&#8243;,&#8220;type&#8220;:&#8220;inject&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Einschalten&#8220;,&#8220;topic&#8220;:&#8220;&#8220;,&#8220;payload&#8220;:&#8220;true&#8220;,&#8220;payloadType&#8220;:&#8220;bool&#8220;,&#8220;repeat&#8220;:&#8220;&#8220;,&#8220;crontab&#8220;:&#8220;&#8220;,&#8220;once&#8220;:false,&#8220;x&#8220;:130,&#8220;y&#8220;:900,&#8220;wires&#8220;:[[&#8222;8ae927b8.6131b8&#8220;]]},{&#8222;id&#8220;:&#8220;1ab1f8f2.ce461f&#8220;,&#8220;type&#8220;:&#8220;function&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Rot&#8220;,&#8220;func&#8220;:&#8220;msg.payload={\n\&#8220;on\&#8220;:[true],\n\&#8220;transitiontime\&#8220;:[5],\n\&#8220;bri\&#8220;:[100],\n\&#8220;rgb\&#8220;:[255,0,0]\n}\nreturn msg;\n&#8220;,&#8220;outputs&#8220;:1,&#8220;noerr&#8220;:0,&#8220;x&#8220;:270,&#8220;y&#8220;:1000,&#8220;wires&#8220;:[[&#8222;8ae927b8.6131b8&#8220;]]},{&#8222;id&#8220;:&#8220;8d08fc80.634d38&#8243;,&#8220;type&#8220;:&#8220;inject&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;&#8220;,&#8220;topic&#8220;:&#8220;&#8220;,&#8220;payload&#8220;:&#8220;&#8220;,&#8220;payloadType&#8220;:&#8220;date&#8220;,&#8220;repeat&#8220;:&#8220;&#8220;,&#8220;crontab&#8220;:&#8220;&#8220;,&#8220;once&#8220;:false,&#8220;x&#8220;:120,&#8220;y&#8220;:1000,&#8220;wires&#8220;:[[&#8222;1ab1f8f2.ce461f&#8220;]]},{&#8222;id&#8220;:&#8220;68ad4cf8.166f44&#8243;,&#8220;type&#8220;:&#8220;function&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Grün&#8220;,&#8220;func&#8220;:&#8220;msg.payload={\n\&#8220;on\&#8220;:[true],\n\&#8220;transitiontime\&#8220;:[5],\n\&#8220;bri\&#8220;:[100],\n\&#8220;rgb\&#8220;:[0,255,0]\n}\nreturn msg;\n&#8220;,&#8220;outputs&#8220;:1,&#8220;noerr&#8220;:0,&#8220;x&#8220;:270,&#8220;y&#8220;:1040,&#8220;wires&#8220;:[[&#8222;8ae927b8.6131b8&#8220;]]},{&#8222;id&#8220;:&#8220;9b1304da.36eff&#8220;,&#8220;type&#8220;:&#8220;inject&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;&#8220;,&#8220;topic&#8220;:&#8220;&#8220;,&#8220;payload&#8220;:&#8220;&#8220;,&#8220;payloadType&#8220;:&#8220;date&#8220;,&#8220;repeat&#8220;:&#8220;&#8220;,&#8220;crontab&#8220;:&#8220;&#8220;,&#8220;once&#8220;:false,&#8220;x&#8220;:120,&#8220;y&#8220;:1040,&#8220;wires&#8220;:[[&#8222;68ad4cf8.166f44&#8220;]]},{&#8222;id&#8220;:&#8220;c5bf1afd.52427&#8243;,&#8220;type&#8220;:&#8220;homekit-service&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;accessory&#8220;:&#8220;299f9416.0ec254&#8243;,&#8220;name&#8220;:&#8220;&#8220;,&#8220;serviceName&#8220;:&#8220;Lightbulb&#8220;,&#8220;x&#8220;:680,&#8220;y&#8220;:780,&#8220;wires&#8220;:[[&#8222;15f5e4fa.608d6b&#8220;]]},{&#8222;id&#8220;:&#8220;63259b2b.c68274&#8243;,&#8220;type&#8220;:&#8220;function&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Schnitstelle&#8220;,&#8220;func&#8220;:&#8220;var ausgabe = {};\n\nausgabe[\&#8220;Brightness\&#8220;] = msg.payload.brightness;\nausgabe[\&#8220;On\&#8220;] = msg.payload.on;\n\nausgabe[\&#8220;Hue\&#8220;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[0]\nausgabe[\&#8220;Saturation\&#8220;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[1]\nausgabe[\&#8220;ColorTemperature\&#8220;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[2]\n\nmsg.payload = ausgabe;\ndelete msg.info;\nreturn msg;\n\n\n\n\n\n\n\n\n/**\n * Converts an RGB color value to HSL. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes r, g, and b are contained in the set [0, 255] and\n * returns h, s, and l in the set [0, 1].\n *\n * @param {number} r The red color value\n * @param {number} g The green color value\n * @param {number} b The blue color value\n * @return {Array} The HSL representation\n */\nfunction rgbToHsl(r, g, b){\n r /= 255, g /= 255, b /= 255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b);\n var h, s, l = (max + min) / 2;\n\n if(max == min){\n h = s = 0; // achromatic\n }else{\n var d = max &#8211; min;\n s = l &gt; 0.5 ? d / (2 &#8211; max &#8211; min) : d / (max + min);\n switch(max){\n case r: h = (g &#8211; b) / d + (g &lt; b ? 6 : 0); break;\n case g: h = (b &#8211; r) / d + 2; break;\n case b: h = (r &#8211; g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [h, s, l];\n}&#8220;,&#8220;outputs&#8220;:1,&#8220;noerr&#8220;:0,&#8220;x&#8220;:530,&#8220;y&#8220;:780,&#8220;wires&#8220;:[[&#8222;c5bf1afd.52427&#8220;]]},{&#8222;id&#8220;:&#8220;15f5e4fa.608d6b&#8220;,&#8220;type&#8220;:&#8220;function&#8220;,&#8220;z&#8220;:&#8220;27ae8d45.93d07a&#8220;,&#8220;name&#8220;:&#8220;Schnitstelle&#8220;,&#8220;func&#8220;:&#8220;var ausgabe = {};\nausgabe[\&#8220;rgb\&#8220;] = {};\n\nausgabe[\&#8220;brightness\&#8220;] = msg.payload.Brightness;\nausgabe[\&#8220;on\&#8220;] = msg.payload.On;\n\nausgabe[\&#8220;rgb\&#8220;][0] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[0]\nausgabe[\&#8220;rgb\&#8220;][1] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[1]\nausgabe[\&#8220;rgb\&#8220;][2] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[2]\n\nmsg.payload = ausgabe;\ndelete msg.hab;\nreturn msg;\n\n\n\n\n\n/**\n * Converts an HSL color value to RGB. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes h, s, and l are contained in the set [0, 1] and\n * returns r, g, and b in the set [0, 255].\n *\n * @param {number} h The hue\n * @param {number} s The saturation\n * @param {number} l The lightness\n * @return {Array} The RGB representation\n */\nfunction hslToRgb(h, s, l){\n var r, g, b;\n\n if(s == 0){\n r = g = b = l; // achromatic\n }else{\n var hue2rgb = function hue2rgb(p, q, t){\n if(t &lt; 0) t += 1;\n if(t &gt; 1) t -= 1;\n if(t &lt; 1/6) return p + (q &#8211; p) * 6 * t;\n if(t &lt; 1/2) return q;\n if(t &lt; 2/3) return p + (q &#8211; p) * (2/3 &#8211; t) * 6;\n return p;\n }\n\n var q = l &lt; 0.5 ? l * (1 + s) : l + s &#8211; l * s;\n var p = 2 * l &#8211; q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h &#8211; 1/3);\n }\n\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n}&#8220;,&#8220;outputs&#8220;:1,&#8220;noerr&#8220;:0,&#8220;x&#8220;:830,&#8220;y&#8220;:780,&#8220;wires&#8220;:[[&#8222;8f898b4.d25a778&#8220;]]},{&#8222;id&#8220;:&#8220;7bbf47a6.f94908&#8243;,&#8220;type&#8220;:&#8220;hue-bridge&#8220;,&#8220;z&#8220;:&#8220;&#8220;,&#8220;name&#8220;:&#8220;Philips hue 2.OG&#8220;,&#8220;bridge&#8220;:&#8220;192.168.178.82&#8243;,&#8220;key&#8220;:&#8220;1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO&#8220;,&#8220;interval&#8220;:&#8220;3000&#8243;},{&#8222;id&#8220;:&#8220;299f9416.0ec254&#8243;,&#8220;type&#8220;:&#8220;homekit-accessory&#8220;,&#8220;z&#8220;:&#8220;&#8220;,&#8220;accessoryName&#8220;:&#8220;HueTest&#8220;,&#8220;pinCode&#8220;:&#8220;111-11-111&#8243;,&#8220;port&#8220;:&#8220;&#8220;,&#8220;manufacturer&#8220;:&#8220;Default Manufacturer&#8220;,&#8220;model&#8220;:&#8220;Default Model&#8220;,&#8220;serialNo&#8220;:&#8220;Default Serial Number&#8220;,&#8220;accessoryType&#8220;:&#8220;5&#8243;}]</div></div></p>
<p>[ratings id=&#8220;4221&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/">Node-Red: Nicht HomeKit zertifizierte Lampen an HomeKit anbinden via Hue Teil1</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>Node-Red: Tierheim monitoren nach neuen Tieren inkl. Beachrichtigung via Pushover</title>
		<link>https://www.imakeyouintelligent.com/node-red-tierheim-monitoren-nach-neuen-tieren/</link>
					<comments>https://www.imakeyouintelligent.com/node-red-tierheim-monitoren-nach-neuen-tieren/#respond</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Sat, 18 Nov 2017 17:30:37 +0000</pubDate>
				<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4211</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-tierheim-monitoren-nach-neuen-tieren/">Node-Red: Tierheim monitoren nach neuen Tieren inkl. Beachrichtigung via Pushover</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_6 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_6">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_7  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_5  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Heute möchte ich einmal um eine etwas andere Art Node-Red zu nutzen berichten, aus gegebenen Anlass habe ich einen Flow geschrieben um das <a href="http://www.tierheim-aachen.de">Tierheim Aachen</a> zu monitoren.<br />
Ich war es leit täglich immer aktiv zu werden und zu schauen ob es vielleicht eine neue für mich interessante Katze in der Vermittlung gibt, oder nicht.<br />
Somit haben ich einen Flow entwickelt, mit dem es möglich ist in meinem Beispiel die Website des <a href="http://www.tierheim-aachen.de">Tierheim Aachen</a> abzufragen nach neuen Katzen. Die Benachrichtigung über neue oder vermittelte Katzen realisiere ich mit <a href="https://pushover.net">Pushover.</a></p>
<p>Die Website des <a href="http://www.tierheim-aachen.de/index.php/tiervermittlung/katzen">Tierheim Aachen</a> hat es mir zum Glück relativ einfach gemacht, alles was ich abfragen muss, ist:<br />
<em>&lt;p class=&#8220;animal_count&#8220;&gt;Derzeit in der Vermittlung: 58&lt;/p&gt;</em></p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4212 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23.jpg" alt="" width="640" height="480" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23.jpg 640w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23-600x450.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23-300x225.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/11/2017-11-18_18-18-23-510x382.jpg 510w" sizes="(max-width: 640px) 100vw, 640px" /></a></p>
<p>Anbei der komplette Flow ohne Pushover:</p>
<p>[<br />
{<br />
&#8222;id&#8220;: &#8222;e21816dc.ba4678&#8220;,<br />
&#8222;type&#8220;: &#8222;html&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;tag&#8220;: &#8222;#content &gt; p.animal_count&#8220;,<br />
&#8222;ret&#8220;: &#8222;html&#8220;,<br />
&#8222;as&#8220;: &#8222;single&#8220;,<br />
&#8222;x&#8220;: 180,<br />
&#8222;y&#8220;: 1000,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;e099e822.96bcb&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;93a68d99.fa8c8&#8220;,<br />
&#8222;type&#8220;: &#8222;http request&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;www.tierheim-aachen.de&#8220;,<br />
&#8222;method&#8220;: &#8222;GET&#8220;,<br />
&#8222;ret&#8220;: &#8222;txt&#8220;,<br />
&#8222;url&#8220;: &#8222;http://www.tierheim-aachen.de/index.php/tiervermittlung/katzen&#8220;,<br />
&#8222;tls&#8220;: &#8222;&#8220;,<br />
&#8222;x&#8220;: 170,<br />
&#8222;y&#8220;: 940,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;e21816dc.ba4678&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;515a8671.bf41e&#8220;,<br />
&#8222;type&#8220;: &#8222;inject&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;topic&#8220;: &#8222;&#8220;,<br />
&#8222;payload&#8220;: &#8222;&#8220;,<br />
&#8222;payloadType&#8220;: &#8222;date&#8220;,<br />
&#8222;repeat&#8220;: &#8222;3600&#8220;,<br />
&#8222;crontab&#8220;: &#8222;&#8220;,<br />
&#8222;once&#8220;: false,<br />
&#8222;x&#8220;: 130,<br />
&#8222;y&#8220;: 880,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;93a68d99.fa8c8&#8220;,<br />
&#8222;5ba99467.a97e04&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;e099e822.96bcb&#8220;,<br />
&#8222;type&#8220;: &#8222;change&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;change&#8220;,<br />
&#8222;p&#8220;: &#8222;payload[0]&#8220;,<br />
&#8222;pt&#8220;: &#8222;msg&#8220;,<br />
&#8222;from&#8220;: &#8222;Derzeit in der Vermittlung: &#8222;,<br />
&#8222;fromt&#8220;: &#8222;str&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;tot&#8220;: &#8222;str&#8220;<br />
},<br />
{<br />
&#8222;t&#8220;: &#8222;set&#8220;,<br />
&#8222;p&#8220;: &#8222;payload&#8220;,<br />
&#8222;pt&#8220;: &#8222;msg&#8220;,<br />
&#8222;to&#8220;: &#8222;payload[0]&#8220;,<br />
&#8222;tot&#8220;: &#8222;msg&#8220;<br />
}<br />
],<br />
&#8222;action&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;&#8220;,<br />
&#8222;from&#8220;: &#8222;&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;reg&#8220;: false,<br />
&#8222;x&#8220;: 140,<br />
&#8222;y&#8220;: 1060,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;dd048ecb.6a1d&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;dd048ecb.6a1d&#8220;,<br />
&#8222;type&#8220;: &#8222;function&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;parseInt&#8220;,<br />
&#8222;func&#8220;: &#8222;let muschis = parseInt(msg.payload);\nreturn {\&#8220;payload\&#8220;:muschis};&#8220;,<br />
&#8222;outputs&#8220;: 1,<br />
&#8222;noerr&#8220;: 0,<br />
&#8222;x&#8220;: 120,<br />
&#8222;y&#8220;: 1120,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;8cec2f74.ab5ca8&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;8f996c89.f4578&#8220;,<br />
&#8222;type&#8220;: &#8222;change&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;set&#8220;,<br />
&#8222;p&#8220;: &#8222;muschis&#8220;,<br />
&#8222;pt&#8220;: &#8222;global&#8220;,<br />
&#8222;to&#8220;: &#8222;payload&#8220;,<br />
&#8222;tot&#8220;: &#8222;msg&#8220;<br />
}<br />
],<br />
&#8222;action&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;&#8220;,<br />
&#8222;from&#8220;: &#8222;&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;reg&#8220;: false,<br />
&#8222;x&#8220;: 310,<br />
&#8222;y&#8220;: 1180,<br />
&#8222;wires&#8220;: [<br />
[]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;8cec2f74.ab5ca8&#8220;,<br />
&#8222;type&#8220;: &#8222;switch&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;payload&#8220;,<br />
&#8222;propertyType&#8220;: &#8222;msg&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;gt&#8220;,<br />
&#8222;v&#8220;: &#8222;muschis&#8220;,<br />
&#8222;vt&#8220;: &#8222;global&#8220;<br />
},<br />
{<br />
&#8222;t&#8220;: &#8222;lt&#8220;,<br />
&#8222;v&#8220;: &#8222;muschis&#8220;,<br />
&#8222;vt&#8220;: &#8222;global&#8220;<br />
},<br />
{<br />
&#8222;t&#8220;: &#8222;eq&#8220;,<br />
&#8222;v&#8220;: &#8222;muschis&#8220;,<br />
&#8222;vt&#8220;: &#8222;global&#8220;<br />
}<br />
],<br />
&#8222;checkall&#8220;: &#8222;true&#8220;,<br />
&#8222;outputs&#8220;: 3,<br />
&#8222;x&#8220;: 110,<br />
&#8222;y&#8220;: 1180,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;8f996c89.f4578&#8220;,<br />
&#8222;936c307d.3c526&#8220;<br />
],<br />
[<br />
&#8222;8f996c89.f4578&#8220;,<br />
&#8222;5addf659.627378&#8220;<br />
],<br />
[]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;5ba99467.a97e04&#8220;,<br />
&#8222;type&#8220;: &#8222;switch&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;muschis&#8220;,<br />
&#8222;propertyType&#8220;: &#8222;global&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;null&#8220;<br />
}<br />
],<br />
&#8222;checkall&#8220;: &#8222;true&#8220;,<br />
&#8222;outputs&#8220;: 1,<br />
&#8222;x&#8220;: 290,<br />
&#8222;y&#8220;: 880,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;882c3f88.5e1648&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;882c3f88.5e1648&#8220;,<br />
&#8222;type&#8220;: &#8222;change&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;set&#8220;,<br />
&#8222;p&#8220;: &#8222;muschis&#8220;,<br />
&#8222;pt&#8220;: &#8222;global&#8220;,<br />
&#8222;to&#8220;: &#8222;0&#8220;,<br />
&#8222;tot&#8220;: &#8222;num&#8220;<br />
}<br />
],<br />
&#8222;action&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;&#8220;,<br />
&#8222;from&#8220;: &#8222;&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;reg&#8220;: false,<br />
&#8222;x&#8220;: 450,<br />
&#8222;y&#8220;: 880,<br />
&#8222;wires&#8220;: [<br />
[]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;936c307d.3c526&#8220;,<br />
&#8222;type&#8220;: &#8222;change&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;Eine neue Katze&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;set&#8220;,<br />
&#8222;p&#8220;: &#8222;payload&#8220;,<br />
&#8222;pt&#8220;: &#8222;msg&#8220;,<br />
&#8222;to&#8220;: &#8222;Eine neue Katze ist verfügbar im Tierheim AC&#8220;,<br />
&#8222;tot&#8220;: &#8222;str&#8220;<br />
}<br />
],<br />
&#8222;action&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;&#8220;,<br />
&#8222;from&#8220;: &#8222;&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;reg&#8220;: false,<br />
&#8222;x&#8220;: 300,<br />
&#8222;y&#8220;: 1140,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;ee585fa2.526b7&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;5addf659.627378&#8220;,<br />
&#8222;type&#8220;: &#8222;change&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;Eine vermittelte Katze&#8220;,<br />
&#8222;rules&#8220;: [<br />
{<br />
&#8222;t&#8220;: &#8222;set&#8220;,<br />
&#8222;p&#8220;: &#8222;payload&#8220;,<br />
&#8222;pt&#8220;: &#8222;msg&#8220;,<br />
&#8222;to&#8220;: &#8222;Eine Katze wurde vermittelt im Tierheim AC&#8220;,<br />
&#8222;tot&#8220;: &#8222;str&#8220;<br />
}<br />
],<br />
&#8222;action&#8220;: &#8222;&#8220;,<br />
&#8222;property&#8220;: &#8222;&#8220;,<br />
&#8222;from&#8220;: &#8222;&#8220;,<br />
&#8222;to&#8220;: &#8222;&#8220;,<br />
&#8222;reg&#8220;: false,<br />
&#8222;x&#8220;: 320,<br />
&#8222;y&#8220;: 1220,<br />
&#8222;wires&#8220;: [<br />
[<br />
&#8222;ee585fa2.526b7&#8220;<br />
]<br />
]<br />
},<br />
{<br />
&#8222;id&#8220;: &#8222;879d24b4.736fc8&#8220;,<br />
&#8222;type&#8220;: &#8222;comment&#8220;,<br />
&#8222;z&#8220;: &#8222;919d308.f45f45&#8220;,<br />
&#8222;name&#8220;: &#8222;Check der Tierheim AC Website nach neuen Katzen&#8220;,<br />
&#8222;info&#8220;: &#8222;&#8220;,<br />
&#8222;x&#8220;: 210,<br />
&#8222;y&#8220;: 820,<br />
&#8222;wires&#8220;: []<br />
}<br />
]</p>
<p>&nbsp;</p>
<p>[ratings id=&#8220;4211&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-tierheim-monitoren-nach-neuen-tieren/">Node-Red: Tierheim monitoren nach neuen Tieren inkl. Beachrichtigung via Pushover</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/node-red-tierheim-monitoren-nach-neuen-tieren/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Amazon Alexa: Jedes Gerät mit Alexa und Node-Red steuern</title>
		<link>https://www.imakeyouintelligent.com/amazon-alexa-jedes-geraet-mit-alexa-und-node-red-steuern/</link>
					<comments>https://www.imakeyouintelligent.com/amazon-alexa-jedes-geraet-mit-alexa-und-node-red-steuern/#comments</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Tue, 24 Oct 2017 18:38:58 +0000</pubDate>
				<category><![CDATA[Amazon Alexa]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[433Mhz]]></category>
		<category><![CDATA[Alexa]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Node-Red]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4181</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/amazon-alexa-jedes-geraet-mit-alexa-und-node-red-steuern/">Amazon Alexa: Jedes Gerät mit Alexa und Node-Red steuern</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_7 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_7">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_8  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_6  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Wie wäre es eigentlich, &#8222;jedes&#8220; Gerät mit Amazon Alexa steuern zu können ohne neue Smart-Hardware kaufen zu müssen? Oder noch besser &#8222;jedes&#8220; Gerät mit Amazon Alexa und Apple HomeKit steuern ohne dass ein Gerät überhaupt das Siegel &#8222;Works with Apple HomeKit trägt.</p>
<p>Diesen Wunsch kann Node-Red erfüllen, ich möchte in diesem Artikel kurz darauf eingehen:</p>
<p>Folgender Node-Red Flow zeigt die Steuerung des LED-Ambilights in einer Küche, es sind noch ein paar Nodes im Flow die man nicht benötig wie ein Amazon Dash Button oder halt die Apple Homi-Kit Integration auf die ich jetzt nicht eingehe. Die RGB-Steuerung die Alexa ebenfalls beherrscht möchte ich hier noch nicht erkläre. Hier wird lediglich das ON/OFF beschrieben. Die verbaute Hardware setzt sich wie folgt zusammen:</p>
<ul>
<li>5m China-LED-Stripe inkl. Controller mit Fernbedienung</li>
<li>433Mhz Steckdose &#8211;&gt; <a href="http://amzn.to/2z5O7mb">http://amzn.to/2z5O7mb</a></li>
<li>433Mhz Sender am RaspberryPi &#8211;&gt; <a href="http://amzn.to/2yHwto7">http://amzn.to/2yHwto7</a></li>
<li>RaspberryPi mit Node-Red Installation &#8211;&gt; <a href="http://amzn.to/2y1Q9nb">http://amzn.to/2y1Q9nb</a></li>
</ul>
<p>Voraussetzung ist eine lauffähige Node-Red Installation und einem 433Mhz Sender/Empfänger.</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4182 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33.jpg" alt="" width="979" height="259" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33.jpg 979w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33-600x159.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33-300x79.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-18-33-768x203.jpg 768w" sizes="(max-width: 979px) 100vw, 979px" /></a></p>
<p>Interessant ist hier nun der Alexa-Node <a href="https://flows.nodered.org/node/node-red-contrib-alexa-local">node-red-contrib-alexa-local</a> mit diesem gaukeln wir Alexa vor es gäbe ein neues Alex-fähiges Smart Gerät im Netzwerk. Die Konfiguration ist simpel &#8211; Name vergeben und fast fertig.</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-27-12.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4183 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-27-12.jpg" alt="" width="512" height="385" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-27-12.jpg 512w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-27-12-300x226.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-27-12-510x382.jpg 510w" sizes="(max-width: 512px) 100vw, 512px" /></a></p>
<p>Nach einem Deploy findet die Alexa-App das neue Gerät, falls nicht muss man Alexa bitten nach neuen Geräten zu suchen. Wenn nun das neue in Node-Red angelegte Gerät angezeigt wird, kann man dieses mit <strong>Alexa &#8222;Schalte Ambilight Küche EIN&#8220;</strong> einschalten und mit  <strong>Alexa &#8222;Schalte Ambilight Küche AUS&#8220; </strong>wieder ausschalten. Es fällt jedoch auf, dass man die Benennung doch sehr einfach halten sollte ein &#8222;Ambilight&#8220; kann Alexa schon etwas verwirren.</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-34-18.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4185 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-34-18.jpg" alt="" width="529" height="942" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-34-18.jpg 529w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/2017-10-24_20-34-18-168x300.jpg 168w" sizes="(max-width: 529px) 100vw, 529px" /></a></p>
<p>[ratings id=&#8220;4181&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/amazon-alexa-jedes-geraet-mit-alexa-und-node-red-steuern/">Amazon Alexa: Jedes Gerät mit Alexa und Node-Red steuern</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/amazon-alexa-jedes-geraet-mit-alexa-und-node-red-steuern/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Philips Hue Update: Oktober 2017 Support für mehr Zubehör v2.16.0</title>
		<link>https://www.imakeyouintelligent.com/philips-hue-update-oktober-2017-support-fuer-mehr-zubehoer-v2-16-0/</link>
					<comments>https://www.imakeyouintelligent.com/philips-hue-update-oktober-2017-support-fuer-mehr-zubehoer-v2-16-0/#respond</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Tue, 03 Oct 2017 18:40:11 +0000</pubDate>
				<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Philips Hue]]></category>
		<category><![CDATA[Smart-Home Systeme]]></category>
		<category><![CDATA[Hue]]></category>
		<category><![CDATA[Node-Red]]></category>
		<category><![CDATA[Philips]]></category>
		<category><![CDATA[Smart-Home]]></category>
		<category><![CDATA[Update]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4152</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/philips-hue-update-oktober-2017-support-fuer-mehr-zubehoer-v2-16-0/">Philips Hue Update: Oktober 2017 Support für mehr Zubehör v2.16.0</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_8 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_8">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_9  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_7  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Philips hat gerade (03.10.2017) ein Update für die Hue App Version 2.16.0 und damit inbegriffen die Hue Bridge herausgebracht. Dem ca. 100MB großen Update sind wie der Release Note zu entnehmen, der Support für mehr Philips Hue Zubehör, wie zb. der Motion-Sensor/Bewergungsmelder inbegriffen</p>
<p><div class='et-box et-info'>
					<div class='et-box-content'>Apple HomeKit compatibility for Hue accessories – Philips Hue is extending its Apple HomeKit compatibility for Hue accessories: Hue tap, Hue dimmer switch and Hue motion sensor. Meaning with a press of a button, or movement of your body, you can activate your favorite Apple Home app scenes. To set up automations, you need an Apple TV (4th generation) with tvOS 10 or an iPad with iOS 10 or later.</div></div></p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4153 size-large" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759-576x1024.jpg" alt="" width="576" height="1024" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759-576x1024.jpg 576w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759-600x1067.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759-169x300.jpg 169w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/10/IMG_2759.jpg 750w" sizes="(max-width: 576px) 100vw, 576px" /></a></p>
<p>Nun können neben dem Hue Tap-Schalter auch der Hue Dimmer-Schalter für Szenenansteuerung verwendet werden. Wenn wir uns den Bewegungsmelder genauer anschauen, erstellt dieser nach dem Update 3 weitere Geräte im Apple Homekit:</p>
<ul>
<li>LUX Messer</li>
<li>Temperatur</li>
<li>Bewegung</li>
</ul>
<p>Letzteres macht meinen Artikel: <a href="http://www.imakeyouintelligent.com/node-red-philips-hue-motion-sensor-an-home-kit-anbinden/">Node-Red: Philips-Hue Motion-Sensor an Home-Kit anbinden</a> etwas überflüssig ;) Jedoch hat man weiterhin das Problem das der Motion-Sensor dann immer nur zu den in Home-Kit definierbaren Zeitspannen einen Notification ausgibt und sich nicht Steuer lässt, hierzu mehr in: <a href="http://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/">Node-Red: Alarmanlage mit Amazon Dash Button und Philips Hue Bewegungsmelder</a> in dem Wir mit der Traffic die Kommunikation zwischen Hue Motion-Sensor und Homekit unterbinden.</p>
<p>[ratings id=&#8220;4152&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/philips-hue-update-oktober-2017-support-fuer-mehr-zubehoer-v2-16-0/">Philips Hue Update: Oktober 2017 Support für mehr Zubehör v2.16.0</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/philips-hue-update-oktober-2017-support-fuer-mehr-zubehoer-v2-16-0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Node-Red: Amazon Dash Button Schalter ON/OFF (toggle)</title>
		<link>https://www.imakeyouintelligent.com/node-red-amazon-dash-button-schalter-onoff/</link>
					<comments>https://www.imakeyouintelligent.com/node-red-amazon-dash-button-schalter-onoff/#comments</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Sat, 30 Sep 2017 10:33:24 +0000</pubDate>
				<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Amazon Dashbutton]]></category>
		<category><![CDATA[Node-Red]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4126</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-amazon-dash-button-schalter-onoff/">Node-Red: Amazon Dash Button Schalter ON/OFF (toggle)</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_9 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_9">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_10  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_8  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Mit einem Amazon Dash Button in Node-Red etwas schalten ist mit Bordmitteln so erst einmal nicht möglich, zumindest nicht wenn man eine ON/OFF-Funktionalität sucht.</p>
<p>Mit folgender Toggle-Funktion kann man jedoch ON/OFF schalten mit dem Amazon Dash Button:</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-31-57.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4127 size-full" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-31-57.jpg" alt="" width="716" height="523" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-31-57.jpg 716w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-31-57-600x438.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-31-57-300x219.jpg 300w" sizes="(max-width: 716px) 100vw, 716px" /></a></p>
<p><div class='et-box et-info'>
					<div class='et-box-content'>let state = context.get(&#8217;state&#8216;); let out = &#8222;&#8220;; if(state == null){ context.set(&#8217;state&#8216;,false); } if(state == true){ state = false; output = &#8222;STOP&#8220;; }else{ state = true; output = &#8222;GO&#8220; } context.set(&#8217;state&#8216;,state); return { &#8222;payload&#8220;:output };</div></div></p>
<p>Ich habe diesen in folgendem Flow verbaut: <a href="http://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/">Node-Red: Alarmanlage mit Amazon Dash Button und Philips Hue Bewegungsmelder</a><br />
Bei diesem Flow arbeite ich jedoch noch mit einer Traffic Light die Daten durchlässt oder eben nicht.</p>
<p>[ratings id=&#8220;4126&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-amazon-dash-button-schalter-onoff/">Node-Red: Amazon Dash Button Schalter ON/OFF (toggle)</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/node-red-amazon-dash-button-schalter-onoff/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Node-Red: Alarmanlage mit Amazon Dash Button und Philips Hue Bewegungsmelder</title>
		<link>https://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/</link>
					<comments>https://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/#respond</comments>
		
		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Sat, 30 Sep 2017 10:23:20 +0000</pubDate>
				<category><![CDATA[Apple Home-Kit]]></category>
		<category><![CDATA[Internet of Things (IoT)]]></category>
		<category><![CDATA[Node-RED]]></category>
		<category><![CDATA[Philips Hue]]></category>
		<category><![CDATA[Smart-Home Systeme]]></category>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4122</guid>

					<description><![CDATA[<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/">Node-Red: Alarmanlage mit Amazon Dash Button und Philips Hue Bewegungsmelder</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_10 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_10">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_11  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_9  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>In meinem Beitrag &#8222;<a href="http://www.imakeyouintelligent.com/node-red-philips-hue-motion-sensor-an-home-kit-anbinden/">Node-Red: Philips-Hue Motion-Sensor an Home-Kit anbinden&#8220;</a> welcher auch hier zu finden ist: <a href="https://flows.nodered.org/flow/ec188c736385e113551d6ce8470b1a31">Philips Hue Motion-Sensor to AppleHomeKit,</a> habe ich darüber berichtet wie man einen Philips Hue Bewegungsmelder via Node-Red an das Apple Home-Kit bindet und dort via Push-Notifications benachrichtigt wird.</p>
<p>Es gibt im Home-Kit die Möglichkeit die Benachrichtigungszeiten an zu passen, das passt aber nun nicht immer, oder man möchte halt erst benachrichtigt werden, wenn man das Haus verlässt und einen Amazon Dash Button gedrückt hat.</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-4123 size-large" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743-576x1024.jpg" alt="" width="576" height="1024" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743-576x1024.jpg 576w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743-600x1067.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743-169x300.jpg 169w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/IMG_2743.jpg 750w" sizes="(max-width: 576px) 100vw, 576px" /></a></p>
<p>Ich habe nun nach einer Lösung gesucht wie ich die Notification via Hardware Ein- und Ausschalten kann, hierzu ziehe ich wieder den Amazon Dash Button heran. Mit diesem schalte ich eine Funktion die wiederum die &#8222;Ampel&#8220; in Node-Red auf &#8222;Allow&#8220; oder &#8222;Stop&#8220; stellt. Das Bewegungsereignis wird also trotzdem verarbeitet nur nicht an das Home-Kit weitergegeben. Die Ampel hätte man auch vor den Switch direkt hinter den Bewegungsmelder setzen können. Die Funktion wäre gleich ;)</p>
<p>Mit folgendem Flow ist es möglich die Benachrichtigung Ein- und Aus zu schalten:</p>
<p><a href="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51.jpg"><img loading="lazy" decoding="async" class="alignnone size-large wp-image-4124" src="http://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-1024x201.jpg" alt="" width="1024" height="201" srcset="https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-1024x201.jpg 1024w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-600x117.jpg 600w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-300x59.jpg 300w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-768x150.jpg 768w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51-1080x211.jpg 1080w, https://www.imakeyouintelligent.com/wp-content/uploads/2017/09/2017-09-30_12-19-51.jpg 1144w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>Die Amazon Dash Button &#8211; Toggle Funktion<div class='et-box et-info'>
					<div class='et-box-content'>[{&#8222;id&#8220;:&#8220;700232a0.8181b4&#8243;,&#8220;type&#8220;:&#8220;function&#8220;,&#8220;z&#8220;:&#8220;493a3d1f.c5ee64&#8243;,&#8220;name&#8220;:&#8220;Toogle&#8220;,&#8220;func&#8220;:&#8220;let state = context.get(&#8217;state&#8216;);\nlet out = \&#8220;\&#8220;;\nif(state == null){\n context.set(&#8217;state&#8216;,false);\n}\n\nif(state == true){\n state = false;\n output = \&#8220;STOP\&#8220;;\n}else{\n state = true;\n output = \&#8220;GO\&#8220;\n}\n\ncontext.set(&#8217;state&#8216;,state);\nreturn { \&#8220;payload\&#8220;:output };&#8220;,&#8220;outputs&#8220;:&#8220;1&#8243;,&#8220;noerr&#8220;:0,&#8220;x&#8220;:548,&#8220;y&#8220;:138,&#8220;wires&#8220;:[[&#8222;a3b2e4fe.ffeab&#8220;,&#8220;203ed2dd.de0506&#8243;]]}]</div></div> :</p>
<p>[ratings id=&#8220;4122&#8243;]</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>Der Beitrag <a href="https://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/">Node-Red: Alarmanlage mit Amazon Dash Button und Philips Hue Bewegungsmelder</a> erschien zuerst auf <a href="https://www.imakeyouintelligent.com">I MAKE YOU INTELLIGENT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.imakeyouintelligent.com/node-red-alarmanlage-mit-amazon-dash-button-und-philips-hue-bewegungsmelder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
