Automation Front End - Blank {}

Hi all

Im on the latest HASS and not sure if this is a bug or if anyone else is having the same issue.

Front end shows empty bracket but if I open the automations.yaml, there’s a correct entry, just not being reflected correctly.

- id: Gateway Motion Off
  alias: Gateway Motion Off
  trigger:
  - entity_id: sensor.aeotec_multisensor_6_burglar_2
    from: '8'
    platform: state
    to: '0'
    for:
      minutes: 2
  action:
  - service: light.turn_off
    entity_id: light.gateway_light_286c0788a7f3
  - service: automation.turn_off
    data:
      entity_id: automation.gateway_motion_off

I just encountered the same issue yesterday. The entity_id for actions need to be under data like this:

- id: Gateway Motion Off
  alias: Gateway Motion Off
  trigger:
  - entity_id: sensor.aeotec_multisensor_6_burglar_2
    from: '8'
    platform: state
    to: '0'
    for:
      minutes: 2
  action:
  - service: light.turn_off
    data:
      entity_id: light.gateway_light_286c0788a7f3
  - service: automation.turn_off
    data:
      entity_id: automation.gateway_motion_off

Ok great. gotcha!

Also when starting a new automation, is yours all over the place?

I created this from scratch from the front end

And this is how it looks like on the automations.yaml, hard to read!

- action:
  - data:
      entity_id: light.lr_standing_lamp
    service: light.turn_on
  alias: Living Room Light ON sunset
  condition:
  - condition: state
    entity_id: light.lr_standing_lamp
    state: 'off'
  id: '1503193516993'
  trigger:
  - event: sunset
    offset: -00:30:00
    platform: sun

Yeah, some of mine are like that too. Not good for the OCD :slight_smile:.

1 Like

which I am unfortunately :slight_smile:
i’m sure it will get fixed at some point, or I just ignore the old way and do it from the front end here onwards. :slight_smile: