<?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: Error when trying to create condition in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680051#M52672</link>
    <description>&lt;P&gt;It's the dash in front of the type in the condition. That indicates an array. Just drop it. Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Bedroom Heater Control
  description: Turn on bedroom heater when the temperature drops below a set threshold.
automations:
  - starters:
      - type: device.state.OnOff
        device: virtualSwitchLessThan60F - Bedroom
        state: on
        is: true
    condition:
      type: device.state.TemperatureSetting
      device: Temp and Humidity - Chris's Bedroom
      state: thermostatTemperatureAmbient
      lessThanOrEqualTo: 68F
    actions:
      - type: device.command.OnOff
        devices:
          - Bedroom A/C - Chris's Bedroom
        on: true
      - type: device.command.ThermostatSetMode
        devices:
          - Bedroom A/C - Chris's Bedroom
        thermostatMode: heat
      - type: device.command.ThermostatTemperatureSetpoint
        devices:
          - Bedroom A/C - Chris's Bedroom
        thermostatTemperatureSetpoint: 75F
      - type: home.command.Notification
        title: Bedroom A/C State Change
        body: The heat is&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 18:34:18 GMT</pubDate>
    <dc:creator>MarciaMellow</dc:creator>
    <dc:date>2025-02-18T18:34:18Z</dc:date>
    <item>
      <title>Error when trying to create condition</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680049#M52671</link>
      <description>&lt;P&gt;I'm setting up a script automation to control a split a/c system in my bedroom.&amp;nbsp;&lt;BR /&gt;The code below works but I want one of the starters to be a condition, so essentially both starters have to be met to start the automation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Bedroom Heater Control&lt;BR /&gt;description: Automates heating for the bedroom A/C when the temperature drops below a set threshold.&lt;BR /&gt;automations:&lt;BR /&gt;starters:&lt;BR /&gt;- type: device.state.OnOff&lt;BR /&gt;state: on&lt;BR /&gt;is: true&lt;BR /&gt;device: virtualSwitchLessThan60F - Bedroom&lt;BR /&gt;- type: device.state.TemperatureSetting&lt;BR /&gt;state: thermostatTemperatureAmbient&lt;BR /&gt;lessThanOrEqualTo: 68F&lt;BR /&gt;device: Temp and Humidity - Chris's Bedroom&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;on: true&lt;BR /&gt;devices: Bedroom A/C - Chris's Bedroom&lt;BR /&gt;- type: device.command.ThermostatSetMode&lt;BR /&gt;thermostatMode: heat&lt;BR /&gt;devices: Bedroom A/C - Chris's Bedroom&lt;BR /&gt;- type: device.command.ThermostatTemperatureSetpoint&lt;BR /&gt;thermostatTemperatureSetpoint: 75F&lt;BR /&gt;devices: Bedroom A/C - Chris's Bedroom&lt;BR /&gt;- type: home.command.Notification&lt;BR /&gt;title: Bedroom A/C State Change&lt;BR /&gt;body: The heat is ON!!&lt;/P&gt;&lt;P&gt;Adding either of the starters as a condition gives an error. [The value should be [Condition] but is [Array] instead.&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;- type: device.state.OnOff&lt;BR /&gt;state: on&lt;BR /&gt;is: true&lt;BR /&gt;device: virtualSwitchLessThan60F - Bedroom&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: The value should be [Condition] but is [Array] instead.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 18:18:10 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680049#M52671</guid>
      <dc:creator>chhhris</dc:creator>
      <dc:date>2025-02-18T18:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to create condition</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680051#M52672</link>
      <description>&lt;P&gt;It's the dash in front of the type in the condition. That indicates an array. Just drop it. Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Bedroom Heater Control
  description: Turn on bedroom heater when the temperature drops below a set threshold.
automations:
  - starters:
      - type: device.state.OnOff
        device: virtualSwitchLessThan60F - Bedroom
        state: on
        is: true
    condition:
      type: device.state.TemperatureSetting
      device: Temp and Humidity - Chris's Bedroom
      state: thermostatTemperatureAmbient
      lessThanOrEqualTo: 68F
    actions:
      - type: device.command.OnOff
        devices:
          - Bedroom A/C - Chris's Bedroom
        on: true
      - type: device.command.ThermostatSetMode
        devices:
          - Bedroom A/C - Chris's Bedroom
        thermostatMode: heat
      - type: device.command.ThermostatTemperatureSetpoint
        devices:
          - Bedroom A/C - Chris's Bedroom
        thermostatTemperatureSetpoint: 75F
      - type: home.command.Notification
        title: Bedroom A/C State Change
        body: The heat is&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 18:34:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680051#M52672</guid>
      <dc:creator>MarciaMellow</dc:creator>
      <dc:date>2025-02-18T18:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to create condition</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680053#M52673</link>
      <description>&lt;P&gt;Thanks a million!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 18:45:17 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Error-when-trying-to-create-condition/m-p/680053#M52673</guid>
      <dc:creator>chhhris</dc:creator>
      <dc:date>2025-02-18T18:45:17Z</dc:date>
    </item>
  </channel>
</rss>

