<?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 Time.Between condition not working in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Time-Between-condition-not-working/m-p/755496#M10409</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the script editor to create an automation routine, anything that has a time condition is not working. If I remove the time.between condition the routing runs. With it, nothing. But there is no error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with this script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: TEST&lt;BR /&gt;description: Broadcast when someone is seen&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.event.PersonDetection # A person has been detected by the camera.&lt;BR /&gt;device: Back garden camera - Back garden&lt;BR /&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: 10:00 AM # HH:MM XM (12 hours format). Adjust time as needed&lt;BR /&gt;before: 8:00 PM # HH:MM XM (12 hours format). Adjust time as needed&lt;BR /&gt;actions:&lt;BR /&gt;- type: assistant.command.Broadcast&lt;BR /&gt;devices:&lt;BR /&gt;- Study speaker - Study&lt;BR /&gt;message: A person has been detected&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 10:54:44 GMT</pubDate>
    <dc:creator>aabruce</dc:creator>
    <dc:date>2025-10-17T10:54:44Z</dc:date>
    <item>
      <title>Time.Between condition not working</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Time-Between-condition-not-working/m-p/755496#M10409</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the script editor to create an automation routine, anything that has a time condition is not working. If I remove the time.between condition the routing runs. With it, nothing. But there is no error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with this script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: TEST&lt;BR /&gt;description: Broadcast when someone is seen&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.event.PersonDetection # A person has been detected by the camera.&lt;BR /&gt;device: Back garden camera - Back garden&lt;BR /&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: 10:00 AM # HH:MM XM (12 hours format). Adjust time as needed&lt;BR /&gt;before: 8:00 PM # HH:MM XM (12 hours format). Adjust time as needed&lt;BR /&gt;actions:&lt;BR /&gt;- type: assistant.command.Broadcast&lt;BR /&gt;devices:&lt;BR /&gt;- Study speaker - Study&lt;BR /&gt;message: A person has been detected&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 10:54:44 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Time-Between-condition-not-working/m-p/755496#M10409</guid>
      <dc:creator>aabruce</dc:creator>
      <dc:date>2025-10-17T10:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time.Between condition not working</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Time-Between-condition-not-working/m-p/756445#M10410</link>
      <description>&lt;P&gt;Thanks for reaching out.&amp;nbsp;The script editor typically requires a &lt;STRONG&gt;24-hour clock format&lt;/STRONG&gt; (HH:MM) for time-based conditions, not the 12-hour format with AM/PM. Could your try the script below and let me know if this worked,&lt;BR /&gt;&lt;BR /&gt;metadata:&lt;BR /&gt;name: TEST&lt;BR /&gt;description: Broadcast when someone is seen&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.event.PersonDetection # A person has been detected by the camera.&lt;BR /&gt;device: Back garden camera - Back garden&lt;BR /&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: 10:00 # Corrected to 24-hour format&lt;BR /&gt;before: 20:00 # Corrected: 8:00 PM is 20:00 in 24-hour format&lt;BR /&gt;actions:&lt;BR /&gt;- type: assistant.command.Broadcast&lt;BR /&gt;devices:&lt;BR /&gt;- Study speaker - Study&lt;BR /&gt;message: A person has been detected&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 05:55:38 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Time-Between-condition-not-working/m-p/756445#M10410</guid>
      <dc:creator>arm_dpe</dc:creator>
      <dc:date>2025-10-21T05:55:38Z</dc:date>
    </item>
  </channel>
</rss>

