trouble wiring smart ceiling fan switch.
Connect

COM to L

A1 to L1

B1 to L2

You'll also need to connect the white wire in the box to the N terminal. 

There should be a ground wire in the box as well, connect to the GND terminal

(There will be two white neutral wires in the box, connected to each other. They have to stay connected so you'll add a pigtail (a separate short wire) to that connection to provide the wire to the N terminal. Same thing for the bare copper ground wire.)