<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script Editor - starter based on comparison between two devices' values in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/728800#M9042</link>
    <description>&lt;P&gt;Thank you for confirming and for suggesting a bug is created. Just did that. Bug id&amp;nbsp;433073111 created. Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jul 2025 19:20:38 GMT</pubDate>
    <dc:creator>fabiomolinar</dc:creator>
    <dc:date>2025-07-20T19:20:38Z</dc:date>
    <item>
      <title>Script Editor - starter based on comparison between two devices' values</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/727851#M8995</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to start an automation based on the values of two temperature sensors. Let's call them&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Device A&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Device B&lt;/STRONG&gt;. I want to get a notification when temperature at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Device A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is greater than or equal to the temperature at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Device B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, I can only assign &lt;STRONG&gt;fixed values&lt;/STRONG&gt; to the &lt;STRONG&gt;greaterThanOrEqualTo&lt;/STRONG&gt; field. It would be great if instead I could set this field to the value from another sensor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See pseudo-code below of what I would like to see working:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;metadata:
  name: Temperature Alert - Send Notification
  description: If Temp A &amp;gt; Temp B, send a notification and turn the lock on.
automations:
  - starters:
      - type: device.state.TemperatureControl
        device: Device A
        state: temperatureAmbient
        suppressFor: 20hour
        greaterThanOrEqualTo:&lt;BR /&gt;           device: Device B&lt;BR /&gt;           state: temperatureAmbient
    actions:
      - type: home.command.Notification
        title: Temperature Alert!
        body: Temp A &amp;gt; Temp B&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code above you can see that instead of assigning a fixed value to&amp;nbsp;&lt;STRONG&gt;greaterThanOrEqualTo&lt;/STRONG&gt; field, it's defined as a &lt;STRONG&gt;Struct&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 08:29:57 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/727851#M8995</guid>
      <dc:creator>fabiomolinar</dc:creator>
      <dc:date>2025-07-16T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script Editor - starter based on comparison between two devices' values</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/728394#M9007</link>
      <description>&lt;P data-start="62" data-end="304"&gt;Unfortunately, Google Home Automations Script Editor does &lt;STRONG data-start="135" data-end="214"&gt;not currently support comparing dynamic values between two devices directly&lt;/STRONG&gt;, like you're trying to do with greaterThanOrEqualTo referencing another device’s state.&lt;/P&gt;
&lt;P data-start="306" data-end="584"&gt;I recommend submitting a feature request via&amp;nbsp;&lt;A href="https://issuetracker.google.com/issues/new?component=655104&amp;amp;template=1694023" target="_self"&gt;Google Issue Tracker.&lt;/A&gt; The more visibility and feedback this feature gets, the more likely it is to be considered in future updates. Please share the issue ID here.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-18 at 12.33.05 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.googlenestcommunity.com/t5/image/serverpage/image-id/56672i190FF6A5894D3112/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-18 at 12.33.05 PM.png" alt="Screenshot 2025-07-18 at 12.33.05 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 19:36:48 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/728394#M9007</guid>
      <dc:creator>arm_dpe</dc:creator>
      <dc:date>2025-07-18T19:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script Editor - starter based on comparison between two devices' values</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/728800#M9042</link>
      <description>&lt;P&gt;Thank you for confirming and for suggesting a bug is created. Just did that. Bug id&amp;nbsp;433073111 created. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 19:20:38 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-starter-based-on-comparison-between-two-devices-values/m-p/728800#M9042</guid>
      <dc:creator>fabiomolinar</dc:creator>
      <dc:date>2025-07-20T19:20:38Z</dc:date>
    </item>
  </channel>
</rss>

