GithubHelp home page GithubHelp logo

mrbartusek / meteoalarmcard Goto Github PK

View Code? Open in Web Editor NEW
121.0 2.0 43.0 730 KB

Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️

License: MIT License

JavaScript 8.16% TypeScript 91.84%
homeassistant home-assistant custom-cards lovelace lovelace-card meteoalarm meteoalarmeu hacs dwd weather

meteoalarmcard's Introduction

Meteoalarm Card

version hacs_badge GitHub Workflow Status downloads

MeteoalarmCard is a powerful yet simple custom card to show meteorological warnings card for Home Assistant. It supports most of the core integrations as well as custom integrations like MeteoAlarm, Météo-France, NINA, DWD and more! When there are any alerts issued, card will change color to let you know about upcoming dangerous conditions.

cover

Installing

HACS

We recommend installing MeteoalarmCard via Home Assistant Community Store

Just search for Meteoalarm Card in Frontend tab and hit download.

Manual Installation

  1. Download meteoalarm-card.js file from the latest release.
  2. Put meteoalarm-card.js file into your config/www folder. You can use File Editor add-on or any FTP client.
  3. Add reference to meteoalarm-card.js in Lovelace. There's two way to do that:
    1. Using UI: Navigate to Lovelace Resources → Click Plus button → Set URL as /local/meteoalarm-card.js → Set Resource type as JavaScript Module.
      Note: If you do not see the Resources Tab, you will need to enable Advanced Mode in your User Profile
    2. Using YAML: Add following code to lovelace section.
      resources:
        - url: /local/meteoalarm-card.js
          type: module
  4. Add custom:meteoalarm-card to Lovelace UI as any other card.

Using the card

After completing installation you can add this card like any other to your dashboard.

  1. Navigate to your dashboard → click 3 dots in the top left corner.
  2. Select Edit Dashboard
  3. Click + New Card button
  4. Select Custom: Meteoalarm Card

Here is what configuration options mean:

Name Type Default Description
type string Required custom:meteoalarm-card
integration string Required Name of the integration. Available options are listed under Supported integrations
entities array Required Entity ID, a list of entity IDs or a list of entity objects.
override_headline boolean false [Only some integrations] Override headline proved by integration by generated one.
scaling_mode string headline_and_scale Headline scaling mode. See scaling-mode.md
disable_swiper boolean false [Only some integrations] Disable slider when displaying multiple alerts, you may not see some important alerts.
hide_caption boolean false [DWD only] Hide top-right caption when showing advance alerts.
hide_when_no_warning boolean false Hide the card when no warning is active. This works like a conditional card.
ignored_levels * array [] List of levels that will not be shown on the card. Possible values are: Yellow, Orange and Red
ignored_events * array [] List of events that will not be shown on the card. Possible values are: Nuclear Event, Hurricane, Tornado,Coastal Event,Tsunami,Forest Fire,Avalanches,Earthquake,Volcanic Activity,Flooding,Sea Event,Thunderstorms,Rain,Snow/Ice,High Temperature,Low Temperature,Dust,Wind, Fog, Air Quality and Unknown Event

* Not available through visual editor

Example configuration for Meteoalarm:

type: 'custom:meteoalarm-card'
integration: 'meteoalarm'
entities: 'binary_sensor.meteoalarm'
override_headline: false

Example configuration for Deutscher Wetterdienst (DWD):

type: 'custom:meteoalarm-card'
integration: 'dwd'
entities:
  - entity: 'sensor.dwd_weather_warnings_current_warning_level'
  - entity: 'sensor.dwd_weather_warnings_advance_warning_level'
override_headline: false

Supported languages

This card supports translations. Please, help to add more translations and improve existing ones. Here's a list of supported languages:

  • English
  • Български (Bulgarian)
  • Čeština (Czech)
  • Deutsch (German)
  • Eesti (Estonian)
  • Español (Spanish)
  • Français (French)
  • Hrvatski (Croatian)
  • Italiano (Italian)
  • Nederlands (Dutch)
  • Polski (Polish)
  • Português (Portuguese)
  • Slovenský (Slovak)
  • Svenska (Swedish)
  • Your language?

