<?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: Check device current state in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/481320#M22163</link>
    <description>&lt;P&gt;I didn't notice at the first reading, but your "time.schedule" syntax is wrong :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- type: time.schedule
  before: sunrise
  after: sunset+30min&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's an autotext in Automation normally. When you choose a "type", the fields to fill should appear automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Sep 2023 16:54:08 GMT</pubDate>
    <dc:creator>Hollen_ar_mor</dc:creator>
    <dc:date>2023-09-16T16:54:08Z</dc:date>
    <item>
      <title>Check device current state</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/479696#M21993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way I can check the current state of a device?&lt;/P&gt;&lt;P&gt;The issue I have is I'm trying to create an automation that turns my light on 30min before sunset but only if my TV is switched on.&amp;nbsp; It only works if I remove the condition so must be some issue with that section, I've tried using my soundbar instead of the TV but I get the same result.&lt;/P&gt;&lt;P&gt;I'd like to see if I can find the TV or Soundbar current state to see if it is not showing correctly.&lt;/P&gt;&lt;P&gt;The code in case anyone wants to check is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;starters:
    - type: time.schedule
           at: sunset-30min
      weekdays:
        - MON
        - TUE
        - WED
        - THU
        - FRI
        - SAT
        - SUN

  condition:
    type: device.state.OnOff
    state: on
    is: true
    device: Living Room TV - Living room

  actions:
    - type: device.command.OnOff
      on: true
      devices: Living room light - Living room&lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:04:02 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/479696#M21993</guid>
      <dc:creator>TwentyFour</dc:creator>
      <dc:date>2023-09-11T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check device current state</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/479895#M22014</link>
      <description>&lt;P&gt;Try to write "condition" &amp;amp; "action" with the same tabulation than "starters".&lt;/P&gt;&lt;P&gt;You have no error in the script editor ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:38:08 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/479895#M22014</guid>
      <dc:creator>Hollen_ar_mor</dc:creator>
      <dc:date>2023-09-12T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Check device current state</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/481320#M22163</link>
      <description>&lt;P&gt;I didn't notice at the first reading, but your "time.schedule" syntax is wrong :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- type: time.schedule
  before: sunrise
  after: sunset+30min&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's an autotext in Automation normally. When you choose a "type", the fields to fill should appear automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 16:54:08 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Check-device-current-state/m-p/481320#M22163</guid>
      <dc:creator>Hollen_ar_mor</dc:creator>
      <dc:date>2023-09-16T16:54:08Z</dc:date>
    </item>
  </channel>
</rss>

