<?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 broadcast something based on which day is when you ask in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572058#M40989</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create my first automation in the web automation interface. I would like to create a query with a broadcast action. So I would like to ask google "what's my lunch?" and I would like to have the answer based on the day I'm asking so for example monday "pasta" tuesday "pizza" wednesday "meat". I've tried multiple conditons but I always get errors. Do you have any clue? anyone have done something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 10:34:35 GMT</pubDate>
    <dc:creator>Pottati</dc:creator>
    <dc:date>2024-01-04T10:34:35Z</dc:date>
    <item>
      <title>broadcast something based on which day is when you ask</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572058#M40989</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create my first automation in the web automation interface. I would like to create a query with a broadcast action. So I would like to ask google "what's my lunch?" and I would like to have the answer based on the day I'm asking so for example monday "pasta" tuesday "pizza" wednesday "meat". I've tried multiple conditons but I always get errors. Do you have any clue? anyone have done something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 10:34:35 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572058#M40989</guid>
      <dc:creator>Pottati</dc:creator>
      <dc:date>2024-01-04T10:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: broadcast something based on which day is when you ask</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572145#M41014</link>
      <description>&lt;P&gt;You just need to use the same starter ("What is my lunch") seven times. You do this by separating the code into seven sections using the "name" key (for example - name: Monday). In each section, put a conditional for that given day and an appropriate action. Here is an example for Monday and Tuesday.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Lunch report
  description: Tell me my lunch for any given day
automations:
  - name: Monday
    starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: What is my lunch?
    condition:
      type: time.between
      weekdays:
        - MON
    actions:
      - type: assistant.command.Broadcast
        message: Pasta
        devices: Downstairs speaker - Family room
  - name: Tuesday
    starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: What is my lunch?
    condition:
      type: time.between
      weekdays:
        - TUE
    actions:
      - type: assistant.command.Broadcast
        message: Pizza
        devices: Downstairs speaker - Family room&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;By the way, using the phrase "What is my lunch?" as opposed to "What's my lunch?" is probably better because the apostrophe is used as a delimiter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 15:10:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572145#M41014</guid>
      <dc:creator>salbando</dc:creator>
      <dc:date>2024-01-04T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: broadcast something based on which day is when you ask</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572166#M41019</link>
      <description>&lt;P&gt;Hi thanks for your support. That's great and it is working... I was trying using variables but with no success. Variables could be a good option for maintenance but I had no success. Anyway a big thanks so far. at least now works I will try to create my variables for testing only&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 15:40:11 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/broadcast-something-based-on-which-day-is-when-you-ask/m-p/572166#M41019</guid>
      <dc:creator>Pottati</dc:creator>
      <dc:date>2024-01-04T15:40:11Z</dc:date>
    </item>
  </channel>
</rss>

