I am trying to set up a shell command in home assistant. I have tried multiple ways but for some reason, after adding the shell command to directly to my configuration.yaml file like this:
It does not show on the states page in home assistant and when I try to call the service, home assistant logs that it cannot find the service with the name of the command shell. This same command use to work previously but I recently fresh installed the latest version on a Raspberry Pi. What am I doing wrong?
Indeed it does. The problem is its like ha is not seeing the shell command in the config file so it does not show in the states page like all the other script.myscript etc
Tested again by adding http:// to the curl command but still nothing. I don’t think it has anything to do with the actual command reason being that even though the command is invalid and won’t work, home assistant should still pick it up in the configuration file and display the command on the states page in home assistant as service.my_shell_command along with all the other light.mylight, switch.my_switch etc entities? This is what it is not doing. I can see all my entities in home assistant except for the shell command entities.
Somehow, I seemed to have fixed it. One thing I have noticed is that I was looking in the wrong place. the commands are not available on the states page but on the services page. Through my edits, I must have somehow fixed the config as it can call the services just fine now. I do not, however, know what was wrong with the config.
Thanks for all your help. Time to listen to some emo punk