<?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-GoogleAssistant and LED Lights]]></title><description><![CDATA[<p dir="auto">I am using the module made by bugsounet, the MMM-GoogleAssistant and the MMM-Assistant2Display.  I am trying to setup some LED lights behind the mirror’s frame to come on when the hotword is spoken/when the assistant is talking.  Much like how the Amazon Echo does.  I have the LED lights installed connected to a N-Channel MOSFET.  My trouble is trying to figure out how to activate a GPIO pin at the time when the hotword is spoken and when the assistant is talking.  I only have a PIR sensor plugged in on GPIO14 or pin 8 so almost all pins are available.  I have been trying to run searches for help on this but I have been unsuccessful (probably using the wrong keywords :face_with_tears_of_joy: :face_with_tears_of_joy: ).  Any help would be greatly appreciated. Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/topic/13547/mmm-googleassistant-and-led-lights</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 08:23:24 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/13547.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Aug 2020 21:29:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Wed, 27 Jan 2021 12:56:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sihtodstel" aria-label="Profile: Sihtodstel">@<bdi>Sihtodstel</bdi></a> i dont know. as i said u will have to construct some of this.</p>
]]></description><link>https://forum.magicmirror.builders/post/87869</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87869</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 27 Jan 2021 12:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Wed, 27 Jan 2021 09:04:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  yes i am using the recipe “with-status.js” but my question is how to use the status of GA in my python script or use different scripts on different status whichever is possible.</p>
]]></description><link>https://forum.magicmirror.builders/post/87860</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87860</guid><dc:creator><![CDATA[Sihtodstel]]></dc:creator><pubDate>Wed, 27 Jan 2021 09:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Wed, 27 Jan 2021 08:22:44 GMT]]></title><description><![CDATA[<p dir="auto">see the top of this topic. you will have to construct some of it</p>
]]></description><link>https://forum.magicmirror.builders/post/87859</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87859</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 27 Jan 2021 08:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Wed, 27 Jan 2021 07:43:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/callanpiper" aria-label="Profile: CallanPiper">@<bdi>CallanPiper</bdi></a> i have the same request.</p>
]]></description><link>https://forum.magicmirror.builders/post/87858</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87858</guid><dc:creator><![CDATA[Sihtodstel]]></dc:creator><pubDate>Wed, 27 Jan 2021 07:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Mon, 14 Sep 2020 01:07:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: Bugsounet">@<bdi>Bugsounet</bdi></a><br />
Hi guys, i’m new to python and i’m not sure how I would create a script that would turn on different GPIO pins depending on the GA staus. If someone could point me in the right direction that would be awesome!</p>
]]></description><link>https://forum.magicmirror.builders/post/81713</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81713</guid><dc:creator><![CDATA[CallanPiper]]></dc:creator><pubDate>Mon, 14 Sep 2020 01:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Thu, 03 Sep 2020 03:00:23 GMT]]></title><description><![CDATA[<p dir="auto">cool, thanks a lot for this, im looking forward to trying some stuff out! :)</p>
]]></description><link>https://forum.magicmirror.builders/post/81184</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81184</guid><dc:creator><![CDATA[banbutcher]]></dc:creator><pubDate>Thu, 03 Sep 2020 03:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Tue, 01 Sep 2020 08:52:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/banbutcher" aria-label="Profile: banbutcher">@<bdi>banbutcher</bdi></a>  <a class="plugin-mentions-user plugin-mentions-a" href="/user/pyroson" aria-label="Profile: Pyroson">@<bdi>Pyroson</bdi></a></p>
<p dir="auto">I have write a special <code>recipe</code> for you, with the latested version of MMM-GoogleAssistant :)</p>
<p dir="auto">the <code>recipe</code> name is <code>with-status.js</code> (locating: with the latest version of GA in recipes directory)</p>
<ul>
<li>How it’s works ?<br />
GA will send the status (stand-by, listen, …) to your wanted file</li>
</ul>
<pre><code>
/**  with-status.js **/
/**  send the status of assistant to a python script **/
/** For LED Strip for example **/
/**     @bugsounet       **/

var recipe = {
  commands: {
    "Status": {
      shellExec: {
        exec: (param) =&gt; {
            return "python /home/pi/myscript.py " + param.status.actual
        }
      }
    }
  },
  plugins: {
    onStatus: "Status"
  },
}

