Hi I am trying to run a command when MotionEye detect a movement
I am using the following command but I need help to understand where exaclty I need to place the MYSCRIPT to be run by the comand
curl -X POST -H “Authorization: Bearer TOKEN” -H “Content-Type: application/json” -d ‘{“entity_id”: “script.MYSCRIPT”}’ https://yourip:8123/api/services/script/turn_on
To be more precise, the bit I don’t have clear is entity_id": “script.MYSCRIPT”
I tried to put in directory config/blueprints/script/MYSCRIPT but it looks it is never run
Checking in the Log viewer I get this:
2025-04-10 21:01:11.191 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities script.MYSCRIPT are missing or not currently available
Thanks