<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Kommentare zu: Node-Red: Nicht HomeKit zertifizierte Lampen an HomeKit anbinden via Hue Teil1	</title>
	<atom:link href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/</link>
	<description>Mach die Welt ein bisschen intelligenter</description>
	<lastBuildDate>Mon, 06 Jan 2025 18:32:45 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		Von: Roy		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-43170</link>

		<dc:creator><![CDATA[Roy]]></dc:creator>
		<pubDate>Mon, 06 Jan 2025 18:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-43170</guid>

					<description><![CDATA[Hallo,
Habe gerade versucht das nach zubauen aber leider kann ich den Flow nicht importieren
Könnte man den nochmal Posten?]]></description>
			<content:encoded><![CDATA[<p>Hallo,<br />
Habe gerade versucht das nach zubauen aber leider kann ich den Flow nicht importieren<br />
Könnte man den nochmal Posten?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Alexander		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-26271</link>

		<dc:creator><![CDATA[Alexander]]></dc:creator>
		<pubDate>Tue, 07 Jul 2020 12:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-26271</guid>

					<description><![CDATA[Hi. I saw your project (https://www.npmjs.com/package/node-red-contrib-node-hue) for added lamp (philips hue bridge) in Apple HomeKit with help NODE-RED. But i cant importing your flow. Please send me your flow for philips hue (node-red). Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi. I saw your project (<a href="https://www.npmjs.com/package/node-red-contrib-node-hue" rel="nofollow ugc">https://www.npmjs.com/package/node-red-contrib-node-hue</a>) for added lamp (philips hue bridge) in Apple HomeKit with help NODE-RED. But i cant importing your flow. Please send me your flow for philips hue (node-red). Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: noeticlinchen		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-25031</link>

		<dc:creator><![CDATA[noeticlinchen]]></dc:creator>
		<pubDate>Sun, 01 Dec 2019 15:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-25031</guid>

					<description><![CDATA[Als Antwort auf &lt;a href=&quot;https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-12627&quot;&gt;hannes&lt;/a&gt;.

Hi zusammen, habe es gerade geschafft. Hier der Code:

[{&quot;id&quot;:&quot;8f898b4.d25a778&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;&quot;,&quot;active&quot;:true,&quot;console&quot;:&quot;false&quot;,&quot;complete&quot;:&quot;true&quot;,&quot;x&quot;:990,&quot;y&quot;:1020,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;8ae927b8.6131b8&quot;,&quot;type&quot;:&quot;hue-light&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Lampe Kleiderschrank&quot;,&quot;bridge&quot;:&quot;7bbf47a6.f94908&quot;,&quot;lightid&quot;:&quot;10&quot;,&quot;x&quot;:340,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;63259b2b.c68274&quot;]]},{&quot;id&quot;:&quot;79edc8eb.e3258&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Ausschalten&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;false&quot;,&quot;payloadType&quot;:&quot;bool&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:130,&quot;y&quot;:940,&quot;wires&quot;:[[&quot;8ae927b8.6131b8&quot;]]},{&quot;id&quot;:&quot;4c4c2cdc.1b76c4&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Einschalten&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;true&quot;,&quot;payloadType&quot;:&quot;bool&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:130,&quot;y&quot;:900,&quot;wires&quot;:[[&quot;8ae927b8.6131b8&quot;]]},{&quot;id&quot;:&quot;1ab1f8f2.ce461f&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Rot&quot;,&quot;func&quot;:&quot;msg.payload={\n\&quot;on\&quot;:[true],\n\&quot;transitiontime\&quot;:[5],\n\&quot;bri\&quot;:[100],\n\&quot;rgb\&quot;:[255,0,0]\n}\nreturn msg;\n&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:270,&quot;y&quot;:1000,&quot;wires&quot;:[[&quot;8ae927b8.6131b8&quot;]]},{&quot;id&quot;:&quot;8d08fc80.634d38&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;date&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:120,&quot;y&quot;:1000,&quot;wires&quot;:[[&quot;1ab1f8f2.ce461f&quot;]]},{&quot;id&quot;:&quot;68ad4cf8.166f44&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Grün&quot;,&quot;func&quot;:&quot;msg.payload={\n\&quot;on\&quot;:[true],\n\&quot;transitiontime\&quot;:[5],\n\&quot;bri\&quot;:[100],\n\&quot;rgb\&quot;:[0,255,0]\n}\nreturn msg;\n&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:270,&quot;y&quot;:1040,&quot;wires&quot;:[[&quot;8ae927b8.6131b8&quot;]]},{&quot;id&quot;:&quot;9b1304da.36eff&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;date&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:120,&quot;y&quot;:1040,&quot;wires&quot;:[[&quot;68ad4cf8.166f44&quot;]]},{&quot;id&quot;:&quot;c5bf1afd.52427&quot;,&quot;type&quot;:&quot;homekit-service&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;accessory&quot;:&quot;299f9416.0ec254&quot;,&quot;name&quot;:&quot;&quot;,&quot;serviceName&quot;:&quot;Lightbulb&quot;,&quot;x&quot;:680,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;15f5e4fa.608d6b&quot;]]},{&quot;id&quot;:&quot;63259b2b.c68274&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Schnitstelle&quot;,&quot;func&quot;:&quot;var ausgabe = {};\n\nausgabe[\&quot;Brightness\&quot;] = msg.payload.brightness;\nausgabe[\&quot;On\&quot;] = msg.payload.on;\n\nausgabe[\&quot;Hue\&quot;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[0]\nausgabe[\&quot;Saturation\&quot;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[1]\nausgabe[\&quot;ColorTemperature\&quot;] = 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 – min;\n s = l &#062; 0.5 ? d / (2 – max – min) : d / (max + min);\n switch(max){\n case r: h = (g – b) / d + (g &#060; b ? 6 : 0); break;\n case g: h = (b – r) / d + 2; break;\n case b: h = (r – g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [h, s, l];\n}&#034;,&#034;outputs&#034;:1,&#034;noerr&#034;:0,&#034;x&#034;:530,&#034;y&#034;:780,&#034;wires&#034;:[[&#034;c5bf1afd.52427&#034;]]},{&#034;id&#034;:&#034;15f5e4fa.608d6b&#034;,&#034;type&#034;:&#034;function&#034;,&#034;z&#034;:&#034;27ae8d45.93d07a&#034;,&#034;name&#034;:&#034;Schnitstelle&#034;,&#034;func&#034;:&#034;var ausgabe = {};\nausgabe[\&#034;rgb\&#034;] = {};\n\nausgabe[\&#034;brightness\&#034;] = msg.payload.Brightness;\nausgabe[\&#034;on\&#034;] = msg.payload.On;\n\nausgabe[\&#034;rgb\&#034;][0] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[0]\nausgabe[\&#034;rgb\&#034;][1] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[1]\nausgabe[\&#034;rgb\&#034;][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  1) t -= 1;\n if(t &#060; 1/6) return p + (q – p) * 6 * t;\n if(t &#060; 1/2) return q;\n if(t &#060; 2/3) return p + (q – p) * (2/3 – t) * 6;\n return p;\n }\n\n var q = l &#060; 0.5 ? l * (1 + s) : l + s – l * s;\n var p = 2 * l – q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h – 1/3);\n }\n\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n}&#034;,&#034;outputs&#034;:1,&#034;noerr&#034;:0,&#034;x&#034;:830,&#034;y&#034;:780,&#034;wires&#034;:[[&#034;8f898b4.d25a778&#034;]]},{&#034;id&#034;:&#034;7bbf47a6.f94908&#034;,&#034;type&#034;:&#034;hue-bridge&#034;,&#034;z&#034;:&#034;&#034;,&#034;name&#034;:&#034;Philips hue 2.OG&#034;,&#034;bridge&#034;:&#034;192.168.178.82&#034;,&#034;key&#034;:&#034;1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO&#034;,&#034;interval&#034;:&#034;3000&#034;},{&#034;id&#034;:&#034;299f9416.0ec254&#034;,&#034;type&#034;:&#034;homekit-accessory&#034;,&#034;z&#034;:&#034;&#034;,&#034;accessoryName&#034;:&#034;HueTest&#034;,&#034;pinCode&#034;:&#034;111-11-111&#034;,&#034;port&#034;:&#034;&#034;,&#034;manufacturer&#034;:&#034;Default Manufacturer&#034;,&#034;model&#034;:&#034;Default Model&#034;,&#034;serialNo&#034;:&#034;Default Serial Number&#034;,&#034;accessoryType&#034;:&#034;5&#034;}]]]></description>
			<content:encoded><![CDATA[<p>Als Antwort auf <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-12627">hannes</a>.</p>
<p>Hi zusammen, habe es gerade geschafft. Hier der Code:</p>
<p>[{&#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 <a href="http://en.wikipedia.org/wiki/HSL_color_space" rel="nofollow ugc">http://en.wikipedia.org/wiki/HSL_color_space</a>.\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 – min;\n s = l &gt; 0.5 ? d / (2 – max – min) : d / (max + min);\n switch(max){\n case r: h = (g – b) / d + (g &lt; b ? 6 : 0); break;\n case g: h = (b – r) / d + 2; break;\n case b: h = (r – g) / d + 4; break;\n }\n h /= 6;\n }\n\n return [h, s, l];\n}&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:530,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;c5bf1afd.52427&quot;]]},{&quot;id&quot;:&quot;15f5e4fa.608d6b&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;27ae8d45.93d07a&quot;,&quot;name&quot;:&quot;Schnitstelle&quot;,&quot;func&quot;:&quot;var ausgabe = {};\nausgabe[\&quot;rgb\&quot;] = {};\n\nausgabe[\&quot;brightness\&quot;] = msg.payload.Brightness;\nausgabe[\&quot;on\&quot;] = msg.payload.On;\n\nausgabe[\&quot;rgb\&quot;][0] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[0]\nausgabe[\&quot;rgb\&quot;][1] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[1]\nausgabe[\&quot;rgb\&quot;][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 <a href="http://en.wikipedia.org/wiki/HSL_color_space" rel="nofollow ugc">http://en.wikipedia.org/wiki/HSL_color_space</a>.\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  1) t -= 1;\n if(t &lt; 1/6) return p + (q – p) * 6 * t;\n if(t &lt; 1/2) return q;\n if(t &lt; 2/3) return p + (q – p) * (2/3 – t) * 6;\n return p;\n }\n\n var q = l &lt; 0.5 ? l * (1 + s) : l + s – l * s;\n var p = 2 * l – q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h – 1/3);\n }\n\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n}&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:830,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;8f898b4.d25a778&quot;]]},{&quot;id&quot;:&quot;7bbf47a6.f94908&quot;,&quot;type&quot;:&quot;hue-bridge&quot;,&quot;z&quot;:&quot;&quot;,&quot;name&quot;:&quot;Philips hue 2.OG&quot;,&quot;bridge&quot;:&quot;192.168.178.82&quot;,&quot;key&quot;:&quot;1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO&quot;,&quot;interval&quot;:&quot;3000&quot;},{&quot;id&quot;:&quot;299f9416.0ec254&quot;,&quot;type&quot;:&quot;homekit-accessory&quot;,&quot;z&quot;:&quot;&quot;,&quot;accessoryName&quot;:&quot;HueTest&quot;,&quot;pinCode&quot;:&quot;111-11-111&quot;,&quot;port&quot;:&quot;&quot;,&quot;manufacturer&quot;:&quot;Default Manufacturer&quot;,&quot;model&quot;:&quot;Default Model&quot;,&quot;serialNo&quot;:&quot;Default Serial Number&quot;,&quot;accessoryType&quot;:&quot;5&quot;}]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Sören		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-23976</link>

		<dc:creator><![CDATA[Sören]]></dc:creator>
		<pubDate>Tue, 16 Apr 2019 18:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-23976</guid>

					<description><![CDATA[Wäre echt Super wenn wann den Quelltext irgendwo nochmal runterlasen könnte, ich bekomme es leider nicht hin den Flow nachzubauen :(

Und ich wäre euch auf den 2.ten Teil gespannt :)]]></description>
			<content:encoded><![CDATA[<p>Wäre echt Super wenn wann den Quelltext irgendwo nochmal runterlasen könnte, ich bekomme es leider nicht hin den Flow nachzubauen :(</p>
<p>Und ich wäre euch auf den 2.ten Teil gespannt :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Anonym		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-23378</link>

		<dc:creator><![CDATA[Anonym]]></dc:creator>
		<pubDate>Fri, 01 Feb 2019 18:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-23378</guid>

					<description><![CDATA[Wann kommt denn Teil zwei?]]></description>
			<content:encoded><![CDATA[<p>Wann kommt denn Teil zwei?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: hannes		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-12627</link>

		<dc:creator><![CDATA[hannes]]></dc:creator>
		<pubDate>Wed, 10 Oct 2018 23:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-12627</guid>

					<description><![CDATA[ja deine blog software macht die formatierung kaputt da brauchts wohl eine RAW anzeige, dass nicht der quelltext kaputt geht.. so wie das oben gepostet ist kann das niemand importieren....]]></description>
			<content:encoded><![CDATA[<p>ja deine blog software macht die formatierung kaputt da brauchts wohl eine RAW anzeige, dass nicht der quelltext kaputt geht.. so wie das oben gepostet ist kann das niemand importieren&#8230;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Joerg Weller		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-9274</link>

		<dc:creator><![CDATA[Joerg Weller]]></dc:creator>
		<pubDate>Wed, 08 Aug 2018 09:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-9274</guid>

					<description><![CDATA[Als Antwort auf &lt;a href=&quot;https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-1996&quot;&gt;Marvin Heyder&lt;/a&gt;.

Der Blog zerhaut die Anführungszeichen, dadurch ist das JSOn nicht mehr valide!
Ein Auszug der Fehler:

Error:Strings should be wrapped in double quotes.[Code 17, Structure 3]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 5]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 7]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 9]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 11]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 13]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 15]
Error:Strings should be wrapped in double quotes.[Code 17, Structure 17]]]></description>
			<content:encoded><![CDATA[<p>Als Antwort auf <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-1996">Marvin Heyder</a>.</p>
<p>Der Blog zerhaut die Anführungszeichen, dadurch ist das JSOn nicht mehr valide!<br />
Ein Auszug der Fehler:</p>
<p>Error:Strings should be wrapped in double quotes.[Code 17, Structure 3]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 5]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 7]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 9]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 11]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 13]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 15]<br />
Error:Strings should be wrapped in double quotes.[Code 17, Structure 17]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Marvin Heyder		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-2032</link>

		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Fri, 16 Mar 2018 19:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-2032</guid>

					<description><![CDATA[Als Antwort auf &lt;a href=&quot;https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-2029&quot;&gt;Schreihals08&lt;/a&gt;.

Hallo Schreihals, 

welchen Flow wolltest du denn hinzufügen? Fehlende Nodes hast du installiert? 

Schöne Grüße]]></description>
			<content:encoded><![CDATA[<p>Als Antwort auf <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-2029">Schreihals08</a>.</p>
<p>Hallo Schreihals, </p>
<p>welchen Flow wolltest du denn hinzufügen? Fehlende Nodes hast du installiert? </p>
<p>Schöne Grüße</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Schreihals08		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-2029</link>

		<dc:creator><![CDATA[Schreihals08]]></dc:creator>
		<pubDate>Thu, 15 Mar 2018 21:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-2029</guid>

					<description><![CDATA[Hey, ich kann es leider auch nicht einfügen...]]></description>
			<content:encoded><![CDATA[<p>Hey, ich kann es leider auch nicht einfügen&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Marvin Heyder		</title>
		<link>https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-1996</link>

		<dc:creator><![CDATA[Marvin Heyder]]></dc:creator>
		<pubDate>Wed, 07 Feb 2018 10:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.imakeyouintelligent.com/?p=4221#comment-1996</guid>

					<description><![CDATA[Als Antwort auf &lt;a href=&quot;https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-1995&quot;&gt;Simon&lt;/a&gt;.

Hi Simon, 

die benötigten Nodes hast du installiert? 
Ich habe ihn dir hier einmal frisch exportiert in formatierter Version: 

[
    {
        &quot;id&quot;: &quot;8f898b4.d25a778&quot;,
        &quot;type&quot;: &quot;debug&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;&quot;,
        &quot;active&quot;: true,
        &quot;console&quot;: &quot;false&quot;,
        &quot;complete&quot;: &quot;true&quot;,
        &quot;x&quot;: 970,
        &quot;y&quot;: 840,
        &quot;wires&quot;: []
    },
    {
        &quot;id&quot;: &quot;7edb4b59.d7cf74&quot;,
        &quot;type&quot;: &quot;inject&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;&quot;,
        &quot;topic&quot;: &quot;&quot;,
        &quot;payload&quot;: &quot;{\&quot;On\&quot;:1,\&quot;Brightness\&quot;:50,\&quot;Hue\&quot;:30,\&quot;Saturation\&quot;:10,\&quot;ColorTemperature\&quot;:40}&quot;,
        &quot;payloadType&quot;: &quot;json&quot;,
        &quot;repeat&quot;: &quot;&quot;,
        &quot;crontab&quot;: &quot;&quot;,
        &quot;once&quot;: false,
        &quot;x&quot;: 110,
        &quot;y&quot;: 840,
        &quot;wires&quot;: [
            []
        ]
    },
    {
        &quot;id&quot;: &quot;8ae927b8.6131b8&quot;,
        &quot;type&quot;: &quot;hue-light&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Lampe Kleiderschrank&quot;,
        &quot;bridge&quot;: &quot;7bbf47a6.f94908&quot;,
        &quot;lightid&quot;: &quot;10&quot;,
        &quot;x&quot;: 340,
        &quot;y&quot;: 780,
        &quot;wires&quot;: [
            [
                &quot;63259b2b.c68274&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;79edc8eb.e3258&quot;,
        &quot;type&quot;: &quot;inject&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Ausschalten&quot;,
        &quot;topic&quot;: &quot;&quot;,
        &quot;payload&quot;: &quot;false&quot;,
        &quot;payloadType&quot;: &quot;bool&quot;,
        &quot;repeat&quot;: &quot;&quot;,
        &quot;crontab&quot;: &quot;&quot;,
        &quot;once&quot;: false,
        &quot;x&quot;: 130,
        &quot;y&quot;: 940,
        &quot;wires&quot;: [
            [
                &quot;8ae927b8.6131b8&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;4c4c2cdc.1b76c4&quot;,
        &quot;type&quot;: &quot;inject&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Einschalten&quot;,
        &quot;topic&quot;: &quot;&quot;,
        &quot;payload&quot;: &quot;true&quot;,
        &quot;payloadType&quot;: &quot;bool&quot;,
        &quot;repeat&quot;: &quot;&quot;,
        &quot;crontab&quot;: &quot;&quot;,
        &quot;once&quot;: false,
        &quot;x&quot;: 130,
        &quot;y&quot;: 900,
        &quot;wires&quot;: [
            [
                &quot;8ae927b8.6131b8&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;1ab1f8f2.ce461f&quot;,
        &quot;type&quot;: &quot;function&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Rot&quot;,
        &quot;func&quot;: &quot;msg.payload={\n\&quot;on\&quot;:[true],\n\&quot;transitiontime\&quot;:[5],\n\&quot;bri\&quot;:[100],\n\&quot;rgb\&quot;:[255,0,0]\n}\nreturn msg;\n&quot;,
        &quot;outputs&quot;: 1,
        &quot;noerr&quot;: 0,
        &quot;x&quot;: 270,
        &quot;y&quot;: 1000,
        &quot;wires&quot;: [
            [
                &quot;8ae927b8.6131b8&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;8d08fc80.634d38&quot;,
        &quot;type&quot;: &quot;inject&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;&quot;,
        &quot;topic&quot;: &quot;&quot;,
        &quot;payload&quot;: &quot;&quot;,
        &quot;payloadType&quot;: &quot;date&quot;,
        &quot;repeat&quot;: &quot;&quot;,
        &quot;crontab&quot;: &quot;&quot;,
        &quot;once&quot;: false,
        &quot;x&quot;: 120,
        &quot;y&quot;: 1000,
        &quot;wires&quot;: [
            [
                &quot;1ab1f8f2.ce461f&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;68ad4cf8.166f44&quot;,
        &quot;type&quot;: &quot;function&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Grün&quot;,
        &quot;func&quot;: &quot;msg.payload={\n\&quot;on\&quot;:[true],\n\&quot;transitiontime\&quot;:[5],\n\&quot;bri\&quot;:[100],\n\&quot;rgb\&quot;:[0,255,0]\n}\nreturn msg;\n&quot;,
        &quot;outputs&quot;: 1,
        &quot;noerr&quot;: 0,
        &quot;x&quot;: 270,
        &quot;y&quot;: 1040,
        &quot;wires&quot;: [
            [
                &quot;8ae927b8.6131b8&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;9b1304da.36eff&quot;,
        &quot;type&quot;: &quot;inject&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;&quot;,
        &quot;topic&quot;: &quot;&quot;,
        &quot;payload&quot;: &quot;&quot;,
        &quot;payloadType&quot;: &quot;date&quot;,
        &quot;repeat&quot;: &quot;&quot;,
        &quot;crontab&quot;: &quot;&quot;,
        &quot;once&quot;: false,
        &quot;x&quot;: 120,
        &quot;y&quot;: 1040,
        &quot;wires&quot;: [
            [
                &quot;68ad4cf8.166f44&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;c5bf1afd.52427&quot;,
        &quot;type&quot;: &quot;homekit-service&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;accessory&quot;: &quot;299f9416.0ec254&quot;,
        &quot;name&quot;: &quot;&quot;,
        &quot;serviceName&quot;: &quot;Lightbulb&quot;,
        &quot;x&quot;: 680,
        &quot;y&quot;: 780,
        &quot;wires&quot;: [
            [
                &quot;15f5e4fa.608d6b&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;63259b2b.c68274&quot;,
        &quot;type&quot;: &quot;function&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Schnitstelle&quot;,
        &quot;func&quot;: &quot;var ausgabe = {};\n\nausgabe[\&quot;Brightness\&quot;] = msg.payload.brightness;\nausgabe[\&quot;On\&quot;] = msg.payload.on;\n\nausgabe[\&quot;Hue\&quot;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[0]\nausgabe[\&quot;Saturation\&quot;] = rgbToHsl(msg.payload.rgb[0],msg.payload.rgb[1],msg.payload.rgb[2])[1]\nausgabe[\&quot;ColorTemperature\&quot;] = 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 - min;\n        s = l &gt; 0.5 ? d / (2 - max - min) : d / (max + min);\n        switch(max){\n            case r: h = (g - b) / d + (g &lt; b ? 6 : 0); break;\n            case g: h = (b - r) / d + 2; break;\n            case b: h = (r - g) / d + 4; break;\n        }\n        h /= 6;\n    }\n\n    return [h, s, l];\n}&quot;,
        &quot;outputs&quot;: 1,
        &quot;noerr&quot;: 0,
        &quot;x&quot;: 530,
        &quot;y&quot;: 780,
        &quot;wires&quot;: [
            [
                &quot;c5bf1afd.52427&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;15f5e4fa.608d6b&quot;,
        &quot;type&quot;: &quot;function&quot;,
        &quot;z&quot;: &quot;27ae8d45.93d07a&quot;,
        &quot;name&quot;: &quot;Schnitstelle&quot;,
        &quot;func&quot;: &quot;var ausgabe = {};\nausgabe[\&quot;rgb\&quot;] = {};\n\nausgabe[\&quot;brightness\&quot;] = msg.payload.Brightness;\nausgabe[\&quot;on\&quot;] = msg.payload.On;\n\nausgabe[\&quot;rgb\&quot;][0] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[0]\nausgabe[\&quot;rgb\&quot;][1] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[1]\nausgabe[\&quot;rgb\&quot;][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 - p) * 6 * t;\n            if(t &lt; 1/2) return q;\n            if(t &lt; 2/3) return p + (q - p) * (2/3 - t) * 6;\n            return p;\n        }\n\n        var q = l &lt; 0.5 ? l * (1 + s) : l + s - l * s;\n        var p = 2 * l - q;\n        r = hue2rgb(p, q, h + 1/3);\n        g = hue2rgb(p, q, h);\n        b = hue2rgb(p, q, h - 1/3);\n    }\n\n    return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n}&quot;,
        &quot;outputs&quot;: 1,
        &quot;noerr&quot;: 0,
        &quot;x&quot;: 830,
        &quot;y&quot;: 780,
        &quot;wires&quot;: [
            [
                &quot;8f898b4.d25a778&quot;
            ]
        ]
    },
    {
        &quot;id&quot;: &quot;7bbf47a6.f94908&quot;,
        &quot;type&quot;: &quot;hue-bridge&quot;,
        &quot;z&quot;: &quot;&quot;,
        &quot;name&quot;: &quot;Philips hue 2.OG&quot;,
        &quot;bridge&quot;: &quot;192.168.178.82&quot;,
        &quot;key&quot;: &quot;1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO&quot;,
        &quot;interval&quot;: &quot;3000&quot;
    },
    {
        &quot;id&quot;: &quot;299f9416.0ec254&quot;,
        &quot;type&quot;: &quot;homekit-accessory&quot;,
        &quot;z&quot;: &quot;&quot;,
        &quot;accessoryName&quot;: &quot;HueTest&quot;,
        &quot;pinCode&quot;: &quot;111-11-111&quot;,
        &quot;port&quot;: &quot;&quot;,
        &quot;manufacturer&quot;: &quot;Default Manufacturer&quot;,
        &quot;model&quot;: &quot;Default Model&quot;,
        &quot;serialNo&quot;: &quot;Default Serial Number&quot;,
        &quot;accessoryType&quot;: &quot;5&quot;
    }
]
]]></description>
			<content:encoded><![CDATA[<p>Als Antwort auf <a href="https://www.imakeyouintelligent.com/node-red-nicht-homekit-zertifizierte-lampen-an-homekit-anbinden-via-hue-teil1/#comment-1995">Simon</a>.</p>
<p>Hi Simon, </p>
<p>die benötigten Nodes hast du installiert?<br />
Ich habe ihn dir hier einmal frisch exportiert in formatierter Version: </p>
<p>[<br />
    {<br />
        &#8222;id&#8220;: &#8222;8f898b4.d25a778&#8220;,<br />
        &#8222;type&#8220;: &#8222;debug&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;&#8220;,<br />
        &#8222;active&#8220;: true,<br />
        &#8222;console&#8220;: &#8222;false&#8220;,<br />
        &#8222;complete&#8220;: &#8222;true&#8220;,<br />
        &#8222;x&#8220;: 970,<br />
        &#8222;y&#8220;: 840,<br />
        &#8222;wires&#8220;: []<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;7edb4b59.d7cf74&#8220;,<br />
        &#8222;type&#8220;: &#8222;inject&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;&#8220;,<br />
        &#8222;topic&#8220;: &#8222;&#8220;,<br />
        &#8222;payload&#8220;: &#8222;{\&#8220;On\&#8220;:1,\&#8220;Brightness\&#8220;:50,\&#8220;Hue\&#8220;:30,\&#8220;Saturation\&#8220;:10,\&#8220;ColorTemperature\&#8220;:40}&#8220;,<br />
        &#8222;payloadType&#8220;: &#8222;json&#8220;,<br />
        &#8222;repeat&#8220;: &#8222;&#8220;,<br />
        &#8222;crontab&#8220;: &#8222;&#8220;,<br />
        &#8222;once&#8220;: false,<br />
        &#8222;x&#8220;: 110,<br />
        &#8222;y&#8220;: 840,<br />
        &#8222;wires&#8220;: [<br />
            []<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;8ae927b8.6131b8&#8220;,<br />
        &#8222;type&#8220;: &#8222;hue-light&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Lampe Kleiderschrank&#8220;,<br />
        &#8222;bridge&#8220;: &#8222;7bbf47a6.f94908&#8220;,<br />
        &#8222;lightid&#8220;: &#8222;10&#8220;,<br />
        &#8222;x&#8220;: 340,<br />
        &#8222;y&#8220;: 780,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;63259b2b.c68274&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;79edc8eb.e3258&#8220;,<br />
        &#8222;type&#8220;: &#8222;inject&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Ausschalten&#8220;,<br />
        &#8222;topic&#8220;: &#8222;&#8220;,<br />
        &#8222;payload&#8220;: &#8222;false&#8220;,<br />
        &#8222;payloadType&#8220;: &#8222;bool&#8220;,<br />
        &#8222;repeat&#8220;: &#8222;&#8220;,<br />
        &#8222;crontab&#8220;: &#8222;&#8220;,<br />
        &#8222;once&#8220;: false,<br />
        &#8222;x&#8220;: 130,<br />
        &#8222;y&#8220;: 940,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;8ae927b8.6131b8&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;4c4c2cdc.1b76c4&#8220;,<br />
        &#8222;type&#8220;: &#8222;inject&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Einschalten&#8220;,<br />
        &#8222;topic&#8220;: &#8222;&#8220;,<br />
        &#8222;payload&#8220;: &#8222;true&#8220;,<br />
        &#8222;payloadType&#8220;: &#8222;bool&#8220;,<br />
        &#8222;repeat&#8220;: &#8222;&#8220;,<br />
        &#8222;crontab&#8220;: &#8222;&#8220;,<br />
        &#8222;once&#8220;: false,<br />
        &#8222;x&#8220;: 130,<br />
        &#8222;y&#8220;: 900,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;8ae927b8.6131b8&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;1ab1f8f2.ce461f&#8220;,<br />
        &#8222;type&#8220;: &#8222;function&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Rot&#8220;,<br />
        &#8222;func&#8220;: &#8222;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;,<br />
        &#8222;outputs&#8220;: 1,<br />
        &#8222;noerr&#8220;: 0,<br />
        &#8222;x&#8220;: 270,<br />
        &#8222;y&#8220;: 1000,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;8ae927b8.6131b8&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;8d08fc80.634d38&#8220;,<br />
        &#8222;type&#8220;: &#8222;inject&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#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;&#8220;,<br />
        &#8222;crontab&#8220;: &#8222;&#8220;,<br />
        &#8222;once&#8220;: false,<br />
        &#8222;x&#8220;: 120,<br />
        &#8222;y&#8220;: 1000,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;1ab1f8f2.ce461f&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;68ad4cf8.166f44&#8220;,<br />
        &#8222;type&#8220;: &#8222;function&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Grün&#8220;,<br />
        &#8222;func&#8220;: &#8222;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;,<br />
        &#8222;outputs&#8220;: 1,<br />
        &#8222;noerr&#8220;: 0,<br />
        &#8222;x&#8220;: 270,<br />
        &#8222;y&#8220;: 1040,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;8ae927b8.6131b8&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;9b1304da.36eff&#8220;,<br />
        &#8222;type&#8220;: &#8222;inject&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#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;&#8220;,<br />
        &#8222;crontab&#8220;: &#8222;&#8220;,<br />
        &#8222;once&#8220;: false,<br />
        &#8222;x&#8220;: 120,<br />
        &#8222;y&#8220;: 1040,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;68ad4cf8.166f44&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;c5bf1afd.52427&#8220;,<br />
        &#8222;type&#8220;: &#8222;homekit-service&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;accessory&#8220;: &#8222;299f9416.0ec254&#8220;,<br />
        &#8222;name&#8220;: &#8222;&#8220;,<br />
        &#8222;serviceName&#8220;: &#8222;Lightbulb&#8220;,<br />
        &#8222;x&#8220;: 680,<br />
        &#8222;y&#8220;: 780,<br />
        &#8222;wires&#8220;: [<br />
            [<br />
                &#8222;15f5e4fa.608d6b&#8220;<br />
            ]<br />
        ]<br />
    },<br />
    {<br />
        &#8222;id&#8220;: &#8222;63259b2b.c68274&#8220;,<br />
        &#8222;type&#8220;: &#8222;function&#8220;,<br />
        &#8222;z&#8220;: &#8222;27ae8d45.93d07a&#8220;,<br />
        &#8222;name&#8220;: &#8222;Schnitstelle&#8220;,<br />
        &#8222;func&#8220;: &#8222;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 <a href="http://en.wikipedia.org/wiki/HSL_color_space" rel="nofollow ugc">http://en.wikipedia.org/wiki/HSL_color_space</a>.\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 > 0.5 ? d / (2 &#8211; max &#8211; min) : d / (max + min);\n        switch(max){\n            case r: h = (g &#8211; b) / d + (g < b ? 6 : 0); break;\n            case g: h = (b - r) / d + 2; break;\n            case b: h = (r - g) / d + 4; break;\n        }\n        h /= 6;\n    }\n\n    return [h, s, l];\n}",
        "outputs": 1,
        "noerr": 0,
        "x": 530,
        "y": 780,
        "wires": [
            [
                "c5bf1afd.52427"
            ]
        ]
    },
    {
        "id": "15f5e4fa.608d6b",
        "type": "function",
        "z": "27ae8d45.93d07a",
        "name": "Schnitstelle",
        "func": "var ausgabe = {};\nausgabe[\"rgb\"] = {};\n\nausgabe[\"brightness\"] = msg.payload.Brightness;\nausgabe[\"on\"] = msg.payload.On;\n\nausgabe[\"rgb\"][0] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[0]\nausgabe[\"rgb\"][1] = hslToRgb(msg.payload.Hue, msg.payload.Saturation, msg.payload.ColorTemperature)[1]\nausgabe[\"rgb\"][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 <a href="http://en.wikipedia.org/wiki/HSL_color_space" rel="nofollow ugc">http://en.wikipedia.org/wiki/HSL_color_space</a>.\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 < 0) t += 1;\n            if(t > 1) t -= 1;\n            if(t < 1/6) return p + (q - p) * 6 * t;\n            if(t < 1/2) return q;\n            if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;\n            return p;\n        }\n\n        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n        var p = 2 * l - q;\n        r = hue2rgb(p, q, h + 1/3);\n        g = hue2rgb(p, q, h);\n        b = hue2rgb(p, q, h - 1/3);\n    }\n\n    return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n}",
        "outputs": 1,
        "noerr": 0,
        "x": 830,
        "y": 780,
        "wires": [
            [
                "8f898b4.d25a778"
            ]
        ]
    },
    {
        "id": "7bbf47a6.f94908",
        "type": "hue-bridge",
        "z": "",
        "name": "Philips hue 2.OG",
        "bridge": "192.168.178.82",
        "key": "1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO",
        "interval": "3000"
    },
    {
        "id": "299f9416.0ec254",
        "type": "homekit-accessory",
        "z": "",
        "accessoryName": "HueTest",
        "pinCode": "111-11-111",
        "port": "",
        "manufacturer": "Default Manufacturer",
        "model": "Default Model",
        "serialNo": "Default Serial Number",
        "accessoryType": "5"
    }
]

</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
