API home control example