Skip to content
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

Automation: Message malformed #25

Closed
EmAnzi3 opened this issue Jan 22, 2021 · 1 comment
Closed

Automation: Message malformed #25

EmAnzi3 opened this issue Jan 22, 2021 · 1 comment

Comments

@EmAnzi3
Copy link

EmAnzi3 commented Jan 22, 2021

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
Copy link
Owner

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:
  ... ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants