Yeah can do this with settings and Samsung's modes and routines app, although I don't think you can link it directly to your alarm. So I have that normally the battery protection setting is on. This limits charge to 85%. I then have a routine so at 6 am it turns off battery protection and another routine so that was soon as the battery reaches 100% battery protection is turned back on.