A Happy Valley man accused of trespassing in a treehouse was arrested Monday after a lengthy negotiation with deputies -- while he was inside, on or above the treehouse.

Deputies responded to an undeveloped lot in the 9900 block of Southeast Eastview Drive around 4:25 p.m. after a homeowner reported someone was trespassing in her treehouse, the Clackamas County Sheriff's Office said in a news release. Troy Miller, 40, was in the treehouse and refused to exit, deputies said.

Deputies negotiated with Miller, who they said was high on methamphetamine, for more than two hours. He at times climbed onto the treehouse's roof and higher in the tree itself, deputies said.

Miller eventually came down from his perch for a bottle of water and was taken into custody, deputies said. He was uninjured.

CCSO negotiators assisted @HappyValleyPD with a #treehousetrespasser high in tree and high on meth. Safely incustody pic.twitter.com/BuL7SsAWZ3 — Clackamas Sheriff (@ClackCoSheriff) July 12, 2016

Miller was later booked into the Clackamas County Jail pending meth possession, second-degree criminal trespassing and resisting arrest charges, according to jail records. He's being held on $26,000 bail, according to the records.

His criminal records includes 2007 convictions for possession of cocaine, meth and a controlled substance, court records show.

-- Jim Ryan

jryan@oregonian.com

503-221-8005; @Jimryan015