That is a bit strange indeed. 127 really is a file not found issue, but your mapping seems ok.
Is there a particular reason you do not use the Addon? It might help, even though the mapping seems ok there might be some issue we do not see. I use this exact file in the addon and that works without issues.
Now I go test the addon to see how it changes. In the meantime another question. Rhasspy allow to use aliases? Basically call a light with different names.
EDIT: it works with lights with one word (es: piantana). Lights with composite word are not managed correctly (es: jack lamp is managed as light.jack lamp, without the "_" so the intent script doesn’t work)
In the meantime as written before I tried also with addon failing as well. At this point I think is clear it’s something I’m missing.
I think the addon fullfill the requirements ( curl and jq)
I added entities in this path /share/rhasspy/profiles/it/slot_programs/hass
I make it executable (rwxr–r–) : 0744
I restarted the addon and then added this to sentences.ini
[HassOpenCover]
covers = $hass/entities,cover
open [the] (<covers>){name}
[HassCloseCover]
close [the] (<HassOpenCover.covers>){name}
Same error when saving:
CalledProcessError: Command '['/share/rhasspy/profiles/it/slot_programs/hass/entities', 'cover']' returned non-zero exit status 127.
OK when I use it in the docker console I see as response a wall of infinite text with A LOT of things (shopping list, sonarr tv shows and all my stuff).
But the again if I readd
[HassOpenCover]
covers = $hass/entities,cover
open [the] (<covers>){name}
[HassCloseCover]
close [the] (<HassOpenCover.covers>){name}
good start
You token and url works
I do not know on what machine you are, but you can add the token and url in the script itself and run it from the command line.
You need to have jq installed.
# apt-get install jq
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version (1.5+dfsg-2+b1).
E: Archives directory /var/cache/apt/amd64/archives/partial is missing. - Acquire (2: No such file or directory)