zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: Philips Hue White and Color Ambiance GU10 Xamento 3 spotlight pack

Open fireRoads opened this issue 3 years ago • 13 comments

Link

https://www.philips-hue.com/sv-se/p/hue-white-och-color-ambiance-xamento-infalld-spot-3-pack/8719514355392

Database entry

{"id":21,"type":"Router","ieeeAddr":"0x001788010b55c9fe","nwkAddr":61279,"manufId":4107,"manufName":"Philips","powerSource":"Mains (single phase)","modelId":"929003074801_01","epList":[11,242],"endpoints":{"11":{"profId":260,"epId":11,"devId":269,"inClusterList":[0,3,4,5,6,8,4096,64514,768,64513],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"929003074801_01","manufacturerName":"Philips","powerSource":1,"zclVersion":2,"appVersion":2,"stackVersion":1,"hwVersion":3,"dateCode":"20200327","swBuildId":"1.65.11_hB798F2B"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":31,"colorTempPhysicalMin":153,"colorTempPhysicalMax":500,"colorMode":2,"currentX":31248,"currentY":27106,"colorTemperature":400}},"genOnOff":{"attributes":{"onOff":1}},"genLevelCtrl":{"attributes":{"currentLevel":134}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":2,"stackVersion":1,"hwVersion":3,"dateCode":"20200327","swBuildId":"1.65.11_hB798F2B","zclVersion":2,"interviewCompleted":true,"meta":{"configured":88764544},"lastSeen":1672653452128,"defaultSendRequestWhen":"immediate"}

Comments

This is a GU10 3 spotlight pack with extra hardware. The GU10 bulbs seems to work exactly like the regular GU10 color spotlights (929001953101).

Model should probably be assigned to 929003074801 but each bulb in the pack has an ending with _01, _02 and _03.

zigbeeModel: ['929003074801_01', '929003074801_02', '929003074801_03']

Below external converter works with 1.28.4-1.

External converter

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const ea = exposes.access;

const hueExtend = {
    light_onoff_brightness: (options={}) => ({
        ...extend.light_onoff_brightness(options),
        toZigbee: extend.light_onoff_brightness(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_colortemp: (options={}) => ({
        ...extend.light_onoff_brightness_colortemp(options),
        toZigbee: extend.light_onoff_brightness_colortemp(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_color: (options={}) => ({
        ...extend.light_onoff_brightness_color({supportsHS: true, ...options}),
        toZigbee: extend.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee
            .concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_colortemp_color: (options={}) => ({
        ...extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options}),
        toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options})
            .toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
};

const definition = {
    zigbeeModel: ['929003074801_01', '929003074801_02', '929003074801_03'],
    model: '929001953101',
    vendor: 'Philips',
    description: 'Hue White and Color Ambiance GU10 (Xamento)',
    // Note that fromZigbee, toZigbee and exposes are missing here since we use extend here.
    // Extend contains a default set of fromZigbee/toZigbee converters and expose for common device types.
    // The following extends are available:
    // - extend.switch
    // - extend.light_onoff_brightness
    // - extend.light_onoff_brightness_colortemp
    // - extend.light_onoff_brightness_color
    // - extend.light_onoff_brightness_colortemp_color
    // extend: extend.light_onoff_brightness_colortemp_color(),
    extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
    meta: {turnsOffAtBrightness1: true},
    ota: ota.zigbeeOTA,
};

module.exports = definition;

Supported color modes

color temperature, color xy & color hs (rgb)

Color temperature range

{colorTempRange: [153, 500]}

fireRoads avatar Jan 02 '23 10:01 fireRoads

Came here because I have exactly the same issue. I have three of those GU10 bulbs included in the Philips Hue Xamento package. They seem to have two different model numbers though: 929003074801_01 and 929003074801_02

1

I'm on the latest version of Z2M and Home Assistant. Is there a way I can fix the "device not supported" issue? Or do I have to wait until the next Z2M release? Thanks!

Grandma-Betty avatar Jan 28 '23 14:01 Grandma-Betty

@Grandma-Betty

Or do I have to wait until the next Z2M release?

Will be supported in the 1 February release.

Koenkk avatar Jan 29 '23 11:01 Koenkk

For the devices I posted above, they are working fine now with the latest Z2M release, thanks so far. However, today arrived another three Xamento devices I bought a couple of days ago. They also have the same issue as mentioned by OP, but the serial numbers are others this time:

929003526202_01 929003526202_02 929003526202_03

Here's the screenshot to confirm:

Screenshot 2023-02-15 184413

Physically they are still the same original Philips Hue GU10 spots as mentioned by OP: 92900195310

As I never helped to add a new zigbee device yet, now my question is: Is it enough for testing if I just take the converter from above and replace the according zigbeeModel values with the ones I have? Did I get this right? Thanks so far!

Grandma-Betty avatar Feb 15 '23 17:02 Grandma-Betty

Update:

I added this no to a file called

/config/zigbee2mqtt/9290019531.js

in Home Assistant:

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const ea = exposes.access;

const hueExtend = {
    light_onoff_brightness: (options={}) => ({
        ...extend.light_onoff_brightness(options),
        toZigbee: extend.light_onoff_brightness(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_colortemp: (options={}) => ({
        ...extend.light_onoff_brightness_colortemp(options),
        toZigbee: extend.light_onoff_brightness_colortemp(options).toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_color: (options={}) => ({
        ...extend.light_onoff_brightness_color({supportsHS: true, ...options}),
        toZigbee: extend.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee
            .concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
    light_onoff_brightness_colortemp_color: (options={}) => ({
        ...extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options}),
        toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options})
            .toZigbee.concat([tz.hue_power_on_behavior, tz.hue_power_on_error]),
    }),
};

const definition = {
    zigbeeModel: ['929003526202_01', ' 929003526202_02', '929003526202_03'],
    model: '929001953101',
    vendor: 'Philips',
    description: 'Hue White and Color Ambiance GU10 (Xamento)',
    // Note that fromZigbee, toZigbee and exposes are missing here since we use extend here.
    // Extend contains a default set of fromZigbee/toZigbee converters and expose for common device types.
    // The following extends are available:
    // - extend.switch
    // - extend.light_onoff_brightness
    // - extend.light_onoff_brightness_colortemp
    // - extend.light_onoff_brightness_color
    // - extend.light_onoff_brightness_colortemp_color
    // extend: extend.light_onoff_brightness_colortemp_color(),
    extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
    meta: {turnsOffAtBrightness1: true},
    ota: ota.zigbeeOTA,
};

module.exports = definition;

Now how would I trigger some actions on the device? I am totally unsure on how to do this @Koenkk

Thanks!

Grandma-Betty avatar Feb 15 '23 18:02 Grandma-Betty

@Grandma-Betty added them!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Feb 15 '23 19:02 Koenkk

@Koenkk Thanks man!

What I would like to mention additionally: On your github commit the device model is: 929001953101 But on the physical device the device model is: 9290019531 The number is almost the same, so I'm not sure if this even matters. What do you think? Here's a picture of the physical device in question:

Unbenannt

Grandma-Betty avatar Feb 16 '23 07:02 Grandma-Betty

This doesn't matter, it's just a cosmetic thing.

Koenkk avatar Feb 18 '23 08:02 Koenkk

@Koenkk Hmm...I just installed today's official Z2M update and the one with the number 929003526202_02 just won't get recognized. It still says the device is not supported. The other two numbers on the other hand are pairing fine and get recognized as intended. I did reset the bulb a couple of times and also tried to take it next to the coordinator with no luck. Any idea what could go wrong? Thanks!

Grandma-Betty avatar Mar 01 '23 17:03 Grandma-Betty

@Koenkk I mentioned on your commit above there's an unnecessary whitespace on the according device number. Could that be the problem?

Edit: Please don't let me wait another month for this to be in the official release :P Edge version seems too risky to me as I have a lot of zigbee devices going on in my house.

Grandma-Betty avatar Mar 01 '23 17:03 Grandma-Betty

I've fixed the issue now but it will be part of the next release. Until then you can use the following external converter:

const philips = require('zigbee-herdsman-converters/lib/philips');

const definition = {
    zigbeeModel: ['LCG002', '929003047701', '929003047701', '929003526202_01', '929003526202_02', '929003526202_03'],
    model: '929001953101',
    vendor: 'Philips',
    description: 'Hue White and Color Ambiance GU10',
    extend: philips.extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
};

module.exports = definition;

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m,

Koenkk avatar Mar 02 '23 17:03 Koenkk

...aaaaand another Philips Hue Xamento GU10 spot not being supported yet with the following model number:

929003074701

@Koenkk It would be nice if you could add this one too for the next release. Thank you mate!

Grandma-Betty avatar Mar 11 '23 07:03 Grandma-Betty

added!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Mar 11 '23 08:03 Koenkk

Hi, new serial numbers arrived with v2 resulting in unknown device when added to the network

929003812901_01 etc

Is this an easy one to add @Koenkk

roelbeun avatar Jan 30 '25 20:01 roelbeun