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

Update ikea.ts #8801

Merged
merged 5 commits into from
Feb 14, 2025
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions src/devices/ikea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,22 @@ const definitions: DefinitionWithExtend[] = [
// #region on/off controls
{
zigbeeModel: ['TRADFRI control outlet'],
model: 'E1603/E1702/E1708',
model: 'E160x/E170x/E190x',
vendor: 'IKEA',
description: 'TRADFRI control outlet',
whiteLabel: [
{model: 'E1603', vendor: 'IKEA', description: 'E1603 (Type - F)', fingerprint: [{modelID: 'TRADFRI control outlet'}]},
{model: 'E1702/E1703', vendor: 'IKEA', description: 'E1702/E1703 (Type - E)', fingerprint: [{modelID: 'TRADFRI control outlet'}]},
{model: 'E1704', vendor: 'IKEA', description: 'E1704 (Type - G)', fingerprint: [{modelID: 'TRADFRI control outlet'}]},
{model: 'E1705', vendor: 'IKEA', description: 'E1705 (Type - L)', fingerprint: [{modelID: 'TRADFRI control outlet'}]},
{
model: 'E1706/E1707/E1708/E1709/E1710',
vendor: 'IKEA',
description: 'E1706/E1707/E1708/E1709/E1710 (Type - B)',
fingerprint: [{modelID: 'TRADFRI control outlet'}],
},
{model: 'E1902', vendor: 'IKEA', description: 'E1902 (Type - J)', fingerprint: [{modelID: 'TRADFRI control outlet'}]},
],
extend: [addCustomClusterManuSpecificIkeaUnknown(), m.onOff(), m.identify()],
ota: true,
},
Expand All @@ -592,9 +605,13 @@ const definitions: DefinitionWithExtend[] = [
},
{
zigbeeModel: ['TRETAKT Smart plug'],
model: 'E2204',
model: 'E22x4',
vendor: 'IKEA',
description: 'TRETAKT smart plug',
whiteLabel: [
{model: 'E2204', vendor: 'IKEA', description: 'E2204 (EU)', fingerprint: [{modelID: 'TRETAKT Smart plug'}]},
{model: 'E2214', vendor: 'IKEA', description: 'E2214 (CH)', fingerprint: [{modelID: 'TRETAKT Smart plug'}]},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! You can drop the fingerprints (fingerprint) since they are all the same

Copy link
Contributor Author

@chris-1243 chris-1243 Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I may do the same for the E1603. Lines 570 and more

],
extend: [addCustomClusterManuSpecificIkeaUnknown(), m.onOff(), m.identify()],
ota: true,
},
Expand Down