A Perth father has been jailed for eight years after slashing a woman with a machete in her Butler home.