Addon variables in config but only show in the YAML editor ui interface and got `null` in the addon log

Hello there !
In my last Topic I talk about my problems on my first addon for hosting a simple discord bot, lol.
Now, I get what really is a addon on homeassistant, but I got a problem with it.

In my config.yaml I do this :

options:
  optionnals_install: "java -jar java.jar -norestart"
  dirjd: ""
options_description:
  optionnals_install: "Custom command after wget"
  dirjd: "Directory of jd (Not work and Not essential)"
shema:
  optionnals_install: boll
  dirjd: str

And in my run.sh :

# Create main config
OP_INSTALL=$(bashio::config "optionnals_install")
DIRJD=$(bashio::config "dirjd")
echo "option optionnals_install ${OP_INSTALL};"
echo "option dirjd ${DIRJD};"

But in https://homeassistant:8123/hassio/addon/local_java/config I got the options but nothing is show inside like other addon :


but when I edit Options with the YAML editor :
image

They showing up.

And in the addon log :

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[20:10:16] INFO: -------------------------------------------------------------
[20:10:16] INFO: RĂ©capitulatif des configurations pour le bot
option optionnals_install null;
option dirjd null;
[20:10:16] INFO: -------------------------------------------------------------

I don’t see what is my problem and got no one who have the same problem :confused:
Thanks for helping

1 Like