<?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]]></title><description><![CDATA[<p dir="auto">I would like to send a notification, when a sensor changes its value,<br />
like the solar production value.<br />
How to set the ‘stateVals’  array in that case ?</p>
<p dir="auto">Example :</p>
<pre><code>                    {
                        sensor: "sensor.solarproduktion",
                        notificationName: "MMM-EnergyMonitor_SOLAR_POWER_UPDATE",
                        notificationConditions: [
					{
						stateVals: [?????????],
						notificationVal: "%v%"
					}
                        ],
                        name: "Produktion",
                    },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/18307/mmm-homeassistant-sensors</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 02:56:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18307.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Dec 2023 10:02:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-homeassistant-sensors on Sun, 31 Dec 2023 19:27:02 GMT]]></title><description><![CDATA[<p dir="auto">I’m the one who wrote this functionality for this module, and I didn’t exactly design it to be able to send a notification for every state change. I designed it to look for a specific state and send a notification when the state matches something you’re looking for.</p>
<p dir="auto">For example, if you want something to happen when your smart lock is in the unlocked state.</p>
<p dir="auto">That being said, I just looked at the code again, and I don’t think it would be too difficult to modify it to notify on every state change if stateVal is empty.</p>
<p dir="auto">Give me some time and I’ll see what I can do to make this happen for you.</p>
<p dir="auto">I assume you would want the notification to return the current state of the sensor?</p>
]]></description><link>https://forum.magicmirror.builders/post/113728</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113728</guid><dc:creator><![CDATA[Fifteen15Studios]]></dc:creator><pubDate>Sun, 31 Dec 2023 19:27:02 GMT</pubDate></item></channel></rss>