<?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 WebApp script editor - Sunset with NEGATIVE offset in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/465798#M20829</link>
    <description>&lt;P&gt;Device.state.online does not work as a condition at the moment.&amp;nbsp;&lt;A href="https://www.googlenestcommunity.com/t5/Home-Automation/Chromecast-or-TV-state-as-condition-not-working/m-p/447511" target="_blank"&gt;https://www.googlenestcommunity.com/t5/Home-Automation/Chromecast-or-TV-state-as-condition-not-working/m-p/447511&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 22:33:25 GMT</pubDate>
    <dc:creator>Dennichio</dc:creator>
    <dc:date>2023-08-07T22:33:25Z</dc:date>
    <item>
      <title>Google Home WebApp script editor - Sunset with NEGATIVE offset</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/459527#M20412</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am new to the community and would like to raise a question regarding &lt;A href="https://home.google.com/" target="_blank" rel="noopener"&gt;Google-Home's new script editor&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would like to light some lamps 15 minutes &lt;STRONG&gt;BEFORE&lt;/STRONG&gt; sunset. I use a starter like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- type: time.schedule
      # 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)
      at: sunset-15min # Adjust offset as needed. Supported units: sec, min, hour
      # Optional. Days of the week to run automation on.&lt;/LI-CODE&gt;&lt;P&gt;In a first trial, this did NOT work at all (although I have to admit, that I have some more conditions, that might interfere and are responsible for not switching).&lt;/P&gt;&lt;P&gt;Just as a general question to the specialists: Can a &lt;STRONG&gt;NEGATIVE&lt;/STRONG&gt; offset work for starters like sunset or sunrise.&lt;/P&gt;&lt;P&gt;Thanks for your support and any feedback!&lt;/P&gt;&lt;P&gt;Regards, Tom&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:55:32 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/459527#M20412</guid>
      <dc:creator>Tom-H</dc:creator>
      <dc:date>2023-07-27T06:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home WebApp script editor - Sunset with NEGATIVE offset</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/459737#M20422</link>
      <description>&lt;P&gt;I can see that they have provided two different examples for setting&amp;nbsp;TimeScheduleEvent offsets in minutes - "m" and "min".&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;('sunrise+10m', for instance)&lt;/LI&gt;&lt;LI&gt;Supported units: sec, min, hour (sunset+30min / sunset-1hour)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Assuming there aren't validation errors with the rest of your script, does sunset-15m also fail?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 19:35:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/459737#M20422</guid>
      <dc:creator>DWB1973</dc:creator>
      <dc:date>2023-07-27T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home WebApp script editor - Sunset with NEGATIVE offset</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/460096#M20438</link>
      <description>&lt;P&gt;Good point, DWB1973! I will try this and give feedback.&lt;/P&gt;&lt;P&gt;Thanks, so far for your valuable input!&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;A code like this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;at: sunset-15min&lt;/LI-CODE&gt;&lt;P&gt;You can even extend this to more than 400 Minutes. For testing reasons, I used&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;at: sunset-405min&lt;/LI-CODE&gt;&lt;P&gt;which leads to a switching, as desired.&lt;/P&gt;&lt;P&gt;BTW: I had a condition, that was not working. Need to figure out, why&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;device.state.online&lt;/LI-CODE&gt;&lt;P&gt;is not read for my PHL television - but that is not part of this thread, I think...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:23:51 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/460096#M20438</guid>
      <dc:creator>Tom-H</dc:creator>
      <dc:date>2023-07-28T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home WebApp script editor - Sunset with NEGATIVE offset</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/465798#M20829</link>
      <description>&lt;P&gt;Device.state.online does not work as a condition at the moment.&amp;nbsp;&lt;A href="https://www.googlenestcommunity.com/t5/Home-Automation/Chromecast-or-TV-state-as-condition-not-working/m-p/447511" target="_blank"&gt;https://www.googlenestcommunity.com/t5/Home-Automation/Chromecast-or-TV-state-as-condition-not-working/m-p/447511&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 22:33:25 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-WebApp-script-editor-Sunset-with-NEGATIVE-offset/m-p/465798#M20829</guid>
      <dc:creator>Dennichio</dc:creator>
      <dc:date>2023-08-07T22:33:25Z</dc:date>
    </item>
  </channel>
</rss>

