Im trying to make a script that takes a mac from the host list and makes it active, is this doable? I’ve seen the /ip hotspot active add copy-from= but not too sure how to get it to add to active from a mac in the host?
You can’t make it “active” in the sense of logging the user in. But you can make a binding of type “bypassed”, where for this particular host, the router will work as if there was no hotspot enabled (i.e. you need to “manually” do stuff like rate limitations based on the IP).
To do that, you can use the “make-binding” command in the “/ip hotspot host” menu. The “numbers” argument must of course contain the host ID, which you can find with the “find” command. You’ll also need to make the lease static (use “/ip dhcp-server lease make-static”), to ensure the device will always get the IP of its binding.