[homeassistant.components.hassio] Invalid config for [shell_command]: invalid slug Quota_axel (try quota_axel) for dictionary value @ data[‘shell_command’]. Got OrderedDict([(‘Quota_axel’, ‘/bin/bash scripts/ssh_axel.sh’)]). (See /config/configuration.yaml, line 46). Please check the docs at https://home-assistant.io/components/shell_command/
Changed yaml configuration to the Following, no more error message. I’ll try to copy the ssh_ID the local config folder.
quota_axel.sh is an expect script shutting down a port on a Cisco switch. At the end it should reset a user quota on a Fortinet firewall. The main goal is to give internet access back.
I guess I haven’t been clear enough. It doesn’t NEED to be supported in Docker.
Literally, this is the command I am telling you to use DIRECTLY in the component for the shell_command. For whatever reason, you created a script that does what I am telling you to put IN the shell_command line.
I’ve used SSH as you have explained to launch an Expect script on the host Ubuntu because this is not supported in Docker and this is working fine.
Now I understand that the local script is not mandatory but It should work !!! The local script is also helping me to test the command inside docker.
Here is the new configuration.yaml but this is the same issue, no entities and no more logs
I’ve changed the name to match the Cisco script. (Port shutdown)
This is helping to avoid typo issue and yes of course I’ve restarted HA.
Concerning your last remark, 172.30.32.1 is the Ubuntu address (First host) on the same subnet as of the Docker 172.30.33.4/23. I’m always using close IP addresses to avoid routing or nating issues. I’m newbie ONLY in home assitant !!
The command is of course working perfectly in the docker shell with the two IP addresses of the Ubuntu. The picture that I’ve posted 1h ago with the script and the result in the console is the perfect test !
Finally, If you have looked carefully at my last “configuration.yaml” extract, I’m simply asking for an “ls” command. The following line is in comment !!
The 172.30.x.x is a DOCKER IP address, not the IP address of the host which is what you should be using. What is the real IP address of the Ubuntu machine? What does your router allocate to it? That is what you need to use.
For the networking part: 172.30.32.1/23 is the subnet dedicated to the Ubuntu/Docker communication which means that on that specific subnet I currently have two IP addresses.
The Ubuntu server 172.30.32.1/23 (GW)
The HA docker 172.30.33.0/23 (DHCP)
I can also reach the internal IP address of the Ubuntu server, in my case 192.168.1.245 but I would not recommand it for internal communications. (SSH between the two!)
Here is now what I have on my PI touch screen. I still have to find how to update the status because one of the two should be green ON.