Barman appears to be a solution for backups, not HA. If your master fails, you need to restore from the backup, which means downtime.
You still need a mechanism to swap over to the standby on failure. However with libpq from postgres 10 you can provide multiple servers. This isn't true HA, but for most people it fits the requirements.