Generic_CCT_Light and Alexa

Hi,

I’m trying to add a CCT light on Alexa, but the discovered device on Alexa does not enable temperature control. Is it an Alexa limitation or some other problem with the example sketch?

I’m using the same sketch as the Generic_CCT_Light example and the latest docker image (tag: 897) version of diyHue.

Thanks

Dear friends,

I’ve checked the API response for my light resource, and the response doesn’t have “colormode” and “ct” information. This is because the response build logic has a statement to not put these attributes for the LTW001 light model:

I could control the light temperature with Alexa changing this line.

This is the API response now:

curl -s http://localhost/api/7fad985ede4f11edafbfb42e9910b8b3/lights/1 | jq
{
  "type": "Color temperature light",
  "manufacturername": "Signify Netherlands B.V.",
  "swversion": "1.90.1",
  "swupdate": {
    "state": "noupdates",
    "lastinstall": "2020-12-09T19:13:52"
  },
  "capabilities": {
    "certified": true,
    "control": {
      "mindimlevel": 1000,
      "maxlumen": 806,
      "ct": {
        "min": 153,
        "max": 454
      }
    },
    "streaming": {
      "renderer": false,
      "proxy": false
    }
  },
  "config": {
    "archetype": "classicbulb",
    "function": "functional",
    "direction": "omnidirectional",
    "startup": {
      "mode": "safety",
      "configured": true
    }
  },
  "state": {
    "on": true,
    "bri": 4,
    "ct": 383,
    "colormode": "ct",
    "alert": "none",
    "mode": "homeautomation",
    "reachable": true
  },
  "modelid": "LTW001",
  "name": "New New CCT light 1",
  "uniqueid": "00:17:88:01:00:20:91:ff-0b"
}