Skip to content

Commit

Permalink
fix: Add Yandex whitelabels (#7447)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrskycriper committed Apr 27, 2024
1 parent 311c378 commit 7cf138a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/devices/lumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,10 @@ const definitions: Definition[] = [
model: 'WSDCGQ12LM',
vendor: 'Aqara',
description: 'Temperature and humidity sensor T1',
whiteLabel: [{vendor: 'Aqara', model: 'TH-S02D'}],
whiteLabel: [
{vendor: 'Aqara', model: 'TH-S02D'},
{vendor: 'Yandex', model: 'YNDX-00523'},
],
fromZigbee: [lumi.fromZigbee.lumi_specific, fz.temperature, fz.humidity, lumi.fromZigbee.lumi_pressure, fz.battery],
toZigbee: [],
exposes: [e.temperature(), e.humidity(), e.pressure(), e.device_temperature(), e.battery(), e.battery_voltage(),
Expand Down Expand Up @@ -1253,6 +1256,7 @@ const definitions: Definition[] = [
model: 'RTCGQ12LM',
vendor: 'Aqara',
description: 'Motion sensor T1',
whiteLabel: [{vendor: 'Yandex', model: 'YNDX-00522'}],
fromZigbee: [lumi.fromZigbee.lumi_occupancy_illuminance, lumi.fromZigbee.lumi_specific, fz.battery],
toZigbee: [lumi.toZigbee.lumi_detection_interval],
exposes: [e.occupancy(), e.illuminance_lux().withProperty('illuminance'),
Expand Down Expand Up @@ -1454,7 +1458,10 @@ const definitions: Definition[] = [
model: 'SJCGQ12LM',
vendor: 'Aqara',
description: 'Water leak sensor T1',
whiteLabel: [{vendor: 'Aqara', model: 'WL-S02D'}],
whiteLabel: [
{vendor: 'Aqara', model: 'WL-S02D'},
{vendor: 'Yandex', model: 'YNDX-00521'},
],
meta: {battery: {voltageToPercentage: '3V_2850_3000'}},
fromZigbee: [lumi.fromZigbee.lumi_basic, fz.ias_water_leak_alarm_1, lumi.fromZigbee.lumi_specific],
toZigbee: [],
Expand Down Expand Up @@ -2570,7 +2577,10 @@ const definitions: Definition[] = [
model: 'WXKG13LM',
vendor: 'Aqara',
description: 'Wireless mini switch T1',
whiteLabel: [{vendor: 'Aqara', model: 'WB-R02D'}],
whiteLabel: [
{vendor: 'Aqara', model: 'WB-R02D'},
{vendor: 'Yandex', model: 'YNDX-00524'},
],
meta: {battery: {voltageToPercentage: '3V_2850_3000'}},
fromZigbee: [fz.battery, lumi.fromZigbee.lumi_action_multistate, lumi.fromZigbee.lumi_specific],
toZigbee: [],
Expand Down Expand Up @@ -2625,7 +2635,10 @@ const definitions: Definition[] = [
model: 'MCCGQ12LM',
vendor: 'Aqara',
description: 'Door and window sensor T1',
whiteLabel: [{vendor: 'Aqara', model: 'DW-S03D'}],
whiteLabel: [
{vendor: 'Aqara', model: 'DW-S03D'},
{vendor: 'Yandex', model: 'YNDX-00520'},
],
fromZigbee: [lumi.fromZigbee.lumi_contact, lumi.fromZigbee.lumi_specific, fz.ias_contact_alarm_1],
toZigbee: [],
exposes: [e.contact(), e.battery(), e.battery_voltage()],
Expand Down

0 comments on commit 7cf138a

Please sign in to comment.