<?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: Conditions codes from script editor stoped working in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/708801#M54683</link>
    <description>&lt;P&gt;Was this resolved? It suddenly stopped working today for me.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2025 13:39:31 GMT</pubDate>
    <dc:creator>Asterix1</dc:creator>
    <dc:date>2025-03-31T13:39:31Z</dc:date>
    <item>
      <title>Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/634613#M47445</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I'm having trouble with conditions in the Script editor. I used to have 3 automations that worked perfectly based on time of day and device status, but they suddenly stopped without any error message.&lt;BR /&gt;&lt;BR /&gt;Here is an example for the triggers&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  - starters:
      - 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: 21:30 # HH:MM (24 hours format). Adjust time as needed
        # Optional. Days of the week to run automation on.
        weekdays:
          - MON
          - TUE
          - WED
          - THU
          - FRI
          - SAT
          - SUN
    condition:
      type: and
      # "AND" together two or more conditionals
      conditions:
        - type: device.state.OnOff # The basic on and off functionality for any device that has binary on and off, including plugs and switches as well as many future devices.
          state: on
          # Whether a device with an on/off switch is on or off. &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the device is on, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; if the device is off. [available operators: is, isNot]
          is: true
          device: curved lamp - Living Room&lt;/LI-CODE&gt;&lt;P&gt;Has anyone else encountered this issue? Any suggestions on how to fix it?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 19:00:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/634613#M47445</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2024-08-01T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635166#M47474</link>
      <description>&lt;P&gt;Just from the YAML provided in your post there appears to be only one condition for your AND where there should at least two. Was this just missed in the copy and paste?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 12:00:28 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635166#M47474</guid>
      <dc:creator>webnibbler</dc:creator>
      <dc:date>2024-08-04T12:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635172#M47475</link>
      <description>&lt;P&gt;This is how it was and worked.&lt;BR /&gt;&lt;BR /&gt;So if I want to have time and divce state, what should be the conditions?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 13:07:40 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635172#M47475</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2024-08-04T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635576#M47490</link>
      <description>&lt;P&gt;Except you have one condition listed along with an AND statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That might be the confusion as the AND statement covers the CONDITIONS and not a CONDITION and STARTER&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 04:26:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635576#M47490</guid>
      <dc:creator>OpethNJ</dc:creator>
      <dc:date>2024-08-06T04:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635592#M47492</link>
      <description>&lt;P&gt;I tried this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  starters:
    - type: time.schedule
      at: 21:31
      weekdays:
        - MON
        - TUE
        - WED
        - THU
        - FRI
        - SAT
        - SUN
  condition:
    type: and
    conditions:
      - type: time.between
        before: sunrise+60min 
        after: 21:30
        weekdays:
          - MON
          - TUE
          - WED
          - THU
          - FRI
          - SAT
          - SUN
      - type: device.state.OnOff 
        state: on
        is: true
        device: curved lamp - Living Room&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is still not working..&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 07:54:53 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635592#M47492</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2024-08-06T07:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635652#M47494</link>
      <description>&lt;P&gt;Try adding an ACTION at the end&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;actions:
      type: device.command.OnOff
      on: true
      devices: curved lamp - Living Room&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 15:48:21 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/635652#M47494</guid>
      <dc:creator>webnibbler</dc:creator>
      <dc:date>2024-08-06T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/636647#M47548</link>
      <description>&lt;P&gt;There is actions after the triggers, but the triggers are not working.&lt;/P&gt;&lt;P&gt;I want that my actions will start once it’s a time of the day and a specific light is on. And for some reason I can’t manage to get that.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 15:07:43 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/636647#M47548</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2024-08-11T15:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/636969#M47573</link>
      <description>&lt;P&gt;I tried this but it's not working as well:(&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  starters:
    - type: device.state.OnOff
      device: curved lamp - Living Room
      state: on
      is: true
  condition:
    type: and
    conditions:
      - type: device.state.OnOff
        state: on
        is: true
        device: Ceiling light - Living Room
      - type: time.between
        after: 21:30
  actions:
    - type: device.command.OnOff
      on: true
      devices: Table lamp - Living Room&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 11:16:21 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/636969#M47573</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2024-08-13T11:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/708801#M54683</link>
      <description>&lt;P&gt;Was this resolved? It suddenly stopped working today for me.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 13:39:31 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/708801#M54683</guid>
      <dc:creator>Asterix1</dc:creator>
      <dc:date>2025-03-31T13:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/708989#M54698</link>
      <description>&lt;P&gt;&lt;SPAN&gt;No:(&lt;BR /&gt;I can't find a way to fix it.&lt;BR /&gt;I tried many variations, even asking ChatGPT, but nothing worked&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 07:31:43 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/708989#M54698</guid>
      <dc:creator>Ran_Shemesh</dc:creator>
      <dc:date>2025-04-01T07:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions codes from script editor stoped working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/709231#M54746</link>
      <description>&lt;P&gt;I managed to resolve my issue. It was due to my tuya virtual switch (i use it to set away mode to stop the automations) not communicating properly with google home (or the other way around).&lt;/P&gt;&lt;P&gt;I recreated the virtual switch using google home playground and ithe conditions are working again.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 03:06:39 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Conditions-codes-from-script-editor-stoped-working/m-p/709231#M54746</guid>
      <dc:creator>Asterix1</dc:creator>
      <dc:date>2025-04-02T03:06:39Z</dc:date>
    </item>
  </channel>
</rss>

