Before printing, it is necessary to install the printer (could not possible from Linux - I used OS X application)
When joining the local network, use the main ("carrier" :)) network, not the WiFiDirect one. If device is not found, restart the device.
Connect and just add the new printer in "Printers" system settings tab.
Could be used on local network (WiFi direct of special printer network is not needed).
When auto adding via "Printers", it is detected, connected, but it stales on sending the document to the device (restart does not solve it, notification about printing pops up forever...).
Solution: use HP Developers Portal, download the program (older version on Ubuntu did not work - i check it with sudo hp-check -r and there were lot of errors), run it (sh hplip-3.18.3.run), use network +USB type of installation. After that, you could simply add the new printer via system "Printers" or with command (e.g. hp-setup 192.168.100.10) - both works for me.
Additional notes for Linux setup
- often restart the printer :)
- often restart CUPS (sudo /etc/init.d/cups stop)
- ofter clears the printers list in the system "Printers" settings application
- on local network, e.g http://192.168.100.10
- on printer's Wi-Fi (e.g. DIRECT-77-HP DeskJet 3700 series), address could for example: http://192.168.223.1
- must be activated via web administration
- enables printing by sending the email with documents to the specific printer e-mail address