Thanks for all the answers! Finally i managed to get it work. The reason for this issue was that a wrong serial port was entered in the input field of the MySensors Serial gateway setup window in Home Assistant. By default it was /dev/ttyACM0 however it turned out that it was already used by some other dongle.