Ok feared as much, have never been able to use that Api setup as they are explained in the documentation. https://developers.home-assistant.io/docs/en/external_api_rest.html
update
well what do you know…
https://developers.home-assistant.io/docs/en/external_api_rest.html#get-api-config
this https://mydomain.duckdns.org:8123/api/config gives me the list in the browser:
{"components": ["python_script", "light", "hassio", "mqtt", "weblink", "sensor.solaredge", "notify.file", "sensor.moon", "asuswrt", "sensor.file", "sensor.statistics", "lovelace", "history_graph", "switch.template", "history", "input_number", "system_health", "sensor.synologydsm", "sensor.rest", "media_player", "binary_sensor.ping", "sensor.hue_custom", "zeroconf", "sensor.min_max", "owntracks", "cast", "sensor.uptime", "binary_sensor.workday", "config", "input_select", "auth", "timer", "updater", "sensor.mold_indicator", "light.hue", "alert", "scene", "binary_sensor.hue_custom", "binary_sensor.bayesian", "sensor.filter", "media_player.cast", "zone", "onboarding", "panel_iframe", "sensor.filesize", "variable", "api", "camera.generic", "custom_updater", "notify.group", "automation", "camera", "group", "scene.homeassistant", "script", "switch.command_line", "sensor.buienradar", "tradfri", "logger", "device_tracker", "hue", "input_datetime", "notify", "map", "websocket_api", "logbook", "sensor.asuswrt", "sensor.version", "webhook", "switch", "mqtt_statestream", "sensor.command_line", "sensor.waze_travel_time", "sun", "system_log", "input_text", "sensor.season", "shell_command", "sensor.time_date", "tts", "light.group", "sensor.nederlandse_spoorwegen", "binary_sensor.threshold", "binary_sensor", "sensor.template", "switch.tradfri", "input_boolean", "sensor", "switch.wake_on_lan", "light.tradfri", "sensor.systemmonitor", "proximity", "ios", "frontend", "notify.pushbullet", "sensor.mqtt", "rest_command", "sensor.websocket_api", "counter", "binary_sensor.template", "person", "http", "notify.ios", "sensor.ios", "sensor.tradfri", "customizer", "recorder"]
now how to get that into a sensor:
sensor:
- platform: rest
resource: https://mydomain.duckdns.org:8123/api/config
name: Loaded components
value_template: >
{{ value_json.components }}
and even if this would work, the list would be too long (+255 characters) to show in a regular HA card. Can overcome that with the custom-ui text-only and a python script to create that sensor… pff. Wish it would be still in the interface ;-(