<?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: Control Nest Thermostat with Script Editor if temp exceeds a set limit in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435706#M18734</link>
    <description>&lt;P&gt;With the typo, it did not pass the validation, but being new to this scripting, the error was not specific to pinpoint the issue.&amp;nbsp; The error was showing an invalid struct or something similar to that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once I made the changes noted above, the script passed the validation.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a condition as well to ensure this applied to running in Cool mode:&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;type: device.state.TemperatureSetting # Handles temperature points and modes of a thermostat device.&lt;BR /&gt;state: activeThermostatMode&lt;BR /&gt;is: cool&lt;BR /&gt;device: Dining Room Thermostat - Dining Room&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll spend some time to make this more elegant and efficient and apply to all 4 of my thermostats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if it's better to have one automation per thermostat or combine them all into one for the same action(s).&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jun 2023 06:20:54 GMT</pubDate>
    <dc:creator>krroller</dc:creator>
    <dc:date>2023-06-17T06:20:54Z</dc:date>
    <item>
      <title>Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/434600#M18594</link>
      <description>&lt;P&gt;Is it possible to create an automation routine with the new script editor to be able to change the temperature when the temperature exceeds a limit?&lt;/P&gt;&lt;P&gt;I used to have this functionality with the IFTTT and "Works with Nest" integration before Google pulled support for it.&lt;/P&gt;&lt;P&gt;As an example, if the Nest Thermostat is in Cool mode and the temperature drops below 73 degrees, then set the temperature to 74 degrees.&amp;nbsp; This works well for scenarios where someone might turn the thermostat too low.&lt;/P&gt;&lt;P&gt;A related automation routine would be when the Nest Thermostat is in Heat mode and temperature exceeds 76 degrees, reset the temperature to 72 degrees.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be done with the new script editor?&lt;/P&gt;&lt;P&gt;I realize the thermostat can be locked to limit the temperature to a pre-set range, but there are scenarios where a short term override by anyone is applicable without having to unlock the thermostat.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:17:31 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/434600#M18594</guid>
      <dc:creator>krroller</dc:creator>
      <dc:date>2023-06-17T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435658#M18716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/188797"&gt;@krroller&lt;/a&gt;&amp;nbsp;- I wonder if the following examples can help with your use case:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.home.google.com/automations/example-scripts#cool_weather_heating" target="_blank" rel="noopener"&gt;Cool weather heating&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.home.google.com/automations/example-scripts#warm_weather_ventilation" target="_blank" rel="noopener"&gt;Warm weather ventilation&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 17 Jun 2023 02:24:23 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435658#M18716</guid>
      <dc:creator>Prafulla</dc:creator>
      <dc:date>2023-06-17T02:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435697#M18729</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; These examples helped find my errors which were a case sensitive "lessThan" where I had a capital L&amp;nbsp; which was throwing an error; and I also neglected to indicate the temperature scale as F or C.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of rookie mistakes.&amp;nbsp; ;-(&lt;/P&gt;&lt;P&gt;Here is what I came up with:&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Dining Room Temp Less 73&lt;BR /&gt;description: If Cooling drops below 73 set it to 74&lt;BR /&gt;automations:&lt;BR /&gt;# “starters” and “actions” are required; “condition” is optional.&lt;BR /&gt;# ---- STARTERS ---- #&lt;BR /&gt;# Starters describe events that will start the automation.&lt;BR /&gt;starters:&lt;BR /&gt;- type: device.state.TemperatureSetting # Handles temperature points and modes of a thermostat device.&lt;BR /&gt;state: thermostatTemperatureAmbient&lt;BR /&gt;lessThan: 73F&lt;BR /&gt;device: Dining Room - Dining Room&lt;/P&gt;&lt;P&gt;# ---- ACTIONS ---- #&lt;BR /&gt;# Actions will start when a starter event takes place and all conditions are met.&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.ThermostatTemperatureSetpoint # Set the target temperature for a thermostat device.&lt;BR /&gt;thermostatTemperatureSetpoint: 74F&lt;BR /&gt;devices: Dining Room - Dining Room&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:16:14 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435697#M18729</guid>
      <dc:creator>krroller</dc:creator>
      <dc:date>2023-06-17T06:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435704#M18732</link>
      <description>&lt;P&gt;Awesome.. good to hear that!&lt;/P&gt;&lt;P&gt;Did your script pass validation with that typo?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:03:37 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435704#M18732</guid>
      <dc:creator>Prafulla</dc:creator>
      <dc:date>2023-06-17T06:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435706#M18734</link>
      <description>&lt;P&gt;With the typo, it did not pass the validation, but being new to this scripting, the error was not specific to pinpoint the issue.&amp;nbsp; The error was showing an invalid struct or something similar to that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once I made the changes noted above, the script passed the validation.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a condition as well to ensure this applied to running in Cool mode:&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;type: device.state.TemperatureSetting # Handles temperature points and modes of a thermostat device.&lt;BR /&gt;state: activeThermostatMode&lt;BR /&gt;is: cool&lt;BR /&gt;device: Dining Room Thermostat - Dining Room&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll spend some time to make this more elegant and efficient and apply to all 4 of my thermostats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if it's better to have one automation per thermostat or combine them all into one for the same action(s).&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:20:54 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435706#M18734</guid>
      <dc:creator>krroller</dc:creator>
      <dc:date>2023-06-17T06:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Control Nest Thermostat with Script Editor if temp exceeds a set limit</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435841#M18756</link>
      <description>&lt;P&gt;Thank you for the feedback&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/188797"&gt;@krroller&lt;/a&gt;&amp;nbsp;- Taking a note to improve the validation message.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 14:39:32 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Control-Nest-Thermostat-with-Script-Editor-if-temp-exceeds-a-set-limit/m-p/435841#M18756</guid>
      <dc:creator>Prafulla</dc:creator>
      <dc:date>2023-06-17T14:39:32Z</dc:date>
    </item>
  </channel>
</rss>

