I am using LIFX Z strips (non-HomeKit) with Home Assistant, using cURL to change scenes so that I can control the cross-fade duration. This setup has been working for months. My LIFX devices are running the latest firmware.
For maybe the last couple of weeks my LIFX scene changes have been instantaneous instead of obeying their set 10-second duration.
Using Postman:
PUT /v1/scenes/scene_id:<SCENEUUID>/activate HTTP/1.1
Host: api.lifx.com
Authorization: Bearer <APITOKEN>
Content-Type: application/json
Cache-Control: no-cache
{
"duration": "10"
}
…results in an instant change instead of the smooth 10 seconds cross-fade it previously did.
The same happens using a double instead of a string, for instance using cURL and a 5.5 seconds:
curl -X PUT -H "Authorization: Bearer <APITOKEN>" -H "Content-Type: application/json" -d '{"duration":5.5}' "https://api.lifx.com/v1/scenes/scene_id:<SCENEUUID>/activate"
Trying to debug this situation using the Web API forms at https://api.developer.lifx.com/docs/activate-scene with a valid token and scene UUID results in “400 Bad Request”:
{
"error": "selector is invalid",
"errors": [
{
"field": "selector",
"message": [
"is invalid"
]
}
]
}
However, using the LIFX iOS app at least gives a smoother default transition.
Am I doing something wrong or has the HTTP API changed somewhat?