Add auto creating device

Signed-off-by: Pavel Gromov <pagrom23@gmail.com>