@sdetweil your script worked, thank you.
For now I will keep the 4b only running home assistant.