<?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-homeassistant-sensors certificate expired]]></title><description><![CDATA[<p dir="auto">A few weeks ago, my MM showed “Error fetching stats.” where my MMM-homeassistant-sensors module is usually displayed.  It has been working for just over a year.</p>
<p dir="auto">I turned debug logging on and restarted MM. The following error was logged:</p>
<pre><code>[2021-10-07 21:00:37.634] [LOG]    Starting MagicMirror: v2.13.0
[2021-10-07 21:00:37.642] [LOG]    Loading config ...
[2021-10-07 21:00:37.646] [LOG]    Loading module helpers ...
[2021-10-07 21:00:37.987] [LOG]    Initializing new module helper ...
[2021-10-07 21:00:37.988] [LOG]    Module helper loaded: MMM-homeassistant-sensors
[2021-10-07 21:00:37.988] [LOG]    All module helpers loaded.
[2021-10-07 21:00:38.123] [LOG]    Starting server on port 8080 ... 
[2021-10-07 21:00:38.137] [LOG]    Server started ...
[2021-10-07 21:00:38.138] [LOG]    Connecting socket for: MMM-homeassistant-sensors
[2021-10-07 21:00:38.139] [LOG]    Sockets connected &amp; modules started ...
[2021-10-07 21:00:38.246] [LOG]    Launching application.
[2021-10-07 21:00:40.393] [ERROR]  MMM-homeassistant-sensors - buildUrl: https://XXXXXXXXXXX.duckdns.org:443/api/states
[2021-10-07 21:00:40.395] [ERROR]  MMM-homeassistant-sensors: Adding token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2021-10-07 21:00:40.559] [ERROR]  MMM-homeassistant-sensors ERROR: Error: certificate has expired
    at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
    at TLSSocket.emit (events.js:200:13)
    at TLSSocket._finishInit (_tls_wrap.js:792:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) {
  code: 'CERT_HAS_EXPIRED'
}
[2021-10-07 21:00:40.569] [ERROR]  Whoops! There was an uncaught exception...
[2021-10-07 21:00:40.570] [ERROR]  TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (/home/pi/MagicMirror/modules/MMM-homeassistant-sensors/node_helper.js:22:77)
    at self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
    at Request.emit (events.js:200:13)
    at Request.onRequestError (/home/pi/MagicMirror/node_modules/request/request.js:877:8)
    at ClientRequest.emit (events.js:200:13)
    at TLSSocket.socketErrorListener (_http_client.js:402:9)
    at TLSSocket.emit (events.js:200:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)
[2021-10-07 21:00:40.573] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2021-10-07 21:00:40.574] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[2021-10-07 21:00:46.509] [LOG]    Shutting down server...
[2021-10-07 21:00:46.510] [LOG]    Stopping module helper: MMM-homeassistant-sensors
</code></pre>
<p dir="auto">I checked to make sure that the host configured was resolvable from the MM Pi. That was fine.</p>
<p dir="auto">I then opened the Chromium browser on the Pi and navigated to <a href="https://XXXXXXXXX.duckdns.org/" target="_blank" rel="noopener noreferrer nofollow ugc">https://XXXXXXXXX.duckdns.org/</a> which worked fine. I click on the lock and the pop up said “Connection is secure” and that the certificate is valid.</p>
<p dir="auto">I did this on another computer just to be sure and had the same results.</p>
<p dir="auto">I removed all other modules from my config.js and only left one switch configured for MMM-homeassistant-sensors and restarted just to be sure there wasn’t something weird in the config.js. Problem is still there.</p>
<p dir="auto">I checked the DuckDNS AddOn and updated to the latest and restarted it. The problem persisted. I restarted HA just in case. Still the same problem.</p>
<p dir="auto">I installed the Cert Expiry AddOn just in case and it says the cert will expire in 13 weeks. Maybe silly, but I checked the date time stamp on the MM Pi just to be sure. It was correct too.</p>
<p dir="auto">I can only assume that the error that is thrown from the module is referring to the HA URL, correct? If that’s true, that cert seems totally fine.</p>
<p dir="auto">Any suggestions for what else to try?</p>
]]></description><link>https://forum.magicmirror.builders/topic/15711/mmm-homeassistant-sensors-certificate-expired</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 13:07:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15711.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Oct 2021 01:24:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-homeassistant-sensors certificate expired on Fri, 08 Oct 2021 17:50:29 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> Thank you very much! That was it. I updated MMM to do it. There were some missing modules after I did that, but I installed those and everything came up aces!</p>
<p dir="auto">Thanks again for your help. I never would have known about that electron bug.</p>
]]></description><link>https://forum.magicmirror.builders/post/95396</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95396</guid><dc:creator><![CDATA[drwatson]]></dc:creator><pubDate>Fri, 08 Oct 2021 17:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-homeassistant-sensors certificate expired on Fri, 08 Oct 2021 03:04:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/drwatson" aria-label="Profile: drwatson">@<bdi>drwatson</bdi></a> there was an expired certificate authority certificate. and a bug in electron.</p>
<p dir="auto">fixed in 2.17.1 just released last week.</p>
]]></description><link>https://forum.magicmirror.builders/post/95372</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95372</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 08 Oct 2021 03:04:22 GMT</pubDate></item></channel></rss>