Automation can free humanity from having to work for basic needs such as food, clothing and housing.
The question, however, is how the benefits of automation will be distributed.
If the "owners" don't want to share, we'll have a dystopian future.
They can produce so cheap, but noone will buy what they produce.
The "1%" could make life miserable for the rest of us, use a robotized force to keep us under the thumb and bathe in luxury and wellbeing themselves.
Sooner or later infighting will come and the 1% will also destroy themselves (helped by the robots used for crowd control).
If we as humans can find a mechanism to share the benefits, we could have a good future.
We'll have to do with current ideologies and economic systems, and invent something new.