Supported integrations

Expect Meteoalarm this card supports many other integrations:

Integration Key Description
MeteoAlarm meteoalarm Warnings for Europe collected by MeteoAlarm (EUMETNET). The website integrates all important severe weather information originating from the official National Public Weather Services across a large number of European countries
Météo-France meteofrance Warnings for France from Météo-France.
Deutscher Wetterdienst (DWD) dwd Warnings for Germany from Deutscher Wetterdienst.
Environnement Canada env_canada Warnings for Canada from Environment and Climate Change Canada.
NINA nina Warnings for Germany from Bundesamt für Bevölkerungsschutz und Katastrophenhilfe. This integration doesn't provide much atributes thus using it generates very generic card.
Burze.dzis.net burze_dzis_net Custom integration for warnings in Poland from Burze.dzis.net. These warnings are issued by Skywarn / Polscy Łowcy Burz which is not backed by government or any official agency.
weatheralerts weatheralerts Custom integration for USA from National Weather Service (NWS).
New integration? You can request a new integration to be added here!

Customizing the Card's Appearance

You can customize card appearance using provided CSS variables and card-mod. For example:

type: custom:meteoalarm-card
entities:
  entity: binary_sensor.meteoalarm
integration: meteoalarm
card_mod:
  style: |
    ha-card {
      --inactive-background-color: blue;
    }

Which produces result:

result

Below are the available CSS variables that you can modify:

  • --text-color: The text color of inactive card.
  • --text-color-active: The text color for card with active warnings.
  • --red-level-color: The background color for red level alerts.
  • --orange-level-background-color: The background color for orange level alerts.
  • --yellow-level-background-color: The background color for yellow-level alerts.
  • --inactive-background-color: This variable defines the background color when there are no warnings active.

Contributing

Want to contribute to the project?

First of all, thanks! Check contributing guidelines for more information.

meteoalarmcard's People

Contributors

ajtudela avatar bartengelen avatar brendangoldz avatar cepresso avatar deadly667 avatar dnlbauer avatar el97 avatar fragmenthor avatar fredriklj avatar jbytheway avatar jpbede avatar jucgshu avatar lgtm-com[bot] avatar lynilia avatar lz2isi avatar marlo461 avatar martin131 avatar michelbalzer avatar mmachor avatar mrbartusek avatar nijel avatar niklas1375 avatar nsbx avatar nurtext avatar pmazz avatar repsionu avatar rubenkelevra avatar siriosdev avatar t1gr0u avatar thezoker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

meteoalarmcard's Issues

Next major release of MeteoalarmCard

Hey! I'm currently working on version v2.0.0 on the new branch 2.0 More info about why this this decision was taken, will be clarified in the release notes. In short, some stuff needs to be removed and rethought. That, will bring breaking changes. I will finally work on the ability to work with multiple entities for #67 and #71. After almost a year! of piling up code, it became a bit messy so it's in desperate need of cleanup. Part of that cleanup will be rewriting it to match https://github.com/custom-cards/boilerplate-card style of the project and thus, switching to Typescript!

TASK LIST FOR 2.0:

Features

  • Rewrite to Typescript and base the code on https://github.com/custom-cards/boilerplate-card
  • Rewamp the visual editor
  • Add support for multiple entities
  • DWD: indicate which sensor is used
  • Add an slider for displaying more than one alert
  • Make slider optional

New integrations

Bugs

Card empty when wind meteo alert

Describe the bug
Yesterday i had a strom alert and was correctly displayed, this morning a upgrade the card to 1.5.0 ( dont know if it is related ) and one hour after i had a new wind alert but now the card is empty.

image

No javascript error in the chrome console.

