Using the LAN protocol I have an Android app that will flash Lifx bulbs around my house if I receive a phone call or Skype call. Currently I flash the bulb by sending power on and power off commands with my software controlling the timing. It works, but I’m thinking it may perform better and I may be able to implement different period times for the different types of calls if I use a Pulse Waveform command.
I have a mix of Mini White and Day and Dusk bulbs. I’m not exactly sure what commands I would need to send. Is the following what I would want to send?
- Set Color to HSBK: 0, 0, 0, 4000. This will set the color to dark, a sort of cool temperature.
- Set Power On. This turns on power, but the bulb will be dark.
- Set Waveform for Pulse, HSBK: 0, 0, 65535, 4000; 50% duty cycle; zero SKU; 300 ms period; 10 cycles. This makes the bulb flash 10 times and leaves it turned on.
- Set Power Off.
Is there a way to know when the programmed waveform is complete?
Thanks for any suggestions.