List of installed addons in a template / automatin / script?

Hello, I want to call some hassio.* services in a script for a list of addons. Is there any way to get the list of installed addons, especially their slugs?

Ok, worked it out myself.

A command_line sensor…

command_line:
  - sensor:
      name: Supervisor Addons
      command: 'curl -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" "http://supervisor/supervisor/info"'
      json_attributes_path: "$.data"
      json_attributes:
        - addons
      value_template: "{{ value_json.data.addons | length }}"

… and a template for the slugs…

{{ state_attr('sensor.supervisor_addons','addons')
  |map(attribute ='slug') 
  |list
}}