Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-w authored Sep 11, 2024
2 parents b956d67 + f843534 commit 58da243
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "20.12.1"
".": "20.13.0"
}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## [20.13.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.12.1...v20.13.0) (2024-09-09)


### Features

* **add:** 3RSM0147Z ([#7916](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7916)) ([0670d9f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0670d9f8b8ccd03734f5e5cd37320c5041ff2812))
* **add:** P5630S ([#7964](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7964)) ([f003373](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f003373cad3aec3e6691835ff9aba46583620e68))
* **add:** SE20-O ([#7957](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7957)) ([5e526c4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/5e526c41d95d980b2af8f04c2ba380389ee99b12))


### Bug Fixes

* **detect:** Detect `_TZE200_abatw3kj` as RTX TS0601_RTX_DIN ([#7958](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7958)) ([78384a9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/78384a981af1393436f0e605700c9447e0ee39bc))
* Fix remove unsupported color from Innr RB 178 T https://github.com/Koenkk/zigbee2mqtt/issues/23911 ([822f991](https://github.com/Koenkk/zigbee-herdsman-converters/commit/822f9911fc164dd1f29ec77cccc1470f8117a287))
* Fix S1-R (5601) fingerprint ([#7959](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7959)) ([b123439](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b1234398df5bb37d6e7d1bfed7a77ca13aedcaf7))
* Fix Tuya-RB-SRAIN01 `cleaning_reminder` value ([#7953](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7953)) ([d0d8ec3](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d0d8ec30df24c65fc9e05fcfc637af8a7aba4822))
* **ignore:** Fix some Tuya whitelabels ([1c61743](https://github.com/Koenkk/zigbee-herdsman-converters/commit/1c61743e881f35de22fbfa4ad453cb68f93ce1fe))
* **ignore:** update dependencies ([#7954](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7954)) ([6f3e786](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6f3e786a76044e67a974d4a97659dbcdf4e4aa95))
* Improve compatibility with _TZ3000_303avxxt DIN rail switch ([#7965](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7965)) ([9862541](https://github.com/Koenkk/zigbee-herdsman-converters/commit/98625415e170ef812c51a9198738e3c84d1a57d4))
* Improve compatibility with _TZ3000_zjchz7pd DIN rail switch ([#7963](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7963)) ([8625590](https://github.com/Koenkk/zigbee-herdsman-converters/commit/862559017ccab08b57ee5e054ae1158097199b52))

## [20.12.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.12.0...v20.12.1) (2024-09-07)


Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zigbee-herdsman-converters",
"version": "20.12.1",
"version": "20.13.0",
"description": "Collection of device converters to be used with zigbee-herdsman",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -64,7 +64,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-perfectionist": "^3.4.0",
"eslint-plugin-perfectionist": "^3.5.0",
"eslint-plugin-tsdoc": "^0.3.0",
"fast-deep-equal": "*",
"husky": "^9.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/devices/innr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ const definitions: DefinitionWithExtend[] = [
model: 'RB 178 T',
vendor: 'Innr',
description: 'Smart bulb tunable white E27',
extend: [light({colorTemp: {range: [153, 555]}, color: {applyRedFix: true}, turnsOffAtBrightness1: true})],
extend: [light({colorTemp: {range: [153, 555]}, turnsOffAtBrightness1: true})],
},
{
zigbeeModel: ['BY 178 T'],
Expand Down
9 changes: 9 additions & 0 deletions src/devices/orvibo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ const definitions: DefinitionWithExtend[] = [
toZigbee: [],
exposes: [e.water_leak(), e.battery_low(), e.tamper()],
},
{
zigbeeModel: ['987b1869e4944218aa0034750d4ac585'],
model: 'SE20-O',
vendor: 'ORVIBO',
description: 'Smart emergency button',
fromZigbee: [fz.command_status_change_notification_action],
exposes: [e.action(['single'])],
toZigbee: [],
},
{
zigbeeModel: ['72bd56c539ca4c7fba73a9be0ae0d19f'],
model: 'SE21',
Expand Down
28 changes: 28 additions & 0 deletions src/devices/philips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3694,6 +3694,34 @@ const definitions: DefinitionWithExtend[] = [
description: 'Hue Perifo Wall Light, 3 spotlights (white)',
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true})],
},
{
zigbeeModel: ['929003116301'],
model: '929003116301',
vendor: 'Philips',
description: 'Hue Perifo gradient light tube small (black)',
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true, gradient: true})],
},
{
zigbeeModel: ['929003116401'],
model: '929003116401',
vendor: 'Philips',
description: 'Hue Perifo gradient light tube small (white)',
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true, gradient: true})],
},
{
zigbeeModel: ['929003116501'],
model: '929003116501',
vendor: 'Philips',
description: 'Hue Perifo gradient light tube large (black)',
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true, gradient: true})],
},
{
zigbeeModel: ['929003116601'],
model: '929003116601',
vendor: 'Philips',
description: 'Hue Perifo gradient light tube large (white)',
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true, gradient: true})],
},
{
zigbeeModel: ['915005988101'],
model: '915005988101',
Expand Down
20 changes: 20 additions & 0 deletions src/devices/third_reality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ const definitions: DefinitionWithExtend[] = [
fromZigbee: [fz.ias_water_leak_alarm_1, fz.battery],
toZigbee: [],
ota: ota.zigbeeOTA,
extend: [
deviceAddCustomCluster('r3Specialcluster', {
ID: 0xff01,
manufacturerCode: 0x1233,
attributes: {
siren_on_off: {ID: 0x0010, type: Zcl.DataType.UINT8},
siren_mintues: {ID: 0x0011, type: Zcl.DataType.UINT8},
},
commands: {},
commandsResponse: {},
}),
],
exposes: [e.water_leak(), e.battery_low(), e.battery(), e.battery_voltage()],
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(1);
Expand Down Expand Up @@ -209,6 +221,14 @@ const definitions: DefinitionWithExtend[] = [
extend: [battery({voltage: true}), forcePowerSource({powerSource: 'Battery'})],
ota: ota.zigbeeOTA,
},
{
zigbeeModel: ['3RSM0147Z'],
model: '3RSM0147Z',
vendor: 'Third Reality',
description: 'Soil sensor',
extend: [temperature(), humidity(), battery(), forcePowerSource({powerSource: 'Battery'})],
ota: ota.zigbeeOTA,
},
{
zigbeeModel: ['3RTHS0224Z'],
model: '3RTHS0224Z',
Expand Down
44 changes: 27 additions & 17 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,16 @@ const fzLocal = {
const data = msg.data.slice(3);
if (command == 0xe6) {
const value = splitToAttributes(data);
return {
temperature_threshold: value[0x05][1],
temperature_breaker: lookup[value[0x05][0]],
power_threshold: value[0x07][1],
power_breaker: lookup[value[0x07][0]],
};
const result: KeyValue = {};
if (0x05 in value) {
result.temperature_threshold = value[0x05][1];
result.temperature_breaker = lookup[value[0x05][0]];
}
if (0x07 in value) {
result.power_threshold = value[0x07][1];
result.power_breaker = lookup[value[0x07][0]];
}
return result;
}
if (command == 0xe7) {
const value = splitToAttributes(data);
Expand Down Expand Up @@ -1899,7 +1903,7 @@ const definitions: DefinitionWithExtend[] = [
e.illuminance().withUnit('lx'),
e.numeric('illuminance_average_20min', ea.STATE).withUnit('lx').withDescription('Illuminance average for the last 20 minutes'),
e.numeric('illuminance_maximum_today', ea.STATE).withUnit('lx').withDescription('Illuminance maximum for the last 24 hours'),
e.binary('cleaning_reminder', ea.STATE, 'ON', 'OFF').withDescription('Cleaning reminder'),
e.binary('cleaning_reminder', ea.STATE, true, false).withDescription('Cleaning reminder'),
e.numeric('rain_intensity', ea.STATE).withUnit('mV').withDescription('Rainfall intensity'),
],
meta: {
Expand Down Expand Up @@ -4139,6 +4143,7 @@ const definitions: DefinitionWithExtend[] = [
{modelID: 'TS0601', manufacturerName: '_TZE200_7fqkphoq'}, // AFINTEK
{modelID: 'TS0601', manufacturerName: '_TZE200_rufdtfyv'},
{modelID: 'TS0601', manufacturerName: '_TZE200_lpwgshtl'},
{modelID: 'TS0601', manufacturerName: '_TZE200_rk1wojce'}, // Emos P5630S
],
model: 'TS0601_thermostat',
vendor: 'Tuya',
Expand All @@ -4151,6 +4156,7 @@ const definitions: DefinitionWithExtend[] = [
{vendor: 'Immax', model: '07732B'},
tuya.whitelabel('Immax', '07732L', 'Radiator valve with thermostat', ['_TZE200_rufdtfyv']),
{vendor: 'Evolveo', model: 'Heat M30'},
tuya.whitelabel('Emos', 'P5630S', 'Radiator valve with thermostat', ['_TZE200_rk1wojce']),
],
meta: {tuyaThermostatPreset: legacy.thermostatPresets, tuyaThermostatSystemMode: legacy.thermostatSystemModes3},
ota: ota.zigbeeOTA,
Expand Down Expand Up @@ -6427,7 +6433,7 @@ const definitions: DefinitionWithExtend[] = [
if (device.manufacturerName === '_TZE200_viy9ihs7') {
return {auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2)};
} else {
return {manual: tuya.enum(0), auto: tuya.enum(1), temporary_manual: tuya.enum(2)};
return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
}
}),
],
Expand Down Expand Up @@ -8373,17 +8379,17 @@ const definitions: DefinitionWithExtend[] = [
.withUnit('*C')
.withDescription('High temperature threshold'),
e.binary('temperature_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High temperature breaker'),
e
.numeric('power_threshold', ea.STATE_SET)
.withValueMin(1)
.withValueMax(26)
.withValueStep(1)
.withUnit('kW')
.withDescription('High power threshold'),
e.binary('power_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High power breaker'),
);
}
exposes.push(
e
.numeric('power_threshold', ea.STATE_SET)
.withValueMin(1)
.withValueMax(26)
.withValueStep(1)
.withUnit('kW')
.withDescription('High power threshold'),
e.binary('power_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High power breaker'),
e
.numeric('over_current_threshold', ea.STATE_SET)
.withValueMin(1)
Expand Down Expand Up @@ -11437,7 +11443,10 @@ const definitions: DefinitionWithExtend[] = [
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_fhvdgeuh']),
fingerprint: [
{modelID: 'TS0601', manufacturerName: '_TZE204_fhvdgeuh'},
{modelID: 'TS0601', manufacturerName: '_TZE200_abatw3kj'},
],
model: 'TS0601_din_4',
vendor: 'Tuya',
description: 'Din rail switch with power monitoring and threshold settings',
Expand All @@ -11448,6 +11457,7 @@ const definitions: DefinitionWithExtend[] = [
// Required to get the device to start reporting
await device.getEndpoint(1).command('manuSpecificTuya', 'dataQuery', {});
},
whiteLabel: [tuya.whitelabel('RTX', 'TS0601_RTX_DIN', 'Din rail switch', ['_TZE200_abatw3kj'])],
exposes: [
e.switch().setAccess('state', ea.STATE_SET),
e.power(),
Expand Down
8 changes: 7 additions & 1 deletion src/devices/ubisys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,13 @@ const definitions: DefinitionWithExtend[] = [
{
manufacturerName: 'ubisys',
modelID: 'S1-R (5601)',
endpoints: [{ID: 1, profileID: 260, deviceID: 266, inputClusters: [0, 3, 4, 5, 6, 1794, 2820], outputClusters: []}],
endpoints: [
{ID: 1, profileID: 260, deviceID: 266, inputClusters: [0, 3, 4, 5, 6, 1794, 2820], outputClusters: []},
{ID: 2, profileID: 260, deviceID: 260, inputClusters: [0, 3], outputClusters: [3, 5, 6, 8, 768, 64514]},
{ID: 3, profileID: 260, deviceID: 260, inputClusters: [0, 3], outputClusters: [3, 5, 6, 8, 768, 64514]},
{ID: 232, profileID: 260, deviceID: 1287, inputClusters: [0, 61, 64512, 64599], outputClusters: [3, 25]},
{ID: 242, profileID: 41440, deviceID: 97, inputClusters: [], outputClusters: [33]},
],
},
],
model: 'S1-R-2',
Expand Down

0 comments on commit 58da243

Please sign in to comment.