are you talking about in the z2m device page? that page is buggy and values don’t show up automatically. if you look at the entity within home assistant, it should be working fine. if it’s not, then i agree there’s something wrong.
You’ll want to got to the device settings in z2m → reporting tab → add a new reporting entry to report onOff to the coordinator.
Admittedly I haven’t configured that reporting myself - just waiting for the next z2m update. In the meantime, I’m using an HA automation that would trigger on mqtt events using a wildcard, zigbee2mqtt/+/action, and then simply publish an mqtt message to force the coordinator to query/update the onOff state for the device triggering the action. (Got this working before I realized the reporting option wasn’t set up, so just sticking with this for now)
I havent tried it with any level information, sorry.
Worth noting that this automation hack wont work when the switch is toggled at a dumb-switch in a 3-way setup. For that, you need to add the proper reporting bindings