Cant learn IR Code


I want to learn my ceeling fan remote. The problem is… thers no manufactoe. So thats wha i want to try to learn the „code“. But ism not shure if ist a code ore just light on an off… dont know.
But the switchbot hub mini can learn the code.

Thanks for help, john