Install Home Assistant, Mosquitto broker and Node-Red on android

While you are right about using old phone, pi is a standardized solution but android is full of tricks/hacks. Yes, it is working as of today but I am dead scared in every update what will be broken.

Another post which was useful to me: Home Assistant Core on Android Tablet