Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tradfri bulb E27 WS opal 1000lm #699

Closed
Kristian8606 opened this issue May 14, 2020 · 16 comments
Closed

Tradfri bulb E27 WS opal 1000lm #699

Kristian8606 opened this issue May 14, 2020 · 16 comments
Labels

Comments

@Kristian8606
Copy link

Kristian8606 commented May 14, 2020

Hi Eriк!
I noticed that the color picker of the light bulb exposed from the homebridge-hue bridge is different from the same light bulb exposed from the tradfri gateway and homekit.
The bulb is a Tradfri bulb E27 WS opal 1000lm.
Can this be fixed?
C21BEFB9-C4BE-4BA7-A80E-74DF1C419D33
7726FB26-505D-47D5-A837-7A8155D6A310

@ebaauw
Copy link
Owner

ebaauw commented May 14, 2020

Did you pair the Trådfri bulb to the Hue bridge or to deCONZ?

I take it, the first picture is from Homebridge Hue; the second is from the Trådfri Hub? As far as I know, this light supports ct values in the range of 250 to 454 (see the /lights resource as exposed by the Hue bridge / deCONZ gateway). Homebridge Hue sets these limits on the Color Temperature characteristic, and Home displays the corresponding range. I think it's a bug in the Trådfri hub, that it shows colour temperature values that the light cannot display.

@Kristian8606
Copy link
Author

Kristian8606 commented May 14, 2020

The first photo is from the Trådfri gateway and the second from deCONZ with set ‘forceCt’ false

@ebaauw
Copy link
Owner

ebaauw commented May 14, 2020

Hm, could you please attach the debug dump file? See https://github.com/ebaauw/homebridge-hue#debug-dump-file.

@Kristian8606
Copy link
Author

Kristian8606 commented May 14, 2020

Excuse me for the delay.
homebridge.log.gz
homebridge-hue.json.gz

@ebaauw
Copy link
Owner

ebaauw commented May 15, 2020

        "2": {
          "ctmax": 65535,
          "ctmin": 0,
          "etag": "fc9eedc7ebba5fbce36cdcdd61ca1fd0",
          "hascolor": true,
          "manufacturername": "IKEA of Sweden",
          "modelid": "TRADFRI bulb E27 WS opal 1000lm",
          "name": "temperature light bedroom",
          "powerup": 7,
          "state": {
            "alert": "none",
            "bri": 254,
            "colormode": "xy",
            "ct": 370,
            "on": false,
            "reachable": true
          },
          "swversion": "2.0.023",
          "type": "Color temperature light",
          "uniqueid": "ec:1b:bd:ff:fe:a2:69:fb-01"
        },

Odd, the light reports bogus values for ctmin and ctmax, so Homebridge Hue would be using the default range of 153 to 500. Also note the colormode which is obviously incorrect, as the bulb doesn't support xy. That might also be firmware related.

My Trådfri White Spectrum bulb does report the correct values:

  "15": {
    "ctmax": 454,
    "ctmin": 250,
    "etag": "538128cbb7aef55856e4c86dbfb04155",
    "hascolor": true,
    "lastseen": "2020-05-15T13:13:30.912",
    "manufacturername": "IKEA of Sweden",
    "modelid": "TRADFRI bulb E27 WS�opal 980lm",
    "name": "Trådfri TW",
    "state": {
      "alert": "none",
      "bri": 1,
      "colormode": "ct",
      "ct": 454,
      "on": false,
      "reachable": true
    },
    "swversion": "2.3.007",
    "type": "Color temperature light",
    "uniqueid": "00:0b:57:ff:fe:39:35:7f-01"
  }

Note that I've updated mine to the latest Zigbee 3.0 firmware. Not sure if we have the same light (1000lm vs 980lm). Mine has the funny character in the modelid since the update.

Can you update the bulb firmware and see if that solves the issue?

@Kristian8606
Copy link
Author

Kristian8606 commented May 15, 2020

I bought this bulb recently and updated it. I will check if there are any new updates available.

@Kristian8606
Copy link
Author

I can confirm that the bulb has been updated to the latest version.

@ebaauw
Copy link
Owner

ebaauw commented May 16, 2020

Has updated now, or earlier? Can you read the Color Control cluster attributes in the deCONZ GUI, and double-check what it reports for Color temperature min (0x400B) and Color temeperature max (0x400C)?

@Kristian8606
Copy link
Author

Has updated now, or earlier?

I updated it two weeks ago
Screenshot 2020-05-17 at 0 45 25

@ebaauw
Copy link
Owner

ebaauw commented May 16, 2020

So those are the correct values! Did the API plugin update the resource? Otherwise it might need re-pairing.

@Kristian8606
Copy link
Author

Kristian8606 commented May 16, 2020

I removed it bulb and then paired it. Only one strange behavior of the colored instrument remained. he always returns to the same position

D8D25CCD-F782-4C85-8D07-9B1F69BC7F63
Screenshot 2020-05-17 at 1 21 47

@ebaauw
Copy link
Owner

ebaauw commented May 16, 2020

Can you run homebridge -D and check the debug messages with the commands Homebridge Hue send to deCONZ?

@Kristian8606
Copy link
Author

Kristian8606 commented May 16, 2020

homebridge.log.gz
Screenshot 2020-05-17 at 1 51 24

@ebaauw
Copy link
Owner

ebaauw commented May 17, 2020

Homebridge Hue sends the right ct command, but deCONZ seems to translate it to xy. The light might actually accept this, but it doesn’t update it’s Color temperature attribute. On the next poll, the old ct value is reported back, which Homebridge Hue forwards to HomeKit.

It's a bug in the deCONZ REST API plugin, see
dresden-elektronik/deconz-rest-plugin#2507 (comment)

You might try and compile and install the plugin from the latest master branch, I hope my changes will have fixed this. Otherwise, you’ll have to wait for the next deCONZ release.

@Kristian8606
Copy link
Author

I'm with the newest master branch and obviously this is not fixed.

@ebaauw
Copy link
Owner

ebaauw commented May 17, 2020

Closing this issue, as there's nothing Homebridge Hue can do here. To be continued in the deCONZ issue...

@ebaauw ebaauw closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants