A man who set fire to a house while a woman and her two young children were inside has been jailed for 16 months.