same SSID but different VLANs based on MACs

Hi there!
I wan’t to have separate vlans for my home network and my guests for obvious security reasons. But I want to have only one SSID and both my devices and guest devices will connect to the same SSID but I want to assign different vlans based on the MAC addresses.
I am thinking of something that will put all new devices on the guest vlan unless i choose the mac addresses of my device. So if the mac address is in the list of my devices it will connect to my vlan otherwise to the guest vlan.
I dont know if it makes enough sense. But it would be great if you guys could tell me how to do that.

Thanks

You can set default vlan for wireless interface (vlan-mode, vlan-id) and then you can override it for selected MAC addresses in “/interface wireless access-list”.