caiosweet / Home-Assistant-custom-components-DPC-Alert

Italy Meteo-hydro alert and hydrogeological phenomena Civil Protection (Protezione Civile). In this custom component you can find the vigilance Bulletin and the Bulletin of national hydrogeological and hydraulic criticalities. They allow to check whether in your current location there will be criticalities/warnings related to weather-hydrogeological and hydraulic phenomena. Weather forecasts for civil protection purposes differs from the classic "weather forecasts". They highlight potentially harmful situations to people or things. This component was created for personal purposes, in order to be able to monitor the Civil Protection site and check for important updates. I hope it will be useful to you.
MIT License
47 stars 4 forks source link

Automation: Message malformed #25

Closed EmAnzi3 closed 3 years ago

EmAnzi3 commented 3 years ago

Ciao! Sorry to bother you again but apparently I'm unable to setup the example automation reported on your page. When I try to save it I get the following message:

Message malformed: extra keys not allowed @ data['automation']

caiosweet commented 3 years ago

Ciao! Sorry to bother you again but apparently I'm unable to setup the example automation reported on your page. When I try to save it I get the following message:

Message malformed: extra keys not allowed @ data['automation']

I think you should read how to create automations in yaml mode or from editor, or split the configuration into packages.

The example you find in the readme is an automation inserted in a package. But you can, as mentioned above, create the manual automations or add an ID (to make it compatible with the UI editor) and insert it in the default automation.yaml file without the automation header (because it is already present in the configuration.yaml file with !includes)

- id: dpc
  alias: Protezione Civile Notifications
  mode: queued
  max_exceeded: silent
  initial_state: true
  trigger:
  ... ...