#automations not working

1 messages · Page 1 of 1 (latest)

cursive eagle
#

it is not working...

native mapleBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

formal pebble
#

Share the automation ☝️

cursive eagle
#

Logger: aiohttp.server
Source: components/config/automation.py:70
First occurred: 17:17:19 (5 occurrences)
Last logged: 18:29:24
Error handling request

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/init.py", line 145, in post
self._write_value(hass, current, config_key, data)
File "/usr/src/homeassistant/homeassistant/components/config/automation.py", line 70, in _write_value
cur_value[CONF_ID] = uuid.uuid4().hex
TypeError: 'str' object does not support item assignment

#

i cant

formal pebble
#

What do you mean?

#

it is not working...
Is more than a tiny bit vague

cursive eagle
#

i can not create a automation

#

an

formal pebble
#

At all?

cursive eagle
#

yes

#

nothing

#

i tried via file editor -> nothing shows up

formal pebble
#

Do you have a file called automations.yaml in your configuration folder?

cursive eagle
#

checked the config !automation is in there

formal pebble
#

Do you have

automation: !include automations.yaml
``` in `configuration.yaml`?
cursive eagle
#

automation: !include automations.yaml

#

yes

#

batteryon:
- trigger:
- platform: numeric_state
entity_id: sensor.strom_dg_aktuell
above: 0
action:
- service:
type: turn_on
#entity_id: switch.manual_control_the_load
device_id: 79316d9a5516786bb1b954a8ad0e112a
entity_id: switch.manual_control_the_load
domain: switch
batteryoff:
- trigger:
- platform: numeric_state
entity_id: sensor.strom_dg_aktuell
below: -1
action:
- service:
type: turn_off
entity_id: switch.manual_control_the_load
domain: switch

native mapleBOT
cursive eagle
#

what is that?

formal pebble
#

That's what I want to know about that "yaml" you posted

#

Is that a copy and paste from automations.yaml?

cursive eagle
#

yes

formal pebble
#

Well... I hate to tell you this, but you've fucked up there

#

No wonder HA is unhappy

cursive eagle
#

what is missing ???

formal pebble
#

Wrong question

#

There's nothing right about it

#

Remove the contents, replace with just

[]
#

The editor should work again

cursive eagle
#

okey so in need 2023.1.4 Home assistant core?

formal pebble
#

What?

cursive eagle
#

do i need a core update?

formal pebble
#

No

cursive eagle
#

okey

formal pebble
#

You've thrown in some very broken YAML and invalid content

#

Once you un-fuck that file the UI editor will work again

cursive eagle
#

ok thx i try

formal pebble
cursive eagle
#

thx mate now it is working flawlessly