<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MMM-PiLights notification trigger for PIR]]></title><description><![CDATA[<p dir="auto">Has anyone successfully used the</p>
<pre><code>this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
</code></pre>
<p dir="auto">trigger in the MMM-Pilights or similar in the MMM-Sounds module?</p>
<p dir="auto">I would like to turn on some LEDs when the PIR turns on my monitor. I plan on back lighting my mirror with LEDs. According to the MMM-PiLights documentation the above snipit of code should turn them on. Any help with where to insert the above code in the MMM-PIR-Sensor module would be greatly appreciated.</p>
]]></description><link>https://forum.magicmirror.builders/topic/4491/mmm-pilights-notification-trigger-for-pir</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:59:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4491.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jul 2017 01:36:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PiLights notification trigger for PIR on Wed, 19 Jul 2017 23:13:46 GMT]]></title><description><![CDATA[<p dir="auto">The answer to my question is to add the sendNotification line in the MMM-PiLights.js as follows:<br />
From:</p>
<pre><code>	socketNotificationReceived: function(notification, payload) {
		if (notification === "USER_PRESENCE"){
			this.sendNotification(notification, payload)
		}
</code></pre>
<p dir="auto">To:</p>
<pre><code>	socketNotificationReceived: function(notification, payload) {
		if (notification === "USER_PRESENCE"){
			this.sendNotification(notification, payload);
                        this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
		}
</code></pre>
<p dir="auto">Unfortunately I have realized that I want to do something more elaborate then the PiLights module allows so instead I am now calling a python script instead.</p>
]]></description><link>https://forum.magicmirror.builders/post/25521</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25521</guid><dc:creator><![CDATA[orayoflighto]]></dc:creator><pubDate>Wed, 19 Jul 2017 23:13:46 GMT</pubDate></item></channel></rss>