<?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 Script Editor And Condition. in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723554#M8871</link>
    <description>&lt;P&gt;I have a night time script that shuts down the house once we've gone to bed. I have multiple starting triggers just in case we aren't in bed/home at the original trigger point. I've also built in a condition block to prevent it from running over and over. However the script is continuing to do so. Doing some debugging the first condition(Presence sensing) is working correctly however it seems that the second part(And) of this condition is not working as I expect:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`condition:`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`type: and`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# "AND" together two or more conditionals`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`conditions:`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: home.state.HomePresence`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`state: homePresenceMode`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# [available operators: is, isNot]`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`is: HOME`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: device.state.ArmDisarm # For devices such as security systems that support arming and disarming, this indicates whether the device is armed or disarmed.`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`state: isArmed`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`is: false`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`device: ADT - Coat Closet`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on why this condition is still returning as TRUE where it should return as false after the first execution? Especially seeing part of the script is setting the security system:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: device.command.ArmDisarm # Set the alarm level of the device.`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to arm the device, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to disarm. [Available parameter options: arm, cancel, armLevel]`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`arm: true`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`devices: ADT - Coat Closet`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`armLevel: NIGHT`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA!&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jun 2025 05:35:41 GMT</pubDate>
    <dc:creator>yodatom10</dc:creator>
    <dc:date>2025-06-21T05:35:41Z</dc:date>
    <item>
      <title>Script Editor And Condition.</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723554#M8871</link>
      <description>&lt;P&gt;I have a night time script that shuts down the house once we've gone to bed. I have multiple starting triggers just in case we aren't in bed/home at the original trigger point. I've also built in a condition block to prevent it from running over and over. However the script is continuing to do so. Doing some debugging the first condition(Presence sensing) is working correctly however it seems that the second part(And) of this condition is not working as I expect:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`condition:`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`type: and`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# "AND" together two or more conditionals`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`conditions:`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: home.state.HomePresence`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`state: homePresenceMode`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# [available operators: is, isNot]`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`is: HOME`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: device.state.ArmDisarm # For devices such as security systems that support arming and disarming, this indicates whether the device is armed or disarmed.`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`state: isArmed`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`is: false`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`device: ADT - Coat Closet`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on why this condition is still returning as TRUE where it should return as false after the first execution? Especially seeing part of the script is setting the security system:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`- type: device.command.ArmDisarm # Set the alarm level of the device.`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`# &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to arm the device, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to disarm. [Available parameter options: arm, cancel, armLevel]`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`arm: true`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`devices: ADT - Coat Closet`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`armLevel: NIGHT`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jun 2025 05:35:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723554#M8871</guid>
      <dc:creator>yodatom10</dc:creator>
      <dc:date>2025-06-21T05:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script Editor And Condition.</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723761#M8875</link>
      <description>&lt;P&gt;Thanks for sharing. Can you please provide the full automation script for us to better understand the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 17:49:01 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723761#M8875</guid>
      <dc:creator>arm_dpe</dc:creator>
      <dc:date>2025-06-23T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Editor And Condition.</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723860#M8878</link>
      <description>&lt;P&gt;Sure:&lt;/P&gt;&lt;P&gt;# ------------------------------------------------------------------------------------------ #&lt;/P&gt;&lt;P&gt;# Lines starting with “#” are comments and will be ignored by the automation.&lt;/P&gt;&lt;P&gt;# Indentation determines hierarchy within the script.&lt;/P&gt;&lt;P&gt;# Visit g.co/home/script-editor-docs for full documentation.&lt;/P&gt;&lt;P&gt;# ------------------------------------------------------------------------------------------ #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;/P&gt;&lt;P&gt;&amp;nbsp; name: Good Night # Choose a short name that summarizes important starters and actions, like “Sunset lights”.&lt;/P&gt;&lt;P&gt;&amp;nbsp; description: Locks Doors, Arms security,lowers temp , turns off lights and starts downstairs vacuum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;automations:&lt;/P&gt;&lt;P&gt;&amp;nbsp; # “starters” and “actions” are required; “conditions” are optional.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Use Ctrl + Space to see autocomplete suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; # ---- STARTERS ---- #&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Starters describe events that will start the automation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # To add more than one starter, duplicate the "- type" section under "starters".&lt;/P&gt;&lt;P&gt;&amp;nbsp; # If you add multiple starter events, any one of them happening will start the automation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; starters:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: time.schedule&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Required. Time to schedule automation. Accepts either clock time (10:00:00 AM, with seconds optional, or in a 24 hour format), or 'sunrise' or 'sunset', with an optional offset ('sunrise+10m', for instance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at: 11:00 PM # HH:MM XM (12 hours format). Adjust time as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Optional. Days of the week to run automation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; weekdays:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - MON&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - TUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - WED&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - THU&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - FRI&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: time.schedule&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Required. Time to schedule automation. Accepts either clock time (10:00:00 AM, with seconds optional, or in a 24 hour format), or 'sunrise' or 'sunset', with an optional offset ('sunrise+10m', for instance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at: 12:00 am # HH:MM XM (12 hours format). Adjust time as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Optional. Days of the week to run automation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; weekdays:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - MON&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - TUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - WED&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - THU&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - FRI&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: time.schedule&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Required. Time to schedule automation. Accepts either clock time (10:00:00 AM, with seconds optional, or in a 24 hour format), or 'sunrise' or 'sunset', with an optional offset ('sunrise+10m', for instance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at: 1:00 am # HH:MM XM (12 hours format). Adjust time as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Optional. Days of the week to run automation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; weekdays:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - MON&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - TUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - WED&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - THU&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - FRI&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SUN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: time.schedule&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Required. Time to schedule automation. Accepts either clock time (10:00:00 AM, with seconds optional, or in a 24 hour format), or 'sunrise' or 'sunset', with an optional offset ('sunrise+10m', for instance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at: 2:00 am # HH:MM XM (12 hours format). Adjust time as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Optional. Days of the week to run automation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; weekdays:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - MON&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - TUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - WED&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - THU&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - FRI&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - SUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; # ---- CONDITIONS ---- #&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Conditions are optional. Delete this section if it’s empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Conditions will prevent an automation from starting if the conditions aren’t met.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # See g.co/home/script-editor-docs for documentation about how to use logical operators like “and”, “or”, and “not”.&lt;/P&gt;&lt;P&gt;&amp;nbsp; condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; type: and&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; # "AND" together two or more conditionals&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; conditions:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - type: home.state.HomePresence&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state: homePresenceMode&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # [available operators: is, isNot]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is: HOME&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - type: device.state.ArmDisarm # For devices such as security systems that support arming and disarming, this indicates whether the device is armed or disarmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state: isArmed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is: false&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device: ADT - Coat Closet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; # ---- ACTIONS ---- #=&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Actions will start when a starter event takes place and all conditions are met.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Actions will start in the order they appear in the script and with any delay specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # To add more than one action, duplicate the "- type" section under "actions".&lt;/P&gt;&lt;P&gt;&amp;nbsp; actions:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: device.command.OnOff # Turn the device on or off.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Whether to turn the device on or off.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; on: false&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Front Yard Lights - Front Yard&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Master Bathroom Lights - Master Bathroom&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Garage Lights - Garage&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Entryway Lights - Entryway&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Family Room Lights - Family Room&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Kitchen Lights - Kitchen&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Stairway Lights - Stairway&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Office Light overhead - Office&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #- Parents Room Overhead - Parents Room&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Master Bedroom Lights - Master Bedroom&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Dining Room light - Dining Room&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Front Yard Fountain - Front Yard&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Entryway Fountain - Entryway&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: device.command.LockUnlock # Lock or unlock the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to lock the device, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to unlock.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lock: true&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices: Garage Entry Lock - Garage&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: device.command.ArmDisarm # Set the alarm level of the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to arm the device, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to disarm. [Available parameter options: arm, cancel, armLevel]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; arm: true&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices: ADT - Coat Closet&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; armLevel: NIGHT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: device.command.StartStop # Start or stop the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to start device operation, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to stop.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; start: true&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices: Jojoba - Dining Room&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: home.command.Notification # Send a notification to the specified home members.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Title of the notification. [Available parameter options: title, body, members]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; title: Debug&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; body: "Good Night Automation has just ran"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; members: #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - type: device.command.ThermostatTemperatureSetpoint # Set the target temperature for a ther&lt;/P&gt;&lt;P&gt;mostat device.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Target temperature setpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; thermostatTemperatureSetpoint: 70F&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices: Thermostat - Entryway&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 05:35:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/723860#M8878</guid>
      <dc:creator>yodatom10</dc:creator>
      <dc:date>2025-06-24T05:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script Editor And Condition.</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/724543#M8912</link>
      <description>&lt;P&gt;Thanks for sharing the full script. We weren’t able to reproduce the issue on our end using virtual devices in the &lt;A href="https://developers.home.google.com/tools/home-playground" target="_self"&gt;Google Home Playground.&lt;/A&gt; We used the same condition structure, and &lt;STRONG&gt;the script did not run again&lt;/STRONG&gt; when the presence was set to &lt;EM data-start="383" data-end="389"&gt;HOME&lt;/EM&gt; and the security system was already armed:&lt;/P&gt;
&lt;P&gt;condition:&lt;BR /&gt;type: and&lt;BR /&gt;conditions:&lt;BR /&gt;- type: home.state.HomePresence&lt;BR /&gt;state: homePresenceMode&lt;BR /&gt;is: HOME&lt;BR /&gt;- type: device.state.ArmDisarm&lt;BR /&gt;state: isArmed&lt;BR /&gt;is: false&lt;BR /&gt;device: securitysystem - Entryway&lt;/P&gt;
&lt;P&gt;How do you determine whether the script is running more than once?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 22:30:03 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-Editor-And-Condition/m-p/724543#M8912</guid>
      <dc:creator>arm_dpe</dc:creator>
      <dc:date>2025-06-26T22:30:03Z</dc:date>
    </item>
  </channel>
</rss>

