LAN API still available

Hi,

You’ll want a SetWaveformOptional message https://lan.developer.lifx.com/docs/light-messages#section-setwaveformoptional-119

So with photons (install python3.6+ and pip3 install lifx-photons-core) you could say something like

# Make the light on and full brightness
# transform takes in options similiar to the http api
lifx lan:transform d073d5000000 -- '{"power": "on", "brightness": 1}'
# Make the bulb go to 0 brightness and back a few times
lifx lan:set_attr d073d5000000 waveform_optional -- '{"brightness": 0, "cycles": 15, "period": 1, "waveform" :"SINE", "skew_ratio": 0.5}'

Though if you’re on windows I believe it’s a bit more annoying and you have to escape all the double quotes

or you can write a script that looks like make_waveform.py · GitHub

I’m sure it’s also quite easy with lifxlan.

Unfortunately I’m not really familiar with existing c# LIFX libraries, so I can’t offer any advice there.