When you change any device, have it return a full JSON reply of the state of every device.  Were already making the HTTP request, may as well put it to use.