If it can help here is the link to the alert : http://meteoalarm.eu/fr_FR/1/0/BE005-Belgique.html

Here is my binary_sensor.meteoalarm entity description :

language: fr-FR
category: Met
event: Jaune Vent Avertissement
responseType: Prepare
urgency: Immediate
severity: Moderate
certainty: Likely
effective: 2021-05-21T10:00:00+00:00
onset: 2021-05-21T10:00:00+00:00
expires: 2021-05-21T19:59:59+00:00
senderName: Royal Meteorological Institute of Belgium
headline: Jaune Vent Avertissement pour Belgique - Hainaut / Henegouwen
description: Demain vendredi, le vent se renforcera. Nous attendons un vent assez fort avec des rafales jusqu'a 70 ou 80 km/h dans l'interieur des terres et un vent fort a tres fort avec des rafales jusqu'a 90 km/h au littoral.
instruction: Quelques branches ou arbres cassés.
Difficultés de circulation localisées, surtout pour des véhicules à fortes prise au vent.
Conduisez avec précautions sur les routes exposées et faites attentions aux objets emportés par le vent.
web: http://meteoalarm.eu/fr_FR/0/0/BE005.html
awareness_level: 2; yellow; Moderate
awareness_type: 1; Wind
attribution: Information provided by MeteoAlarm
friendly_name: Meteo alarm
device_class: safety

To Reproduce
No realy steps to reproduce, just configure it

Expected behavior
Card need to display the orange wind alert

Screenshots
image

System (please complete the following information):

Different severity name based on device width

Hello,

thank you for this beautiful card.

I noticed some inconsistency with the card name based on the device width.
If I look into entity itself, data is shown as Event: Moderate Low temperature Warning, Severity: Moderate, but in certain scenarios it's shown as extreme.
I think it's best to explain in screenshots.
Screenshot_20220107-205523
Phone portrait

Screenshot_20220107-220627
Phone landscape

hass_weather_card_wrong
Computer, Chrome, narrow window

Seems inconsistent to me. Is it a bug?

Thanks for looking into it.

System (please complete the following information):

  • Card version: 1.13
  • Integration type: meteo-alarm core
  • Installation type: HACS

entities not recognized

Describe the bug

After installing the 2.00 release the card is not anymore showing as it asks an entities.

Steps to reproduce

No response

Screenshots

Schermata 2022-07-07 alle 21 06 58
This is what i get after applying the breaking changes to the fronted card

Card version

v2.0.0

Integration type

Meteoalarm

Installation type

Home Assistant Community Store (HACS)

Card Configuration

                  - type: custom:meteoalarm-card
                    entities: 'binary_sensor.allarme_meteo_abruzzo'
                    integration: 'meteoalarm'

Integration Configuration

- platform: meteoalarm
  name: 'Allarme Meteo Abruzzo'
  language: 'it'
  country: "italy"
  province: "Abruzzo"

Unambiguous wording on the card

Is your feature request related to a problem? Please describe.
This might be nitpicking but the current wording of the (English) cards is a bit weird, for example "Yellow Fog Warning" which suggests that there's a warning in effect because of a yellow fog out there.

Describe the solution you'd like
A simple change in word order would solve this, e.g.: "Yellow Warning: Fog", or alternatively without the "Yellow Warning" text since the card itself is yellow, indicating the warning level already.

Card not displayed

Describe the bug
The card is not displayed in the UI.
In the console of the browser i get this:

Schermata 2021-05-16 alle 11 23 09

env_canada not working when configured in French

Describe the bug

I am trying to configure the card with Environment Canada but I get the following error:

Error: Selected integration doesn't match selected entities: sensor.envcan_statements, sensor.envcan_warnings, sensor.envcan_watches.

Those sensors exist and have the valid information from the integration.

Steps to reproduce

No response

Screenshots

image
image
image
image

Card version

v2.0.0

Integration type

