How to use keyrings instead of apt-key

I just had to reinstall my pi cause my sd card was damaged.
During the installation of my RaspBeeII I got again the warning about apt-key.
Now I tried to use keyrings instead but its not working maybe someone can tell me what I´m doing wrong.

curl -fsSL “” | gpg --dearmor > deconz.gpg

sudo mv deconz.gpg /usr/share/keyrings

sudo chmod u=rw,g=r,o=r /usr/share/keyrings/deconz.gpg

echo ‘deb [signed-by=/usr/share/keyrings/deconz.gpg] $(lsb_release -cs) main’| sudo tee /etc/apt/sources.list.d/deconz.list

If I now try to install I got the message that the package deconz cannot be found.

Hope someone can help me

Can download direclty the package Index of /raspbian/beta/

But thats not the point behind apt-key and keyrings. Otherwise they would be useless or not?

It’s a choice I don’t use apt or keyring on my side, faster to switch version.

I fixed this exactly to day, I followed the first answer here and it worked perfectly.