exports.recipe = recipe
</code></pre>
<p dir="auto">I have defined in the <code>with-status.js</code> sample<br />
to run this command : <code>python /home/pi/myscript.py Status_of_GA</code></p>
<ul>
<li>Status_of_GA can be :
<ul>
<li>listen</li>
<li>standby</li>
<li>confirmation</li>
<li>reply</li>
<li>error</li>
<li>hook</li>
</ul>
</li>
<li>You can change the name and the path of the script (I don’t force it) and can be and bash script or other</li>
<li>How load this recipe ?</li>
</ul>
<p dir="auto">in GA configuration, you have an recipe field</p>
<p dir="auto">just add it :)</p>
<p dir="auto">samples :</p>
<ul>
<li>
<p dir="auto"><code>recipes: [ "with-status.js" ],</code></p>
</li>
<li>
<p dir="auto"><code>recipes: [ "with-status.js", "with-MMM-TelegramBot.js" ],</code> for some other recipe needed</p>
</li>
</ul>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: bugsounet">@<bdi>bugsounet</bdi></a></p>
]]></description><link>https://forum.magicmirror.builders/post/81033</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81033</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 01 Sep 2020 08:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Mon, 31 Aug 2020 01:00:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: Bugsounet">@<bdi>Bugsounet</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Thanks guys</p>
]]></description><link>https://forum.magicmirror.builders/post/80961</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80961</guid><dc:creator><![CDATA[banbutcher]]></dc:creator><pubDate>Mon, 31 Aug 2020 01:00:43 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Mon, 31 Aug 2020 00:47:35 GMT]]></title><description><![CDATA[<p dir="auto">my code is protected, you can’t modify it.<br />
If you modify it, MM will close (self protected of GA/A2D)</p>
<p dir="auto">I will explain to you tomorrow how you can do<br />
If you have some python code, you can do it with GA (GA have some trigger on every events and you can use it)</p>
]]></description><link>https://forum.magicmirror.builders/post/80960</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80960</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 31 Aug 2020 00:47:35 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Sun, 30 Aug 2020 12:20:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/banbutcher" aria-label="Profile: banbutcher">@<bdi>banbutcher</bdi></a> python will have to be called from a node_helper as well, as u can’t exec code from a browser.</p>
<p dir="auto">there are all kinds of examples of this.</p>
<p dir="auto">his code is minified, makes it faster to execute, and harder to take.</p>
]]></description><link>https://forum.magicmirror.builders/post/80940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80940</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 30 Aug 2020 12:20:33 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Sun, 30 Aug 2020 05:26:06 GMT]]></title><description><![CDATA[<p dir="auto">curious to this aswell as i have the ReSpeaker 4 mic array with 12 leds and i was trying to do the same… as far as i know theres 4 stage: wake up, listen, think and speak.  i have sample python scripts for each stage with a corresponding light patternand  im still looking to see if i can figure it out where to call them from but no joy yet! :/</p>
<p dir="auto">for me when looking through <a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: Bugsounet">@<bdi>Bugsounet</bdi></a> code, it all appears on one line (no line breaks) and is pretty hard to try and read… is this on purpose and the same for all?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/80927</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80927</guid><dc:creator><![CDATA[banbutcher]]></dc:creator><pubDate>Sun, 30 Aug 2020 05:26:06 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Sun, 30 Aug 2020 01:48:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyroson" aria-label="Profile: Pyroson">@<bdi>Pyroson</bdi></a> here is a module that turns off/on LEDs on gpio</p>
<p dir="auto"><a href="https://github.com/idoodler/MMM-RPI-LED" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/idoodler/MMM-RPI-LED</a></p>
<p dir="auto">you could extend that to twiddle the lights like u need</p>
]]></description><link>https://forum.magicmirror.builders/post/80926</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80926</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 30 Aug 2020 01:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-GoogleAssistant and LED Lights on Sat, 29 Aug 2020 22:31:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyroson" aria-label="Profile: Pyroson">@<bdi>Pyroson</bdi></a> u will need a module, with a node_helper to talk to the gpio pins, as u can’t do that from the modulename.js as it runs in the browser.</p>
<p dir="auto">there might be a generic module to twiddle the LEDs.</p>
]]></description><link>https://forum.magicmirror.builders/post/80919</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/80919</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 29 Aug 2020 22:31:45 GMT</pubDate></item></channel></rss>