<?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: How to do simple math in Script Editor in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/442556#M19361</link>
    <description>&lt;P&gt;I just want to comment in case it helps with visibility. This is something I would like to do as well, and haven't found a solution.&lt;/P&gt;&lt;P&gt;I'd like to do something like set the temp like this: &lt;STRONG&gt;thermostatTemperatureSetpoint: thermostatTemperatureAmbient - 2&lt;/STRONG&gt; with the starter being greater than (or equal to)&amp;nbsp; a specific humidity value.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 23:25:21 GMT</pubDate>
    <dc:creator>1teegulley</dc:creator>
    <dc:date>2023-06-28T23:25:21Z</dc:date>
    <item>
      <title>How to do simple math in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/436861#M18933</link>
      <description>&lt;P&gt;I need to run additional fans when my AC unit can't keep my house temperature under control. I would like to monitor the current ambient temperature against my thermostat setpoint and turn them on when I see a 2 degree temperature difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like to assign a variable with a value that would be:&amp;nbsp;&lt;SPAN&gt;thermostatTemperatureSetpoint + 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I would like to create a starter that would be active when the&amp;nbsp;thermostatTemperatureAmbient &amp;gt; variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, I cannot find a way to do this, can anyone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another option I thought of is to compare the ambient against the setpoint, and if the ambient is greater for a given time than start the fans.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Again, I cannot find a way to do this. Any thoughts or ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 05:55:56 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/436861#M18933</guid>
      <dc:creator>JerryInTennesse</dc:creator>
      <dc:date>2023-06-19T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do simple math in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/442556#M19361</link>
      <description>&lt;P&gt;I just want to comment in case it helps with visibility. This is something I would like to do as well, and haven't found a solution.&lt;/P&gt;&lt;P&gt;I'd like to do something like set the temp like this: &lt;STRONG&gt;thermostatTemperatureSetpoint: thermostatTemperatureAmbient - 2&lt;/STRONG&gt; with the starter being greater than (or equal to)&amp;nbsp; a specific humidity value.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:25:21 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/442556#M19361</guid>
      <dc:creator>1teegulley</dc:creator>
      <dc:date>2023-06-28T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to do simple math in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/543443#M35958</link>
      <description>&lt;P&gt;I'm with you on this one too..&lt;/P&gt;&lt;P&gt;I have a simple heating system with an RF controlled Boiler. I want to be able to set my TRVs to a set point (variable) day by day and then have an automation that effectively reads:&lt;/P&gt;&lt;P&gt;starters:&lt;BR /&gt;- type: device.state.TemperatureSetting&lt;BR /&gt;state: thermostatTemperatureAmbient&lt;BR /&gt;device: &amp;lt;MY_TRV_DEVICE&amp;gt;&lt;BR /&gt;greaterThan: device.&amp;nbsp;state.ThermostatTemperatureSetpoint&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:45:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/543443#M35958</guid>
      <dc:creator>richrobuk</dc:creator>
      <dc:date>2023-11-06T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to do simple math in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/543532#M35964</link>
      <description>&lt;P&gt;I went to HomeAssistant for a while but for me it was quite a headache setting up a server on a spare PC. I'm still hoping Google supports their script editor with new features and capabilities, but after 5 months I'm losing faith here too.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 17:43:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/543532#M35964</guid>
      <dc:creator>JerryInTennesse</dc:creator>
      <dc:date>2023-11-06T17:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to do simple math in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/675782#M51582</link>
      <description>&lt;P&gt;I agree, I've been trying to do the same sort of thing and I can't believe it should be that difficult to create 'calculated variables' within the script editor.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 23:49:55 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-do-simple-math-in-Script-Editor/m-p/675782#M51582</guid>
      <dc:creator>JohnF1</dc:creator>
      <dc:date>2025-02-08T23:49:55Z</dc:date>
    </item>
  </channel>
</rss>

