Closed vinistoisr closed 3 years ago
Hi, Have you followed these steps? integrate-with-home-assistant
I provide in the source code a folder example/homeassistant. There you can find the important parts for the scripts and shellcommand services. (Make sure to edit the path in the shellcommand.yaml file, full path may be required)
Here's how to test from within Home Assistant.
I perfectly setup everything, but still has problems...
If I change the shell script to movie="star wars" mode="0"
and I run the script.download_movie, then its working, but how should the get movie and mode get $1 and $2 from home assistant?
I sorted it, its working from docker trough SSH.
I'll do some guide how I did it.
I installed this but there seems to be some parts missing.
I can search for movies by calling the python script as per the examples.
How to call the script from homeassistant?
I'm trying everything to call the script in Developer tools and always get:
Failed to call service script/download_movie. [Errno 8] Exec format error: '/config/scripts/download.sh'
I'm trying things like { "movie": "star wars" } and all kinds of variations without any luck. I'm sure I'm doing something stupid.