Can't use Time Machine with the SAMBA NAS add-on

I’m trying to backup my MacBook with an External HDD with the ext4 format connected to a Raspberry Pi 3B+ with Hassio OS.
I managed to install and start the SAMBA NAS add-on and I also my mac recognize successfully the HDD but wen I try to make the backup I get a message that says “Try again when homeassistant is available”
Moved a 387.4MB file to the disk and back via smb and verified the files with checksum and there was no problem
I have my raspberry pi connected to my router via cable.

Here is the log of the add-on

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] automount.sh: executing...
[13:38:41] INFO: Protection Mode is false
[13:38:42] WARNING: MoreDisk option found!
[13:38:42] INFO: More Disks mounting.. TimeMachine
[13:38:42] INFO: Mount TimeMachine
[13:38:42] INFO: Success!
[cont-init.d] automount.sh: exited 0.
[cont-init.d] mqtt.sh: executing...
[13:38:43] ERROR: Got unexpected response from the API: Service not enabled
[13:38:45] WARNING: No MQTT Server found. Homeassistant integration can't work!
[cont-init.d] mqtt.sh: exited 0.
[cont-init.d] samba.sh: executing...
[13:38:47] INFO: Hostname: homeassistant
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user homeassistant.
[cont-init.d] samba.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
nmbd version 4.12.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
[services.d] done.
[13:38:48] INFO: Starting the AVAHI daemon for homeassistant...
daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
Waiting for daemon ...
smbd version 4.12.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
INFO: Profiling support unavailable in this build.
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[13:38:49] WARNING: No MQTT config.
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded
error in mds_init_ctx for: /TimeMachine
_mdssvc_open: Couldn't create policy handle for TimeMachine

Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 172.17.0.1

Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 172.30.32.1

Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.105

error in mds_init_ctx for: /TimeMachine
_mdssvc_open: Couldn't create policy handle for TimeMachine
fruit_pread_meta_stream: Removing [86ED7541-147C-5D9D-954B-81456388D056.sparsebundle:AFP_AfpInfo] after short read [0]
fruit_pread_meta_stream: Removing [86ED7541-147C-5D9D-954B-81456388D056.sparsebundle:AFP_AfpInfo] failed
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded
[14:02:49] WARNING: No MQTT config.

and here is my configuration

workgroup: WORKGROUP
username: homeassistant
password: 'xxxxxx'
interface: ''
allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - 'fe80::/10'
moredisks:
  - TimeMachine
veto_files:
  - ._*
  - .DS_Store
  - Thumbs.db
  - icon?
  - .Trashes
compatibility_mode: false
autodiscovery: {}

Pelas help me, I don’t know what to do

I do not think you can use Time Machine backups with SMB share simple way… It is because how this software is designed, to stay within Apple ecosystem rather than to use other standard network solutions. It is however possible to force TM to use standard shares, though require few extra steps to be performed. Whole process is well described in this article:
How to use Time Machine to back up your Mac to a Windows shared folder | iMore
I used this tutorial some time ago and it works… however it is not as robust as when using afp shares… I ended up with Synology NAS, with native support for Time machine backups.

I find your post a little confusing. Are you trying to backup the home assistant machine to the macbook, or the macbook to the home assistant machine?