Environnement Canada

Installation type

Home Assistant Community Store (HACS)

Card Configuration

name: Meteoalarm
type: custom:meteoalarm-card
integration: env_canada
entities:
  - entity: sensor.envcan_statements
  - entity: sensor.envcan_warnings
  - entity: sensor.envcan_watches

Integration Configuration

No yaml configuration, configured in the integrations

image

Lost in contributing...

Something goes wrong all the time :-(
So decided to upload et.json translation here, maybe it works this way until I sort out what is going wrong :-)
Best and TIA, JR

et.zip

Add support for heat advisory icon

Screenshot_20220720-054122_Home Assistant

As you could probably imagine most of the world right now is experiencing a pretty big heat advisory and I noticed the other day that there isn't an icon for this particular warning. It would be great if we had a separate icon for this.

2 alerts, only one displayed

I guess that I misundestood or configured something wrong but I always get only one warning using meteoalarmeu integration:
Alarm_meteo_problem
What can be wrong on my side?
Best, JR

Card breaks when `Awareness level` and `Awareness type` are not provided

Describe the bug
I have been using the MeteoalarmCard in conjunction with the core meteoalarm integration for a few weeks without any issues. However, it has stopped working a few days ago because it supposedly doesn't support the same provided binary_sensor.meteoalarm entity anymore which worked fine until recently.

To Reproduce

  • Add MeteoalarmCard to a Lovelace dashboard
  • Click on edit
  • Select entity binary_sensor.meteoalarm

Screenshots
image

System (please complete the following information):

  • Card version: v1.9.0
  • Integration type: Core
  • Installation type: HACS

Not working due to problems described in the log

Log entries

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 550, in async_device_update
await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/meteoalarm/binary_sensor.py", line 88, in update
alert = self._api.get_alert()
File "/usr/local/lib/python3.8/site-packages/meteoalertapi/meteoalertapi.py", line 34, in get_alert
feed_data = xmltodict.parse(text)
File "/usr/local/lib/python3.8/site-packages/xmltodict.py", line 327, in parse
parser.Parse(xml_input, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 28, column 71

Can you also implement KNMI sensor?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Additional context
Add any other context or screenshots about the feature request here.

`hide_when_no_warning` hides all cards even when only one is hidden

Describe the bug

I have the following view configured:

title: Rooms
views:
  - title: Outdoor
    path: outdoor
    cards:
      - type: custom:meteoalarm-card
        entity: sensor.dwd_weather_warnings_current_warning_level
        hide_when_no_warning: true
        integration: dwd
      - type: custom:meteoalarm-card
        entity: sensor.dwd_weather_warnings_advance_warning_level
        hide_when_no_warning: true
        integration: dwd

If the advance_warning is empty, the current warning won't be shown as well. Even if I have hide_when_no_warning: false on the current warning.

Expected behavior
Only the empty warning display should be removed OR they should only be removed if both are empty.

System (please complete the following information):

  • Card version: No idea where to find this info.
  • Integration type: DWD
  • Installation type: HACS

Change in translation (Dutch)

Is your feature request related to a problem? Please describe.
It is not related to a problem but to a translation (Dutch)

Describe the solution you'd like
The dutch translation states "Waarschuwing geel mist" which if you read it indicates that we should be warned for yellow mist.
Same with the warning for red. In The Netherlands we use "Code Yellow of Code Red"

Additional context
Change the text to:

Geen Waarschuwingen
Code Geel:
Code Rood:

Unknown Env canada alert type: Severe Thunderstorms

Describe the bug

Card will not display warnings.
Card will work if - entity: sensor.watches is removed

edit: now we have more warnings and card doesn't work even with watches entity removed

  • Severe thunderstorm warning
  • Heat warning
    and
  • Severe thunderstorm watch

Steps to reproduce

No response

Screenshots

image
image
image

Card version

v2.0.0

Integration type

Meteoalarm

Installation type

Home Assistant Community Store (HACS)

Card Configuration

type: custom:meteoalarm-card
entity: update.home_assistant_supervisor_update
integration: env_canada
entities:
  - entity: sensor.warnings
  - entity: sensor.watches
  - entity: sensor.statements
hide_when_no_warning: false

Integration Configuration

Configured by HACS

Card does not show after latest update

Describe the bug
Custom card does not show up in LL (red box and not found)

To Reproduce
Open LL view with card

Expected behavior
Have a card displayed
Screenshots
If applicable, add screenshots to help explain your problem.
meteoalarm-card.js:1:33 TypeError: Error resolving module specifier “lit-element”. Relative module specifiers must start with “./”, “../” or “/”.
HA_meteoalarm_state

System (please complete the following information):

  • Card version: [latest]
  • Home assistant version: [latest]
  • Installation type: [HACS]

Additional context
Worked OK before todays first alert?

language does not match the settings

Describe the bug

Shown Language does not match the settings and is not is not identical on different devices and programs/apps.
Original language in the entity is german and is translated to english by the card, although the user's language setting is german.
When opening the page, the text is displayed very briefly in German and then changes to English. Other cards from my interface with automatic text are displayed in german
When opening the page in the browser on the PC, the problem does not occur, it remains in German.

Steps to reproduce

No response

Screenshots

Language settings:
LanguageSettingUser Screenshot 2022-07-20 073932
Orgin entity text:
entity2022-07-20 07_44_45-Clipboard
Browser Chrome on PC:
Browser Chrome Screenshot 2022-07-20 073517
FullyKioskBrowser on Tablet
FullykioskBrowser Tablet Screenshot 2022-07-20 073705
Smartphone CompanionApp:
Smartphone CompanionApp_20220720_073802

Card version

v2.0.0.0

Integration type

Deutscher Wetterdienst (DWD)

Installation type

Home Assistant Community Store (HACS)

Card Configuration

type: custom:meteoalarm-card
integration: dwd
entities:
  - entity: sensor.wetterwarnungdwd_xxx_current_warning_level
  - entity: sensor.wetterwarnungdwd_xxx_advance_warning_level
disable_swiper: false
hide_caption: false

Integration Configuration

[PASTE CONFIGURATION HERE]

Gt.find is not a function

Describe the bug
My HA cannot display the card. It is a red box, and on the top it says "Gt.find is not a function"

To Reproduce
I just installed the card with HACS. I never had a running version with this card before.

System (please complete the following information):

  • Card version: 1.7.0
  • Integration type: I tried several: meteoalarm, Meteo France, meteoalarmeu
  • Installation type: HACS

Text in card message

Is your feature request related to a problem? Please describe.
Maybe it is not neccessary to include color text in "messages" as background already has the information on severity so icon+phenomena name are sufficent.

Describe the solution you'd like
Maybe add (optional) event start+end time to entry?
Maybe add an option for message format: only event or event with severity color?

Additional context
How is card display related to start and end time- entry is cleared on new RSS message cancelling event?
Best, JR

Filter for alert severity

Is your feature request related to a problem? Please describe.
I use you card on a wall tablet, hiding it when there are no alerts. In my opinion, Yellow alerts (ie. for high temperatures) are not that important and I would rather not consume screen place for that, but I am very interested in seing any Red alert (ie. storms).

Describe the solution you'd like
It would be great to have a filter in the card to only show alerts above a defined awareness_level, or even be able to filter out some awareness_type. Note that I am using MeteoAlarm integration as source and I don't know if the others are using the same entity attributes.

Thanks for the consideration and for the excellent card.

Multiline

Is your feature request related to a problem? Please describe.
Unable to read.

Describe the solution you'd like
Multiline text.

Additional context
Hi, I don't know if is possible but it would be nicer if you add multiline text. In spanish is difficult to read. Thanks!
Captura

Help to test MeteoalarmCard 2.0

Hey! I have just released first release candidate for version 2.0. It's the biggest update that this project has received. You can read full release notes here. The full release will be coming in a couple of weeks, depending on how many issues there will be. You can download the new version and report any issues, feature requests or thoughts in the issue tracker.

This release adds a bunch of new translation keys and you will see a lot of missing strings in this version. The current translation progress is as follows:

+ English - 100% translated
+ Spanish - 100% translated
+ Polish- 100% translated
- Czech - 90% translated
- French - 57% translated
- German - 55% translated
- Estonian - 55% translated
- Croatian - 55% translated
- Slovak - 55% translated
- Swedish - 50% translated
- Dutch - 40% translated
- Italian- 29% translated

You can help to add missing keys in existing languages or add a new language - see CONTRIBUTING.md!

How to install beta version

You can download beta version using HACS

  1. Re-donwload MeteoalarmCard
    image

  2. Check Show beta versions
    image

  3. Select newest release candidate
    image

  4. Donwload new version
    image

Determine language based on user preference in HA

Describe the bug
Currently the card is using the os/browser language setting to display translated texts on card.
Most other cards in HA do this based on the user preference in HA.
This results in language inconsistency on a HA dashboard when both language settings are not the same.

To Reproduce
Steps to reproduce the behavior:

  1. Make your os/browser language setting different then your language preference in HA
  2. Open dashboard in HA and see difference in behavior with other cards

Expected behavior
All cards in HA should follow same mechanism to determine preferred language.

Screenshots
See example below. The os/browser is in English, the user preference in HA is in Dutch.

image

System (please complete the following information):

  • Card version: 1.14.1
  • Integration type: Core
  • Installation type: HACS

Better wording for the English warning messages

I noticed that the English warning messages might end up with unfortunate wording. The proposal here would be to find better way for the message structure to avoid this, for example like in the German version (e.g. "Yellow warning: snow/ice").

Screenshot

This would just be a small change in the translation file, but maybe it isn't seen as necessary, thus I'm just posting this as a feature request for now.

Error: This integration doesn't support provided entity!

Describe the bug
I get the fallowing error when adding the card to my lovelace dashboard:

Error: This integration doesn't support provided entity!
type: custom:meteoalarm-card
entity: binary_sensor.meteoalarm
integration: meteoalarm
override_headline: false

To Reproduce

  1. Choose the lovelace dashboard
  2. clock on: +add card
  3. add the meteoalarm-card
  4. chose the entity: binary_sensor.meteoalarm

Attributes of the entity: binary_sensor.meteoalarm

language: en-GB
category: Met
event: Yellow Rain Warning
responseType: None
urgency: Expected
severity: Moderate
certainty: Likely
effective: 2021-07-15T00:00:00+02:00
onset: 2021-07-15T00:00:00+02:00
expires: 2021-07-16T21:00:00+02:00
senderName: MeteoSwiss
headline: Yellow Rain Warning for Switzerland - Wohlen-Albis
description: - Expected amounts: 40-60 mm
- Snowfall limit: 2700-3000 m
web: http://www.meteoswiss.admin.ch
contact: [email protected]
attribution: Information provided by MeteoAlarm
friendly_name: meteoalarm
device_class: safety

Screenshot
image

System:

  • Card version: v1.9.0
  • Integration type: Core
  • Installation type: HACS

Only one warning shown

Describe the bug
The card only shows one warning, even when more are active.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the card for a sensor
  2. Wait for multiple active warnings

Expected behavior
The card should show all active warnings, ideally in order of severity, most severe first.

Screenshots
Screenshot_20210607_132023
Screenshot_20210607_131716

System (please complete the following information):

  • Card version: 1.7.2
  • Integration type: xlcnd
  • Installation type: HACS

Error when awareness level is `1; Green`

Describe the bug
Error: This entity (binary_sensor.meteoalarm) cannot be parsed by selected integration (meteoalarm)

To Reproduce
Steps to reproduce the behavior:
Add the card to the lovelace dashboard
Wait for a meteoalarm to occur

Screenshots
image

System (please complete the following information):

  • Card version: 1.10.0
  • Integration type: Core
  • Installation type: HACS

Additional information
Developer console log:
2meteoalarm-card.js?hacstag=3612056631100:326 === METEOALARM CARD ERROR ===
Report issue: https://bit.ly/3hK1hL4

Error: This entity (binary_sensor.meteoalarm) cannot be parsed by selected integration (meteoalarm)
at HTMLElement.getAttributes (meteoalarm-card.js?hacstag=3612056631100:289)
at HTMLElement.render (meteoalarm-card.js?hacstag=3612056631100:313)
at HTMLElement.update (meteoalarm-card.js?hacstag=3612056631100:159)
at HTMLElement.performUpdate (meteoalarm-card.js?hacstag=3612056631100:134)
at HTMLElement._enqueueUpdate (meteoalarm-card.js?hacstag=3612056631100:134)

Nothing in the HA logs themselves

Current state of binary_sensor.meteoalarm for this error to occur:
image

configuration.yaml:
binary_sensor:

  • platform: meteoalarm
    country: "belgium"
    province: "Brabant"
    language: "ne"

Hide card when there is no warning

Hi, first of all, thanks for this very nice card! :)

