dnguyen800 / air-visual-card

A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.
MIT License
103 stars 35 forks source link

After update to 0.107.1 air visual is not working #26

Closed daha76 closed 4 years ago

daha76 commented 4 years ago

Hello,

for some reason this card can't get data after I updated to 0.107.1. When I reverted back to 0.106.6 all is ok and works normally. Seems like 0.107.1 is quite buggy, because some other integrations also stopped working properly, like denonavr, asuswrt, Mibox, and maybe some others.

DMQ8 commented 4 years ago

I have managed to get it working with 0.107.3 as the issue seems with the new HA integration for AirVisual.

I have deleted all my old config for AirVisual from configuration.yaml, restarted HA, deleted the Configured Integration of AirVitual form the Configuration>Integrations page in the HA User Interface then setup again AirVisual by entering the API Key using Integrations User Interface page.

Check the Sensors names as it might have been changed and edit/update the air-visual-card accordingly.

arek156 commented 4 years ago

Hello I have a problem with the air visual card plugin. I have the HA 0.107.4 version, I have added air visual card in the integration and the API key in config.yaml. When I add a plugin on the main screen I have this error: visualcard

DMQ8 commented 4 years ago

Hello I have a problem with the air visual card plugin. I have the HA 0.107.4 version, I have added air visual card in the integration and the API key in config.yaml. When I add a plugin on the main screen I have this error: visualcard

Setting /integrating Airvisual sensors using configuration.yaml didn't work for me as in previous version 0.106.x although I followed the new setup guide for 107.x

Doing the setup in the User Interface and Inserting the API key directly using the integrations page user interface worked for me as the steps I mentioned.

Air-Visual-Card is downloaded through HACS.

Make sure the sensors name are correct in your case and it has values check in Developer-tools>States, The following is card setting:

 air_pollution_level: sensor.u_s_air_pollution_level
 air_quality_index: sensor.u_s_air_quality_index
 city: Your City Name
 icons: 'https://cdn.jsdelivr.net/gh/dnguyen800/air-visual-card@0.0.4/dist'
 main_pollutant: sensor.u_s_main_pollutant
 type: 'custom:air-visual-card'
arek156 commented 4 years ago

Reinstalled the add-on without any changes, all sensors are added correctly. I am only thinking about the message that coustom element not found. The add-on is installed in HACS, it is also integrated and reporting data correctly.

daha76 commented 4 years ago

I deleted all air visual integrations and entities, added only this in configuration.yalm:

airvisual: api_key: YOUR_AIRVISUAL_API_KEY

restarted server and added air visual card again and all works as before.

I think that this issue can be closed.

arek156 commented 4 years ago

@daha76 can you show your air visual card script as it looks on the lovelace card?

daha76 commented 4 years ago

air_pollution_level: sensor.u_s_air_pollution_level air_quality_index: sensor.u_s_air_quality_index city: Kosice country: Slovakia icons: 'https://cdn.jsdelivr.net/gh/dnguyen800/air-visual-card@0.0.4/dist' main_pollutant: u_s_main_pollutant temp: weather.domov type: 'custom:air-visual-card'

arek156 commented 4 years ago

unfortunately it doesn't work for me, I have the message: Error: Custom element not found: air-visual-card

daha76 commented 4 years ago

Seem like you have to reinstall air-visual-card

arek156 commented 4 years ago

problem solved, i had not updated HACS. Everything works.