A man has died in a house fire in Sydney's west this morning, with the blaze believed to have been caused by a lithium-ion battery.