I have a similar issue but in reverse. I have a macro set to turn my hotspot on when the battery level is greater than 30% (this works fine), I then have another macro that turns the hotspot off if the battery level is less than 20% (this doesn't work)
I have a rooted Oneplus 5 running...