EIGHT-WAY VALVE

An eight-way valve (Y) including a housing (300) and a rotary member (400) is provided. The housing (300) includes an annular wall (305), a first chamber, a second chamber, a third chamber, and a fourth chamber. The annular wall is provided with 16 upper-tier openings and 16 lower-tier openings. The rotary member (400) includes an upper-tier switching part configured to switch between opening and closing of each of the 16 upper-tier openings, and a lower-tier switching part configured to switch between opening and closing of each of the 16 lower-tier openings. The upper-tier switching part includes an upper-tier first communication passage (411), an upper-tier second communication passage (412), and an upper-tier closing part, and the lower-tier switching part includes a lower-tier first communication passage, a lower-tier second communication passage, and a lower-tier closing part. Any one of a first space to an eighth space (S1, S2, S3, S4, S5, S6, S7, S8) is respectively provided with a port (P1, P2, P3, P4, P5, P6, P7, P8).