pawkakol1 / worlds-air-quality-index

HACS World's Air Quality Index integration from waqi.info
43 stars 12 forks source link

Unable to add integration from UI #29

Closed FragMenthor closed 1 year ago

FragMenthor commented 1 year ago

Hello. At some point I lost the ability to add this integration in the UI, it reports that the configuration should be done in configuration.yaml... What am I doing wrong, or what am I missing? Using all latest versions, HA 2022.10.5 and your integration 3.4

Captura de ecrã 2022-10-21 094008 Captura de ecrã 2022-10-21 093942

Btw, I need to get information from this station:

https://api.waqi.info/feed/A191107/?token={token}

How should I add it, please? Thanks in advance!

FragMenthor commented 1 year ago

Well, I completly removed the integration and installed again, and it seams to work, so I will close this. I am trying to get the values from this station:

https://aqicn.org/station/portugal/senhora-da-sa%C3%BAde/rua-de-dom-manuel-da-concei%C3%A7%C3%A3o-santos/ I can get info from https://api.waqi.info/feed/A191107/?token={token} and i got, for instance:

{"status":"ok","data":{"aqi":0,"idx":-191107,"attributions":[{"url":"https://uradmonitor.com/","name":"uRad Monitor","station":"820002a8"},{"url":"https://waqi.info/","name":"World Air Quality Index Project"}],"city":{"geo":[38.5667,-7.9],"name":"Rua de Dom Manuel da Conceição Santos","url":"https://aqicn.org/station/@191107","location":"Rua de Dom Manuel da Conceição Santos, Álamos, Senhora da Saúde, Bacelo e Senhora da Saúde, Évora, Alentejo Central, Alentejo, 7005-451, Portugal"},"dominentpol":"pm25","iaqi":{"h":{"v":54.42},"o3":{"v":8},"p":{"v":989.07},"pm10":{"v":0},"pm25":{"v":0},"t":{"v":26.77}},"time":{"s":"2022-10-21 11:57:57","tz":"+01:00","v":1666349877,"iso":"2022-10-21T10:57:57Z"}}}

When I added the integration again I can get to some of the station data, but not the AQI:

image

Any ideas? Thanks again :)

pawkakol1 commented 1 year ago

You tried to add original integration named "World Air Quality Index (WAQI)", this integration is named "World's Air Quality Index" - try to add it again with below instructions: image

FragMenthor commented 1 year ago

Nope, my integration is yours:

image

I think my problems comes from constant error from the api, sometimes I get the value, most frequently I don't.

pawkakol1 commented 1 year ago

@FragMenthor I just added it (using Station ID A191107) and it added AQI entity for me image Could you check below: