<?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 to turn lights on and off in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-to-turn-lights-on-and-off/m-p/629490#M47178</link>
    <description>&lt;P&gt;I am trying to write a script that will turn my flash my floodlights on and off every second for 2 minutes when I issue the voice command "lights on and off".&lt;/P&gt;&lt;P&gt;I keep getting a validation error '&lt;SPAN&gt;Required field for Struct is missing. Expected subfields: [type]."&amp;nbsp; on the line&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- repeat:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;metadata:&lt;BR /&gt;name: Lights on and off&lt;BR /&gt;description: Turn the floodlight on and off every second for 2 minutes&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: assistant.event.OkGoogle&lt;BR /&gt;eventData: query&lt;BR /&gt;is: Lights on and off&lt;/P&gt;&lt;P&gt;actions:&lt;BR /&gt;- repeat:&lt;BR /&gt;times: 60&lt;BR /&gt;actions:&lt;BR /&gt;- type: action.devices.commands.OnOff&lt;BR /&gt;devices: ["Floodlight - ADU"]&lt;BR /&gt;parameters:&lt;BR /&gt;on: true&lt;BR /&gt;- type: time.delay&lt;BR /&gt;duration: 1s&lt;BR /&gt;- type: action.devices.commands.OnOff&lt;BR /&gt;devices: ["Floodlight - ADU"]&lt;BR /&gt;parameters:&lt;BR /&gt;on: false&lt;BR /&gt;- type: time.delay&lt;BR /&gt;duration: 1s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone see what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 19:50:34 GMT</pubDate>
    <dc:creator>RobotIAmNot</dc:creator>
    <dc:date>2024-07-04T19:50:34Z</dc:date>
    <item>
      <title>Script to turn lights on and off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-to-turn-lights-on-and-off/m-p/629490#M47178</link>
      <description>&lt;P&gt;I am trying to write a script that will turn my flash my floodlights on and off every second for 2 minutes when I issue the voice command "lights on and off".&lt;/P&gt;&lt;P&gt;I keep getting a validation error '&lt;SPAN&gt;Required field for Struct is missing. Expected subfields: [type]."&amp;nbsp; on the line&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;- repeat:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;metadata:&lt;BR /&gt;name: Lights on and off&lt;BR /&gt;description: Turn the floodlight on and off every second for 2 minutes&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: assistant.event.OkGoogle&lt;BR /&gt;eventData: query&lt;BR /&gt;is: Lights on and off&lt;/P&gt;&lt;P&gt;actions:&lt;BR /&gt;- repeat:&lt;BR /&gt;times: 60&lt;BR /&gt;actions:&lt;BR /&gt;- type: action.devices.commands.OnOff&lt;BR /&gt;devices: ["Floodlight - ADU"]&lt;BR /&gt;parameters:&lt;BR /&gt;on: true&lt;BR /&gt;- type: time.delay&lt;BR /&gt;duration: 1s&lt;BR /&gt;- type: action.devices.commands.OnOff&lt;BR /&gt;devices: ["Floodlight - ADU"]&lt;BR /&gt;parameters:&lt;BR /&gt;on: false&lt;BR /&gt;- type: time.delay&lt;BR /&gt;duration: 1s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone see what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 19:50:34 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-to-turn-lights-on-and-off/m-p/629490#M47178</guid>
      <dc:creator>RobotIAmNot</dc:creator>
      <dc:date>2024-07-04T19:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script to turn lights on and off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-to-turn-lights-on-and-off/m-p/629841#M47200</link>
      <description>&lt;P&gt;I don't think -repeat is an supported option&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 19:24:04 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-to-turn-lights-on-and-off/m-p/629841#M47200</guid>
      <dc:creator>Nes58</dc:creator>
      <dc:date>2024-07-06T19:24:04Z</dc:date>
    </item>
  </channel>
</rss>

