<?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: Google Home Script Editor Not Saving in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493304#M23086</link>
    <description>&lt;P&gt;Ah ok, I have the same motion sensors. Try using device.state.MotionDetection instead and set&amp;nbsp;motionDetectionEventInProgress to true and see if that works. FWIW, I did the Matter upgrade to my Hue Bridge and it seems to have changed the motion sensors to use the device.state.OccupancySensing starter.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 12:24:09 GMT</pubDate>
    <dc:creator>nickfromgoogle</dc:creator>
    <dc:date>2023-10-19T12:24:09Z</dc:date>
    <item>
      <title>Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/491744#M22977</link>
      <description>&lt;P&gt;I'm having a heck of a time trying to figure out why my scripts within the Google Home Script Editor aren't saving, and aren't able to be activated.&lt;/P&gt;&lt;P&gt;All the code is coming back as "valid" and no errors are being flagged, except for the fact it simply wont save, and won't be activated.&lt;/P&gt;&lt;P&gt;I feel as though there's some missing line of code that's missing, but it's not being flagged for me to find.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2023 16:10:06 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/491744#M22977</guid>
      <dc:creator>jcbale</dc:creator>
      <dc:date>2023-10-15T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/492998#M23068</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/433957"&gt;@jcbale&lt;/a&gt;&amp;nbsp;- do you mind sharing your script with personal/sensitive info redacted? (you can use the insert code function in you the response text box on the forum to better format your code - I've had luck selecting CSS as the language)&amp;nbsp; My recommendation would be to try to comment out segments of your script to isolate the problematic starter, condition, or action.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:55:30 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/492998#M23068</guid>
      <dc:creator>nickfromgoogle</dc:creator>
      <dc:date>2023-10-18T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493288#M23080</link>
      <description>&lt;P&gt;Fair enough!&amp;nbsp; Here's the newest bit that I can't get to save, even though there's no errors being flagged.&lt;A title="Screenshot" href="https://i.postimg.cc/G3WmyJsh/Script.png" target="_blank" rel="noopener"&gt;https://i.postimg.cc/G3WmyJsh/Script.png&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a formatted image of the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for the actual text, though badly formatted&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;# ------------------------------------------------------------------------------------------ #&lt;BR /&gt;# Lines starting with “#” are comments and will be ignored by the automation.&lt;BR /&gt;# Indentation determines hierarchy within the script.&lt;BR /&gt;# Visit g.co/home/script-editor-docs for full documentation.&lt;BR /&gt;# ------------------------------------------------------------------------------------------ #&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Motion Sensor First Floor Stairs Garage Only # Choose a short name that summarizes important starters and actions, like “Sunset lights”.&lt;BR /&gt;description: When tripped, turn the garage light on for 5 minutes # Write a detailed description that includes everything the automation does, like “At sunset, on weekdays, close blinds, turn on lights to 50%, and play the sunset playlist on certain speakers.”&lt;/P&gt;&lt;P&gt;automations:&lt;BR /&gt;# “starters” and “actions” are required; “conditions” are optional.&lt;BR /&gt;# Use Ctrl + Space to see autocomplete suggestions.&lt;/P&gt;&lt;P&gt;# ---- STARTERS ---- #&lt;BR /&gt;# Starters describe events that will start the automation.&lt;BR /&gt;# To add more than one starter, duplicate the "- type" section under "starters".&lt;BR /&gt;# If you add multiple starter events, any one of them happening will start the automation.&lt;BR /&gt;starters:&lt;BR /&gt;- type: device.event.MotionDetection # Motion has been detected by the device.&lt;BR /&gt;device: Stairway - Staircase&lt;/P&gt;&lt;P&gt;# ---- CONDITIONS ---- #&lt;BR /&gt;# Conditions are optional. Delete this section if it’s empty.&lt;BR /&gt;# Conditions will prevent an automation from starting if the conditions aren’t met.&lt;BR /&gt;# See g.co/home/script-editor-docs for documentation about how to use logical operators like “and”, “or”, and “not”.&lt;BR /&gt;condition:&lt;BR /&gt;type: device.state.OnOff&lt;BR /&gt;state: on&lt;BR /&gt;# [available operators: is, isNot]&lt;BR /&gt;is: false&lt;BR /&gt;device: Garage Light - Garage&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 will start in the order they appear in the script and with any delay specified.&lt;BR /&gt;# To add more than one action, duplicate the "- type" section under "actions".&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff # Turn the device on or off.&lt;BR /&gt;on: true&lt;BR /&gt;devices: Garage Light - Garage&lt;BR /&gt;- type: time.delay&lt;BR /&gt;for: 5min&lt;BR /&gt;- type: device.command.OnOff # Turn the device on or off.&lt;BR /&gt;on: false&lt;BR /&gt;devices: Garage Light - Garage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 10:13:01 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493288#M23080</guid>
      <dc:creator>jcbale</dc:creator>
      <dc:date>2023-10-19T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493301#M23083</link>
      <description>&lt;P&gt;Thanks for sharing your script. What type of motion sensor is the device used in the starter?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:08:02 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493301#M23083</guid>
      <dc:creator>nickfromgoogle</dc:creator>
      <dc:date>2023-10-19T12:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493303#M23085</link>
      <description>&lt;P&gt;It's a philips hue indoor motion sensor.&amp;nbsp; All the commands I used were prompted by the editor,&amp;nbsp; so not sure why it's messing up.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:13:08 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493303#M23085</guid>
      <dc:creator>jcbale</dc:creator>
      <dc:date>2023-10-19T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493304#M23086</link>
      <description>&lt;P&gt;Ah ok, I have the same motion sensors. Try using device.state.MotionDetection instead and set&amp;nbsp;motionDetectionEventInProgress to true and see if that works. FWIW, I did the Matter upgrade to my Hue Bridge and it seems to have changed the motion sensors to use the device.state.OccupancySensing starter.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:24:09 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/493304#M23086</guid>
      <dc:creator>nickfromgoogle</dc:creator>
      <dc:date>2023-10-19T12:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/536364#M35314</link>
      <description>&lt;P&gt;So it seems as though you were on the right track with the wrong type of command for motion sensor.&amp;nbsp; But for some reason, it wanted the following code.&amp;nbsp; Super dumb that it still prompts the other command instead. sigh... thanks for you help&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/374010"&gt;@nickfromgoogle&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;starters:&lt;BR /&gt;- type: device.state.MotionDetection&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;state: motionDetectionEventInProgress&lt;BR /&gt;&amp;nbsp; &amp;nbsp; is: true&lt;BR /&gt;&amp;nbsp; &amp;nbsp; device: Stairway01 - Staircase&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 20:11:59 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/536364#M35314</guid>
      <dc:creator>jcbale</dc:creator>
      <dc:date>2023-10-30T20:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/536377#M35319</link>
      <description>&lt;P&gt;Glad to hear you were able to get your script working&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/433957"&gt;@jcbale&lt;/a&gt;! Let me file a bug with my team to follow up as to why the &lt;FONT face="courier new,courier" color="#008000"&gt;device.event.MotionDetection&lt;/FONT&gt; starter was still being suggested by autocomplete for your selected device.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 20:24:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/536377#M35319</guid>
      <dc:creator>nickfromgoogle</dc:creator>
      <dc:date>2023-10-30T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/614540#M46188</link>
      <description>&lt;P&gt;I'm getting the same thing. It works with 3 starters. I add a fourth and it validates, but won't save. I step it back to three and it does, it doesn't matter which starter I comment out.&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;metadata:&lt;BR /&gt;name: Stairs Motion Detection&lt;BR /&gt;description:&lt;BR /&gt;When the void or landing motion sensors detect motion, then turn on&lt;BR /&gt;the void and landing lights.&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.&lt;BR /&gt;device: Void Motion Sensor - Void&lt;BR /&gt;state: occupancy&lt;BR /&gt;is: OCCUPIED&lt;BR /&gt;- type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.&lt;BR /&gt;device: Landing Motion Sensor - Landing&lt;BR /&gt;state: occupancy&lt;BR /&gt;is: OCCUPIED&lt;BR /&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: sunset&lt;BR /&gt;before: sunrise&lt;/P&gt;&lt;P&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- Void Lights - Void&lt;BR /&gt;- Stairs - Landing&lt;BR /&gt;on: true&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.&lt;BR /&gt;device: Void Motion Sensor - Void&lt;BR /&gt;state: occupancy&lt;BR /&gt;is: UNOCCUPIED&lt;BR /&gt;for: 5min&lt;BR /&gt;- type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.&lt;BR /&gt;state: occupancy&lt;BR /&gt;# Whether the device senses occupancy. [available operators: is, isNot]&lt;BR /&gt;is: UNOCCUPIED&lt;BR /&gt;for: 5min&lt;BR /&gt;device: Landing Motion Sensor - Landing&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff # Turn the device on or off.&lt;BR /&gt;devices:&lt;BR /&gt;- Void Lights - Void&lt;BR /&gt;- Stairs - Landing&lt;BR /&gt;on: false&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:24:02 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/614540#M46188</guid>
      <dc:creator>GreySkull</dc:creator>
      <dc:date>2024-04-19T15:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor Not Saving</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/614687#M46192</link>
      <description>&lt;P&gt;I have a sad response for you &lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/30987"&gt;@Grey&lt;/a&gt;. I don't think it's actually worth programming with the Google script editor.&amp;nbsp; I gave up with it a while after posting this question, and moved to the self hosted "Home Assistant" and I'm running it on a raspberry pi.&amp;nbsp; It's far, far more flexible and has proper smart integrations for all of the smart device systems I use (Hue, LG, Apple TV, Energy monitoring etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Home Assistant has issues as well (don't run it on a SD card, make sure it's an SSD), but nothing quite as silly as not being able to toggle the save button on.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 06:09:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Not-Saving/m-p/614687#M46192</guid>
      <dc:creator>jcbale</dc:creator>
      <dc:date>2024-04-20T06:09:41Z</dc:date>
    </item>
  </channel>
</rss>

