That API is junk and I think requires auth now or something. I was messing with it some months ago and was surprised after a month the system changed.
for i in `seq 1 10`; do http -v 192.168.xxx.xxx/api devicetype="my_hue_app#script"; sleep 1; done