core: Ambiclimate - Doesn't work
The problem
From the middle of August Ambiclimate integration started to work weird and most of the commands and entities don’t work properly. I can start a climate entity but I cannot stop it. I get a lot of strange errors in the log. It does’t look it is a HA Core problem because this problem started while I was on vacation and so I didn’t do any update. I updated HA only today to see if it could fix the issue but it doesn’t.
What version of Home Assistant Core has the issue?
2022.8.6
What was the last working version of Home Assistant Core?
2022.7.*
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Ambiclimate
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ambiclimate/
Diagnostics information
No diagnostic info for this integration
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-08-21 10:33:27.261 ERROR (MainThread) [ambiclimate] <!DOCTYPE html>
<html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="/cdn-cgi/styles/cf-errors.css" rel="stylesheet" />
<script>
(function(){
window._cf_chl_opt={
cvId: '2',
cType: 'managed',
cNounce: '60774',
cRay: '73e206214fe3baff',
cHash: 'c0cbeb46332af1d',
cUPMDTk: "\/api\/v1\/device\/sensor\/humidity?room_name=Studio&location_name=Casa&__cf_chl_tk=9Gjn5o2WJcXEqfZnVMAueAa_7LV8oi2DjVwjVOmzJBU-1661070807-0-gaNycGzNB1E",
cFPWv: 'g',
cTTimeMs: '1000',
cTplV: 3,
cRq: {
ru: 'aHR0cHM6Ly9hcGkuYW1iaWNsaW1hdGUuY29tL2FwaS92MS9kZXZpY2Uvc2Vuc29yL2h1bWlkaXR5P3Jvb21fbmFtZT1TdHVkaW8mbG9jYXRpb25fbmFtZT1DYXNh',
ra: 'SG9tZUFzc2lzdGFudC8yMDIyLjguNiBhaW9odHRwLzMuOC4xIFB5dGhvbi8zLjEw',
rm: 'R0VU',
d: '6vr0JTjQQ4XqXHRXiDzE+x8K3FH8KbQhnMLJMxD1XRHN+hR5AYqdMxpqjqi97QrmImd7KBbKPal2TWBBCO6htVyh8xu1PkbK39cU0yXt3yEvp19wUrwnze1U1an4aPVEYlcgCNCnfPJhz5PR1XoiIREvgZWeBF4Ee4sUVjlmJtF2l5txUlyZR0bp8YMs2wJvmA2FMijg3x76U5QTMK9VyFFzs6JcbUgj98LroXgx9zMlJMVqucKVNAgYJNSqiNG/hoHVFI8yBWcaLeOFMylJD+qG3kvcvRxwQjpevL8gO3mjNbnEqBNJWJ2uJ0FN0YDM8XT/M1GGVDvMvMfh7GpD8OlT+bOMj84OiGuwC+1L0LpsliEtT0r3Yi7ZxiTXC/wIDNQpW0GyAuf7pto3jZBscEFFJqh7sQSGNauH4KvfCBroIy/uOqxDJCODf0ttrMjvmT4eXM9Ef9shSwHTd6lNmMmcPAXoPp0FURM0GMPJTT6ChCH1AzHkRwJUzVy+V1X6q2Q3qj1Wgsscn6lns4tZTE2NrRFpZDUYOmKkINigX0p5fpCu3oAYt45TEKh+tOKfoDtcEj1XePnLx8RDy9UD8hItpP/PM2SEkfhA0x0NbFxuerlBkoLXis9a5/stwy+1RmsEIyKNW6QOKO78tiEqdw==',
t: 'MTY2MTA3MDgwNy4yNDgwMDA=',
m: 'rIw2etaT26/7aiq8I1ZL0EJhc7mbiJbdovcPEpKP4lU=',
i1: 'R8Su60NZGbywqzjCNlfRJw==',
i2: 'MwDSa9S+KSDoA/0Vt/xPaA==',
zh: 'LwR1M7B9KkpclJ+f00KJ6ebN95wzUk448XI8VN48eSE=',
uh: '/onJMSOjLY7c/2GLHBVH5Yi9KK0SCy7Sep/sB7bqGWA=',
hh: '9c4M45osrP2kdjZ1D5KQDUlf5o3sLeyqBiJvHgsKQQE=',
}
}
window._cf_chl_enter = function(){window._cf_chl_opt.p=1};
})();
</script>
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<h1 class="zone-name-title h1">
<img class="heading-favicon" src="/favicon.ico"
onerror="this.onerror=null;this.parentNode.removeChild(this)" />
api.ambiclimate.com
</h1>
<h2 class="h2" id="cf-challenge-running">
Checking if the site connection is secure
</h2>
<noscript>
<div id="cf-challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="cf-challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
<div id="trk_jschal_js" style="display:none;background-image:url('/cdn-cgi/images/trace/managed/nojs/transparent.gif?ray=73e206214fe3baff')"></div>
<div id="cf-challenge-body-text" class="core-msg spacer">
api.ambiclimate.com needs to review the security of your connection before
proceeding.
</div>
<form id="challenge-form" action="/api/v1/device/sensor/humidity?room_name=Studio&location_name=Casa&__cf_chl_f_tk=9Gjn5o2WJcXEqfZnVMAueAa_7LV8oi2DjVwjVOmzJBU-1661070807-0-gaNycGzNB1E" method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="md" value="upf8GbILrCJiAJWydkzybqgn1riQlXYAeSZX8lhPlsQ-1661070807-0-AX76tuNpzgtTPPRk6AcHFbyYw5AsGnvw_Tc-pdzZ41t4z8D34qgWAPBjfpZmm_JMQ-S-cFwGxnAQ8EI5-NPDEk9HlsYy7xafNNuqIBLtK9sHJERCVN61oeh84Gy1JqWspvSWbf6m-_2Prqq9NlTgYquVhoF3f-as6db-Pc1xLi9tMO6zCEpzPaH0WYQZD36tOBfiwBhETu4VPycW3MY27G1VguDmaJ3us6joIsXKLXMwTetVjWdGwz3ETxVq5AuRCH3RJaAXs8GZFSfrJbK8LZUYXZJRJYyH9DKNjNSmWVGRjSSoslmkL_95M4WuuOCAjVuShCQ6RiCHbxfVNG6Tp1r9fUlD8TWYHjpuLbASCetvR1hAiFoAysFzzg348gPUPRMDeAyNW201f5rK9jOqxbVY83ZT_kqsyFayQx_oxcbqO6p92RuGgLS35YXoEl1vFj-UQoRj8cxjF4FDKxoSHpKyQsKiIs2ebTOOWIHbiUUUV2BwBJ755dMMNys8hgMFdw2ZUesP-IztF8ANAuc8KZdnd5pUY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CRrzwjim0oOJ+pBKWwkxZfIXOgkbEjs="/>
</form>
</div>
</div>
<script>
(function(){
var trkjs = document.createElement('img');
trkjs.setAttribute('src', '/cdn-cgi/images/trace/managed/js/transparent.gif?ray=73e206214fe3baff');
trkjs.setAttribute('style', 'display: none');
document.body.appendChild(trkjs);
var cpo = document.createElement('script');
cpo.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/managed/v1?ray=73e206214fe3baff';
window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;
window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, -window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;
if (window.history && window.history.replaceState) {
var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;
history.replaceState(null, null, "\/api\/v1\/device\/sensor\/humidity?room_name=Studio&location_name=Casa&__cf_chl_rt_tk=9Gjn5o2WJcXEqfZnVMAueAa_7LV8oi2DjVwjVOmzJBU-1661070807-0-gaNycGzNB1E" + window._cf_chl_opt.cOgUHash);
cpo.onload = function() {
history.replaceState(null, null, ogU);
};
}
document.getElementsByTagName('head')[0].appendChild(cpo);
}());
</script>
<div class="footer" role="contentinfo">
<div class="footer-inner">
<div class="clearfix diagnostic-wrapper">
<div class="ray-id">Ray ID: <code>73e206214fe3baff</code></div>
</div>
<div class="text-center">
Performance & security by
<a rel="noopener noreferrer" href="https://www.cloudflare.com?utm_source=challenge&utm_campaign=m" target="_blank">Cloudflare</a>
</div>
</div>
</div>
</body>
</html>
2022-08-21 10:33:27.262 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.studio fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 514, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 709, in async_device_update
raise exc
File "/usr/src/homeassistant/homeassistant/components/ambiclimate/climate.py", line 192, in async_update
data = await self._heater.update_device()
File "/usr/local/lib/python3.10/site-packages/ambiclimate/__init__.py", line 281, in update_device
humidity = await self.get_sensor_humidity()
File "/usr/local/lib/python3.10/site-packages/ambiclimate/__init__.py", line 192, in get_sensor_humidity
val = res[0].get('value')
TypeError: 'NoneType' object is not subscriptable
Additional information
If you need more info please let me know. I have 5 Ambiclimate devices.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 41
Minor note on this… for a workaround of hitting their rate limit do this.
Go to homeassistant Integrations Enter the ambiclimate integration “system options” DISABLE cloud polling. This will make it so homeassistant does not automatically poll all your Ambi devices once per minute.
Make a new automation with a “time pattern trigger”. Set to 5 - 10 minutes or whatever you feel like. Add an action: “Home assistant core” update entity. Then pick your ambiclimate entity. Should be “climate.<WHATEVER>”. where WHATEVER is the name of your Ambi.
Now your Ambi devices will update much less than the rate limit and you will be able to use this integration again. This integration should probably be fixed NOT to use homeassistant’s default of once every 60 seconds, because if you have more than one Ambi you are already over the rate limit.
Everybody, please send an email to support@ambiclimate.com regarding this problem. Only if they see the sheer volume of us, they can fix it.