<?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: WTF am i doing wrong? in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487539#M22661</link>
    <description>&lt;P&gt;I had the same issue earlier.&amp;nbsp; You can have multiple functions... that's not your problem.&amp;nbsp; The problem is your indentations don't take into account for multiple functions.&amp;nbsp; You have to tab indent your action block of code (actions, type, devices, on) one more indentation and you should be okay.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can reference the examples here to see the subtle differences with tab indentations:&amp;nbsp;&lt;A href="https://developers.home.google.com/automations/example-scripts" target="_blank" rel="noopener"&gt;https://developers.home.google.com/automations/example-scripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was working on something similar to the following when I hit your exact issue:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;A href="https://developers.home.google.com/automations/example-scripts#scheduled_lighting_with_multiple_times" target="_blank" rel="noopener"&gt;https://developers.home.google.com/automations/example-scripts#scheduled_lighting_with_multiple_times&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Oct 2023 01:30:38 GMT</pubDate>
    <dc:creator>devreserg</dc:creator>
    <dc:date>2023-10-04T01:30:38Z</dc:date>
    <item>
      <title>WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487353#M22648</link>
      <description>&lt;P&gt;Trying to write my first script and everything looks good, but I have a **bleep** syntax error that i cant resolve.&lt;/P&gt;&lt;P&gt;what am I missing?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://www.googlenestcommunity.com/t5/image/serverpage/image-id/29475i3964BA7F1859F959/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:21:10 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487353#M22648</guid>
      <dc:creator>GHScriptnewbe</dc:creator>
      <dc:date>2023-10-03T18:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487418#M22654</link>
      <description>&lt;P&gt;hi!&amp;nbsp;If I'm not mistaken, then you just need to remove the duplicated "action" function&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 21:08:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487418#M22654</guid>
      <dc:creator>RemarkMedia</dc:creator>
      <dc:date>2023-10-03T21:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487539#M22661</link>
      <description>&lt;P&gt;I had the same issue earlier.&amp;nbsp; You can have multiple functions... that's not your problem.&amp;nbsp; The problem is your indentations don't take into account for multiple functions.&amp;nbsp; You have to tab indent your action block of code (actions, type, devices, on) one more indentation and you should be okay.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can reference the examples here to see the subtle differences with tab indentations:&amp;nbsp;&lt;A href="https://developers.home.google.com/automations/example-scripts" target="_blank" rel="noopener"&gt;https://developers.home.google.com/automations/example-scripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was working on something similar to the following when I hit your exact issue:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;A href="https://developers.home.google.com/automations/example-scripts#scheduled_lighting_with_multiple_times" target="_blank" rel="noopener"&gt;https://developers.home.google.com/automations/example-scripts#scheduled_lighting_with_multiple_times&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Oct 2023 01:30:38 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487539#M22661</guid>
      <dc:creator>devreserg</dc:creator>
      <dc:date>2023-10-04T01:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487810#M22682</link>
      <description>&lt;P&gt;For multiple starters - actions, I'd rather to use "name" for each :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hollen_ar_mor_0-1696445790565.png" style="width: 400px;"&gt;&lt;img src="https://www.googlenestcommunity.com/t5/image/serverpage/image-id/29500iE75C19B417A96170/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Hollen_ar_mor_0-1696445790565.png" alt="Hollen_ar_mor_0-1696445790565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And yes, take very care of the indentation !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 18:57:06 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/487810#M22682</guid>
      <dc:creator>Hollen_ar_mor</dc:creator>
      <dc:date>2023-10-04T18:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/492360#M23017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope you figured it out by now and the struggle paid out.&lt;BR /&gt;I see two mistakes in your YAML code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Your key and value for weekdays are not separated by a space.&amp;nbsp; You write "weekdays:[MON", it should be: "weekdays: [MON"&lt;/LI&gt;&lt;LI&gt;The delimiter for lists in YAML is the comma"," not the semicolon ";". Instead of "[MON;TUE;WED" it should be&amp;nbsp; "[MON, TUE, WED" (Yes, I even put some spaces in between. It is not required, though)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Code for computers is always a compromise between readability for humans and non-ambiguous statements for machines.&lt;/P&gt;&lt;P&gt;It might help you next time to use a converter like&amp;nbsp;&lt;A href="https://jsonformatter.org/yaml-to-json" target="_blank"&gt;https://jsonformatter.org/yaml-to-json&lt;/A&gt;&amp;nbsp;to check if your YAML is interpreted in the way you expect it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:23:35 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/492360#M23017</guid>
      <dc:creator>Elektrowolle</dc:creator>
      <dc:date>2023-10-17T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: WTF am i doing wrong?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/551127#M36490</link>
      <description>&lt;P&gt;Did you work this out? I'm having a similar issue&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 03:29:33 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/WTF-am-i-doing-wrong/m-p/551127#M36490</guid>
      <dc:creator>Okabe</dc:creator>
      <dc:date>2023-11-24T03:29:33Z</dc:date>
    </item>
  </channel>
</rss>

