The installation method, you used is an old method and was used for Ubuntu (Debian) based systems.
The new method, you may find at:
https://www.domoticz.com/wiki/Linux
The correct command is:
sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
However this is still for Ubuntu based systems.
You might know Mageia is one of the forks of Mandriva, which is on its turn the successor of Mandrake Linux, which is again a fork of Red Hat.
Mageia still uses the RPM package system and not apt. (apt-get)
You might look for a RPM package. perhaps one of the latest Fedora packages.
But I don't think version 2022-2 is available. At least I could not find it.
Regards