In Minecraft Java Edition (PC/Mac), a lever is identified by the following Name, ID, and DataValue:
In Minecraft Java Edition (PC/Mac), levers have different block states, including their orientation and power status. Here are the block states for levers:
Face: wall (placed on the side of a block), floor (placed on top of a block), ceiling (placed on the bottom of a block)
Facing: north, south, east, west (indicating the direction the lever is facing)
Powered: false (not powered), true (currently powered)