for andoid you can use macrodroid
see Tado Thuis/Afwezig na update - #50 by M_a_r_c_o for more details
for ios and locative see