-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Climatempo error #2
Comments
This is a old component that I no longer use, so it didnt get the updates to work on the newer versions of home-assistant. But the fix was easy as it just need the manifest.json file. May you clone and try again the component? Did you got the climatempo api key? |
Yes I have the api key and the ID for my City, Belo Horizonte.
Em qui., 29 de out. de 2020 às 19:33, clyra <[email protected]>
escreveu:
… This is a old component that I no longer use, so it didnt get the updates
to work on the newer versions of home-assistant. But the fix was easy as it
just need the manifest.json file. May you clone and try again the
component? Did you got the climatempo api key?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNM2B4UMUFRRYAZJUJU7XLSNHUUDANCNFSM4TD3SVRA>
.
|
Hi Clyra, I tried again and now the error is: Cannot read property 'setConfig' of undefined. |
Hi, Hm... it seems a configuration problem. Here is a config for Belo Horizonte:
|
It’s more or less like this, what happens is that the entity weather.climatempo doesn’t appear, it should appear, right? platform: climatempo |
no. since you named it, the entity should be "weather.agora_em_b_h".
…On Fri, Oct 30, 2020 at 9:52 AM Joberr ***@***.***> wrote:
It’s more or less like this, what happens is that the entity
weather.climatempo doesn’t appear, it should appear, right?
platform: climatempo
name: "Agora em B H"
api_key: <myr_api_id>
city: 6879
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEOSGV6P22WFMSBESL5TDLSNKZH7ANCNFSM4TD3SVRA>
.
--
Christian Lyra
|
Ok, But I have no other weather.xxx than weather.openweathermap |
is there something in logs? may you enable debug on home-assistant? |
I have : climatempo: Error on device update! Logger: homeassistant.loader You are using a custom integration for climatempo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. and Logger: custom_components.climatempo.weather Unable to connect to climatempo, http://apiadvisor.climatempo.com.br/api/v1/weather/locale/6879/current?token=9488c66223568903d95bXXXXX.... And when I try to use the http directly in my browser I have: {"error":true,"detail":"Access forbidden, you have no acces for this locale: 6879,\n check our docs to register the city you want to consult"} Thanks for your patience :) |
ah.. some progress. it seems a problem with your token. The free api from climatempo is very restricted (for instance you can only have one token, which makes testing a little more difficult)! Maybe you could try to cancel your token and create a new one? |
I did 5 times and I got the same error. I will wait until tomorrow to try again. |
I just found the problem! It seems that the API has become even more restricted and you have to register your token to the city you want to retrieve data (only 2 cities allowed!). Here is the documentation about that: http://apiadvisor.climatempo.com.br/doc/index.html#api-UserTokenManagement-UserTokenGetLocales You can just run this on the command line to make the registration for BH: curl -X PUT 'http://apiadvisor.climatempo.com.br/api-manager/user-token/put-your-token-here/locales' -H 'Content-Type: application/x-www-form-urlencoded' -d 'localeId[]=6879' |
I followed all your instructions, but when I check the configuration I get the
error: Platform error weather.climatempo - Integration 'climatempo' not found.
what am I doing wrong?
Home Assistant 0.116.4
Version 2020.10.0
The text was updated successfully, but these errors were encountered: