Start / stop addon from automation using slug

Does anyone know how to start / stop an addon from an automaton or script? hassio.addon_start complains about the slug, but the slug is correct, I know this because it works thru the terminal ->
ha addons start ff29d639_doods-amd64
works fine.

From UI developer tools - services I get this error ->
2020-12-02 17:36:48 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140035152439184] invalid slug ff29d639_doods-amd64 (try ff29d639_doods_amd64) for dictionary value @ data[β€˜addon’]

But as I said earlier, this works from the terminal ->
ha addons start ff29d639_doods-amd64

I think it’s something to do with the dash β€˜-’, as I can start stop other addons from the UI like core_ssh

Also having an issue with another slug containing the β€œ-” character. I tried escaping it with \ and adding quotes. Neither of those helped. I believe this is a bug and I will open an issue.

1 Like