Missing compatibility with automation editor vs old fashion?

Hi,

I am trying to migrate all my old automation to be compatible with the Automation Editor in HASS.

How can I call the light brightness and rgb_color parameter with the new format? The component used is MQTT_JSON

The “old” format:

alias: 'Night Light On'
trigger:
  - platform: state
    entity_id: sun.sun
    to: 'below_horizon'

action:
  - service: light.turn_on
    entity_id: 
      - light.RGBTestStrip
    data:
      brightness: 50
      rgb_color: [75,195,255]
alias: 'Night Light On'
  id: 'any_unique_number'
  trigger:
  - platform: state
    entity_id: sun.sun
    to: 'below_horizon'

  action:
  - service: light.turn_on
    entity_id: 
      - light.RGBTestStrip
    data:
      brightness: 50
      rgb_color: [75,195,255]

The only thing that should change is the indenting and the addition of an id number.

unfortunately, it’s more complicated then just adding the id. I think the data is missing for light components in the automation editor.

I see what your saying and I think you’re correct.
There is still an advantage in transferring your automations though, as you can still edit them manually in the automations.yaml and you can reload automation changes just by using the reload automation button under Configuration rather than having to restart HASS completely.
I don’t personally use the automation editor due to the missing features and it tends to make a mess of code which is hard to read. But I have transferred all my autos to the automations.yaml for the above reason.
Being able to reload autos in 2 seconds rather than waiting for a 2 to 3 minute restart is a god send.

Ok I found the solution

This is the format required. The values in the data part needs to be “merged” to the new data format

- action:
  - data:
      brightness: 50
      rgb_color:
      - 75
      - 195
      - 255
      entity_id: light.RGBTestStrip
    service: light.turn_on
  alias: Night Lights On
  condition: []
  id: '1514340773328'
  trigger:
  - entity_id: sun.sun
    platform: state
    to: below_horizon