Ceiling Fan Smart Bulb question

sorry, just read your post again… you only have one set of wires…

You could use a battery powered switch for the ceiling fan (see below) on the wall and put a fan controller switch (e.g. GE12720) in the fan housing - yes, put the actual switch in the fan housing. Unfortunately you need an actual fan controller switch to control fan speed. A dimmer switch will break the fan. This way you can use your one line to power both the bulb and the fan.