<?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: SDM Error 400 &amp;quot;Precondition check failed.&amp;quot; in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607907#M6683</link>
    <description>&lt;P&gt;Are you using the Nest App or Google Home App or both? Also, are you using Android or iOS?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 16:21:13 GMT</pubDate>
    <dc:creator>Cary1111</dc:creator>
    <dc:date>2024-03-21T16:21:13Z</dc:date>
    <item>
      <title>SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/390370#M915</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I've been running through the steps described here: &lt;A href="https://developers.google.com/nest/device-access/authorize" target="_blank"&gt;https://developers.google.com/nest/device-access/authorize&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After creating a new Project, generating an Oauth2 cred, linking with a new Device Access Console I'm unable to get past step 4 of the quick reference linked above. I've attempted to limit the scope of devices allowed to be accessed with no change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response I receive from SDM is always:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": 400,
    "message": "Precondition check failed.",
    "status": "FAILED_PRECONDITION"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been unable to locate this particular error message in the Device Access documentation/reference site.&lt;/P&gt;&lt;P&gt;Has anyone run into this before or have any thoughts on how to resolve?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 00:39:56 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/390370#M915</guid>
      <dc:creator>Cringely</dc:creator>
      <dc:date>2023-04-04T00:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/398432#M930</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;The precondition step is a step that the account you use and the credentials you pass during account linking are compared with what you signed up from the developer console. Make sure you have only one Google account signed in on the browser which is the same as the google account you have used to create the project from the console.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://nestservices.google.com/partnerconnections/project-id/auth?redirect_uri=https://www.google.com&amp;amp;access_type=offline&amp;amp;prompt=consent&amp;amp;client_id=oauth2-client-id&amp;amp;response_type=code&amp;amp;scope=https://www.googleapis.com/auth/sdm.service" target="_blank"&gt;https://nestservices.google.com/partnerconnections/&lt;STRONG&gt;project-id&lt;/STRONG&gt;/auth?redirect_uri=https://www.google.com&amp;amp;access_type=offline&amp;amp;prompt=consent&amp;amp;client_id=&lt;STRONG&gt;oauth2-client-id&lt;/STRONG&gt;&amp;amp;response_type=code&amp;amp;scope=&lt;STRONG&gt;https://www.googleapis.com/auth/sdm.service&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Make sure the value you use for the three highlighted parameters are correct. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 13 Apr 2023 18:16:34 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/398432#M930</guid>
      <dc:creator>sipriyadarshi</dc:creator>
      <dc:date>2023-04-13T18:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607837#M6680</link>
      <description>&lt;P&gt;sorry, for my ignorance but that link goes no where.&amp;nbsp; I am having the same issue with one of my thermostats.&amp;nbsp; The other thermostat works great.&amp;nbsp; And the one thermostat errors are not consistent, only during one attempt to lower the temp in the evening.&amp;nbsp; The early morning attempt to raise the temp again works fine.&amp;nbsp; I am pulling my hair out trying to figure out why.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[homeassistant.components.automation.lower_heat_at_10_pm_main] Lower Heat at 10 pm Main: Error executing script. Error for call_service at pos 3: Error setting climate.thermostat_2 temperature to {'temperature': 16.666666666666668, 'entity_id': ['climate.thermostat_2']}: Error from API: 400: FAILED_PRECONDITION: sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat command not allowed in current thermostat mode.: Bad Request&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 11:38:58 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607837#M6680</guid>
      <dc:creator>pdobrien3</dc:creator>
      <dc:date>2024-03-21T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607881#M6681</link>
      <description>&lt;P&gt;May I ask are you in Europe, United States or elsewhere? I can research some steps but need to know this information first.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 15:11:20 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607881#M6681</guid>
      <dc:creator>Cary1111</dc:creator>
      <dc:date>2024-03-21T15:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607902#M6682</link>
      <description>&lt;P&gt;Thank you. I am in the United States&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:09:42 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607902#M6682</guid>
      <dc:creator>pdobrien3</dc:creator>
      <dc:date>2024-03-21T16:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607907#M6683</link>
      <description>&lt;P&gt;Are you using the Nest App or Google Home App or both? Also, are you using Android or iOS?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:21:13 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607907#M6683</guid>
      <dc:creator>Cary1111</dc:creator>
      <dc:date>2024-03-21T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607908#M6684</link>
      <description>&lt;P&gt;Also, which model of Thermostat do you have so I can research the proper steps.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:22:31 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607908#M6684</guid>
      <dc:creator>Cary1111</dc:creator>
      <dc:date>2024-03-21T16:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607910#M6685</link>
      <description>&lt;P data-unlink="true"&gt;I apologize I thought this was a thermostat issue. I see your attempting to create a&lt;SPAN&gt;&amp;nbsp;new Project, generating an Oauth2 cred linking device the above steps provided by "&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sipriyadarshi"&lt;/SPAN&gt;&amp;nbsp;seem correct. However the link is not good on my end as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:33:19 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607910#M6685</guid>
      <dc:creator>Cary1111</dc:creator>
      <dc:date>2024-03-21T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607913#M6686</link>
      <description>&lt;P&gt;its an api call that works for everything but that one thermostat for the one home assistant automation.&amp;nbsp; it is a nest gen 1 i believe.&amp;nbsp; Everything was working and then apparently there were some changes to the api that have been fixed.&amp;nbsp; leaving me with just this one thermostat that errors every night at 10 pm&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:40:36 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607913#M6686</guid>
      <dc:creator>pdobrien3</dc:creator>
      <dc:date>2024-03-21T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607931#M6687</link>
      <description>&lt;P&gt;Are they both 1st Gen ? The 1st Gen is api compatible. If they are both the same maybe trying to switch them. While creating the new project and see if it gives the same error/issue? Isolate that the device itself is not the issue. Or maybe trying a script editor for that one thermostat? Here is a link I found on doing that.&amp;nbsp;&lt;A title="Create advanced home automations with the script editor" href="https://support.google.com/googlenest/answer/13323253?hl=en&amp;amp;sjid=17539079540786784823-NA" target="_self"&gt;Create advanced home automations with the script editor - Google Nest Help&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 17:00:29 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607931#M6687</guid>
      <dc:creator>Cary1111</dc:creator>
      <dc:date>2024-03-21T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: SDM Error 400 "Precondition check failed."</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607956#M6688</link>
      <description>&lt;P&gt;the second one runs identical automations and has no issues.&amp;nbsp; Also, I am not creating a new project, I have had a working project for a while till this issue with the api.&amp;nbsp; I will look at the script tonight&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 19:02:07 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/SDM-Error-400-quot-Precondition-check-failed-quot/m-p/607956#M6688</guid>
      <dc:creator>pdobrien3</dc:creator>
      <dc:date>2024-03-21T19:02:07Z</dc:date>
    </item>
  </channel>
</rss>

