Two days on Mount Hua
Sleep near Huayin, ride the cable to the North Peak, and treat the West Peak plank walk as optional.
Sleep near Huayin if the ridge is why you came. Day 1 is the trip from Xi'an to Huashan station in Huayin, then the shuttle toward the cable. Arrive on that train, take the shuttle, and start from there. The ridge is that day. It is not a half day bolted onto the city wall. Eat nearby once in Huayin before you go up, because the crest is a poor place to count on a meal.
Day 1 is the trip from Xi'an to Huayin and the walk onto the ridge. The train and the shuttle are part of the walking day, not a prelude you can ignore. Take the cable to the North Peak. It saves the longest staircase. From the North Peak the East Peak, the South Peak, and the West Peak are still a real walk along the crest. Give those peaks the rest of the daylight. Carry water. The ridge does not grow more comfortable as you add summits. It stays a walk, with fewer easy stops than the town below suggested.
Come down while there is light, or sleep on the mountain only if the bed is already booked. Decide before you leave Huayin. If the bed is booked, the night on the ridge is the plan and the next morning can start where you are. If it is not booked, do not look for a room once you are at the West Peak. Take the cable down while there is light. Walking the long stairs after dark is not a small change of plan. You are not returning to the city wall tonight.
Day 2 is sunrise and the way down. If you stayed up, see the sunrise and then leave. Do not linger until the descent is a rush. The plank walk on the West Peak is optional and has its own queue. Skip it if the group is tired. Standing in that queue spends the time you needed for getting off the mountain.
Do not plan a museum afternoon back in Xi'an. The return from Huashan station brings you into the city only after the ridge has used your legs, and a museum wants a clearer head than that. Sleep near Huayin until you are actually down, then travel. The wall, and anything indoors behind it, belongs to a day that did not begin on this mountain.