You may become an Indonesian tax resident if you are present in Indonesia for more than 183 days within a 12-month period. Tax residency may also arise if you reside in Indonesia or are present during a tax year with the intention to reside in Indonesia. This rule tracks the physical-presence test only.
https://www.pajak.go.id/en/artikel/tax-return-reporting-foreign-citizens-indonesia
Indonesia Tax Resident
More than 183 days in Indonesia within 12 months