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

Invalid config for 'homeassistant' at packages/weatheralerts_1.yaml, line 2643 #79

Open
Zouljiin opened this issue Jan 24, 2024 · 2 comments

Comments

@Zouljiin
Copy link

Version of the custom_component
performing initial setup of latest version. pulled yaml text from raw. the sensor does show up in my entities list with the correct county name and it was renamed weatheralerts_1 as per instructions. im getting the below error when tryin to reboot after pasting the yaml

Describe the bug
Configuration errors
Invalid config for 'homeassistant' at packages/weatheralerts_1.yaml, line 2643: expected a dictionary for dictionary value 'packages->automation', got [{'alias': 'Weather Alert UI Notification - 1', 'initial_state': True, 'trigger': [{'platform': 'state', 'entity_id': 'sensor.weatheralerts_1_alert_1_last_changed'}, {'platform': 'homeassistant', 'event': 'start'}], 'condition': [{'condition': 'and', 'conditions': [{'condition': 'template', 'value_template': "{{ states('sensor.weatheralerts_1_alerts_are_active') == 'Yes' }}"}, {'condition': 'template', 'value_template': "{{ (as_timestamp(now()) - as_timestamp(state_attr('sensor.weatheralerts_...
Invalid config for 'homeassistant' at packages/weatheralerts_1.yaml, line 49: expected a dictionary for dictionary value 'packages->sensor', got [{'platform': 'template', 'sensors': {'weatheralerts_1_active_alerts': {'friendly_name': 'Weather Alerts', 'unit_of_measurement': 'Alerts', 'icon_template': 'mdi:alert-rhombus', 'value_template': "{% set alerts_total = namespace(count=0) %} {% if (state_attr('sensor.weatheralerts_1', 'alerts')) %}\n {% for alert in state_attr('sensor.weatheralerts_1', 'alerts') %}\n {% if as_timestamp(alert['endsExpires']) - as_timestamp(now()) > 0 %}\n {% set alerts_total.count = alerts_total.count ...

@IIAIronWolf
Copy link

I don't think this person is maintaining this anymore. Have you tried deleting and reinstalling it?

@Zouljiin
Copy link
Author

Zouljiin commented May 2, 2024

I have not. I haven't even messed with it since posting this.

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

No branches or pull requests

2 participants