Automations not working, presence wrong

this may help