Is your feature request related to a problem? Please describe.
No problem, just something that would be useful for me :)

Describe the solution you'd like
Currently, the card is always shown. When there is no warning, it is shown with the text "No warning".
I would personally prefer the card to be hidden when there is no warning, and only to be shown, when there is a warning.

In the best case, this would just be optionally configurable, for example by a config parameter "show_only_on_warnings" or "hide_when_no_warning" or similar.

'Yellow' alert isn't parsed while using meteoFrance

Describe the bug
'Yellow' avalanche alert isn't parsed while using meteoFrance

To Reproduce
Steps to reproduce the behavior (not sure about this):

  1. Adding meteoFrance integration
  2. Adding the weather alert card with sensor.31_weather_alert
  3. Wait for an avalanche yellow warning
  4. Error :

Error: This entity (sensor.31_weather_alert) cannot be parsed by selected integration (meteofrance)! type: custom:meteoalarm-card entity: sensor.31_weather_alert hide_when_no_warning: true integration: meteofrance (Tried automatic too) override_headline: false

Expected behavior
Today there's an avalanche yellow warning where i live, there's a yellow warning alert, i'm expecting a yellow alert on the card

Logs :

System:

  • Card version: 1.14.0
  • Integration type: HAOS / Meteo-France
  • Installation type: HACS / Via interface

No specific logs in HA logs

Attribute of my weather alert :
Inondation Vert
Grand-froid Vert
Neige-verglas Vert
Orages Vert
Pluie-inondation Vert
Vent violent Vert
Avalanches Jaune (avalanche yellow)

Language problem

My meteoalarm card is in english , while my HA instance is set to dutch ?
How do i change the language of the card ?

Get card to show other text attribute from entity

Dear, is there a way to show another attribute from the meteoalarm entity on the card? I use the dutch language. I would like the card to show attribute 'event' instead of attribute 'awareness type'.

Data from meteoalarm entity:

IMG_20220811_111243

Data appearing on card:

IMG_20220811_111307

Thanks

Half dutch translation ?

It seems i'm somehow stuck at a half dutch translation is it not yet fully translated, see picture ?

image

xlcnd/meteoalarmeu is now deprecated

image

One of the integrations supported by card xlcnd/meteoalarmeu has been deprecated due to the changes in meteoalarm API by the library owner. The card will show a warning when using that integration and soon it will be removed from the project entirely.
See xlcnd/meteoalarmeu#23

As of home assistant version 2021.7.0 - meteoalarm integration is available to all participating countries so you can switch to using core integration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.