Generally speaking, I make a to-do list of things I want to try and if I can’t think of anything else to do, I go down the list. Right now, that’s going through all the major/minor keys and writing a song in each, even if that never goes anywhere (or doesn’t even get saved) it will build my music theory knowledge and force me to do a bit of sound design here and there.
And if you’re thinking that you don’t have any ideas for a list like this, watch some youtube music makers and if you see any interesting ideas, make a note that you want to make a song like that/based on that idea.
Another one I’ve had good luck with is trying to do things in a different order. In my case, I normally program chords first, then a bassline and/or melody, maybe some stabs or an arp, and then I do drums last. Instead, I could force myself to start by writing a drum beat and work backwards. That will make a different kind of song.
You could force yourself to use certain tools (maybe a new plugin you want to learn) and force yourself not to use others (the ones that feel a bit samey but you keep falling back to them because you know them).
Perhaps not something you want to do all the time, but you can always switch the genre you’re producing. I think it can take a while to learn the ins and outs of making a genre of music and it can be worth it to stick it out - but if you really are bored of everything you’re doing it might be worth taking a look around and seeing what other kinds of music excite you. I did that about 5 years ago to land on house, but I’ve been less inspired the past few years. I still do ambient stuff on the side now and then, and I recently started on something more techno that has been really fun to work on, so maybe I get more into techno in the future.
I’ve had to get more comfortable with taking breaks from music, especially the last year. For about 4 years after I started, I didn’t miss a single day making music and it was always at least an hour. I finally missed a few days when I traveled once, and I came back and made up for it and continued to not miss. Then covid hit and I didn’t do anything for two months. Got back into it eventually and put out an EP and then some singles the following year, into this year… and then I fell off again as life has gotten in the way. I’m still doing some music, not as much as I’d like, but I’m confident as time permits and I feel inspired again I’ll get more songs done. I’ve been through this before and I’ll go through it again, so I don’t let it bother me too much. You’ve only been at this a year, so that’s kind of just a feeling I think you’ll have to get used to. I can think of at least half a dozen great artists on this forum who have gone years without making music and gotten back into it and done great work almost out of nowhere.