Skip to content

Commit

Permalink
Merge branch 'Koenkk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Giexperience authored Dec 4, 2024
2 parents fcb91ed + 470bae5 commit 0991135
Show file tree
Hide file tree
Showing 17 changed files with 357 additions and 206 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 @@
{
".": "21.0.0"
".": "21.2.1"
}
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## [21.2.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v21.2.0...v21.2.1) (2024-12-03)


### Bug Fixes

* **ignore:** fix X701A ([c1d8c3c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c1d8c3c218f67523903a234f3afd4a286144eb6a))

## [21.2.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v21.1.0...v21.2.0) (2024-12-03)


### Features

* **add:** DR3000 ([#8424](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8424)) ([2d41a04](https://github.com/Koenkk/zigbee-herdsman-converters/commit/2d41a04a7a1c5ca97063cc438a25571c0589b764))
* **add:** RF 271 T, RF 273 T ([#8429](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8429)) ([b636059](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b636059240de84c2333f9efb455db77bbdc37ba6))
* Improvement to W599001 Smoke Alarm ([#8393](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8393)) ([098daba](https://github.com/Koenkk/zigbee-herdsman-converters/commit/098daba7caba5af3b55a3d305c7b699398804714))


### Bug Fixes

* add SR-ZG9002KR12-Pro SR-ZG9002KR12-Pro configure and use extend instead only fromZigbee ([#8427](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8427)) ([0ce8cd8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0ce8cd8e24f00e927ab97abc6dee7276a7706828))
* **detect:** Detect `_TZE204_wktrysab` as Tuya TS0601_switch_8 ([#8423](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8423)) ([9ea3f04](https://github.com/Koenkk/zigbee-herdsman-converters/commit/9ea3f04efe41648ca0aaa16af4255f5f13b3f918))
* **detect:** Detect `_TZE284_hecsejsb` as Tongou TOWSMR1 https://github.com/Koenkk/zigbee-herdsman-converters/pull/8426 ([8411b28](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8411b28f51b4cf0300104e56a0542461d37fb7ec))
* **detect:** Detect `929003810001_01` and `929003810001_02` as 5063230P7 ([#8430](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8430)) ([dbf7869](https://github.com/Koenkk/zigbee-herdsman-converters/commit/dbf7869eae6a2283ff13b00f12c19eab354e56db))
* **detect:** Detect `LCL007` as Philips 8718699703424 ([#8432](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8432)) ([e2c5da5](https://github.com/Koenkk/zigbee-herdsman-converters/commit/e2c5da54acf7d7847d21b7faa68930a374330a93))
* Fix `Handling of poll check-in failed` for Tuya TS0203 https://github.com/Koenkk/zigbee2mqtt/issues/24938 ([286d454](https://github.com/Koenkk/zigbee-herdsman-converters/commit/286d45497aa81952bde2779498673ba66b6e7466))
* Fix some Third Reality devices bugs ([#8428](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8428)) ([8528633](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8528633662cb6149c3c5534d0a2eb205deb4e7c8))

## [21.1.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v21.0.0...v21.1.0) (2024-12-02)


### Features

* **add:** A6Z https://github.com/Koenkk/zigbee2mqtt/issues/24967 ([b7877b7](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b7877b7d0b10f64a827e19801d39a4b021043dd3))
* **add:** TRV801 ([#8415](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8415)) ([7fb34d9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/7fb34d9b1485ea436486be96ba68284b4653299c))
* **add:** WT-1 ([#8422](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8422)) ([068658f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/068658f3cef2bf37e3ca8bfd668823ad5d4b15f8))
* **add:** X701A ([#8156](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8156)) ([5478391](https://github.com/Koenkk/zigbee-herdsman-converters/commit/547839101d21dcf48b4404c30b7d1f0003609051))


### Bug Fixes

* Add new transitionCount parameter on thermostatScheduleDayMultiDP ([#8414](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8414)) ([9bf46b4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/9bf46b41ccc190860f5128f81a17264fac58d386))
* Change endpoint for Yandex switches ([#8420](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8420)) ([f648f16](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f648f161fe94c3c5e2ebfc2d02a5c3c3e065c62e))
* **detect:** Detect `_TZE284_kobbcyum` as Tongou TOWSMR1 https://github.com/Koenkk/zigbee2mqtt/issues/24516 ([8eb499f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8eb499fd6f83548fdad5b88a6cd9678d38935740))
* Fix `LGT002` and `LGT003` not marked as supported https://github.com/Koenkk/zigbee2mqtt/issues/24965 ([e58aead](https://github.com/Koenkk/zigbee-herdsman-converters/commit/e58aead21b686d3f4c53f7477ac5d2c1bf168aa2))
* Fix the temperature compensation issue of 'HHST001' and add blind spot temperature function ([#8419](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8419)) ([26aa30d](https://github.com/Koenkk/zigbee-herdsman-converters/commit/26aa30d7b1a766a7c42bf0ca354e4022e33c3964))

## [21.0.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.58.0...v21.0.0) (2024-12-01)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zigbee-herdsman-converters",
"version": "21.0.0",
"version": "21.2.1",
"description": "Collection of device converters to be used with zigbee-herdsman",
"main": "index.js",
"types": "index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/devices/adeo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ const definitions: DefinitionWithExtend[] = [
exposes: [e.warning(), e.battery(), e.battery_low(), e.tamper()],
extend: [quirkCheckinInterval(0)],
configure: async (device, coordinatorEndpoint) => {
await device.getEndpoint(1).unbind('genPollCtrl', coordinatorEndpoint);
const endpoint = device.getEndpoint(1);
if (endpoint.binds.some((b) => b.cluster.name === 'genPollCtrl')) {
await endpoint.unbind('genPollCtrl', coordinatorEndpoint);
}
},
},
{
Expand Down
4 changes: 3 additions & 1 deletion src/devices/bosch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,9 @@ const definitions: DefinitionWithExtend[] = [
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'ssIasZone', 'ssIasWd', 'genBasic']);
await reporting.batteryVoltage(endpoint);
await endpoint.read(0x0502, [0xa000, 0xa001, 0xa002, 0xa003, 0xa004, 0xa005], manufacturerOptions);
await endpoint.unbind('genPollCtrl', coordinatorEndpoint);
if (endpoint.binds.some((b) => b.cluster.name === 'genPollCtrl')) {
await endpoint.unbind('genPollCtrl', coordinatorEndpoint);
}
},
exposes: [
e.binary('alarm_state', ea.ALL, 'ON', 'OFF').withDescription('Alarm turn ON/OFF'),
Expand Down
15 changes: 15 additions & 0 deletions src/devices/dowsing_reynolds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {light} from '../lib/modernExtend';
import {DefinitionWithExtend} from '../lib/types';

const definitions: DefinitionWithExtend[] = [
{
zigbeeModel: ['DR3000'],
model: 'DR3000',
vendor: 'Dowsing & Reynolds',
description: 'Antique brass double dimmer switch',
extend: [light()],
},
];

export default definitions;
module.exports = definitions;
2 changes: 2 additions & 0 deletions src/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import digi from './digi';
import diyruz from './diyruz';
import dlink from './dlink';
import dnake from './dnake';
import dowsing_reynolds from './dowsing_reynolds';
import dresden_elektronik from './dresden_elektronik';
import easyaccess from './easyaccess';
import easyiot from './easyiot';
Expand Down Expand Up @@ -374,6 +375,7 @@ export default [
...diyruz,
...dlink,
...dnake,
...dowsing_reynolds,
...dresden_elektronik,
...easyaccess,
...easyiot,
Expand Down
14 changes: 14 additions & 0 deletions src/devices/innr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,20 @@ const definitions: DefinitionWithExtend[] = [
description: 'Smart E26 LED bulb',
extend: [light({turnsOffAtBrightness1: true})],
},
{
zigbeeModel: ['RF 271 T'],
model: 'RF 271 T',
vendor: 'Innr',
description: 'Smart E27 filament LED globe light bulb',
extend: [light({colorTemp: {range: [153, 556]}, turnsOffAtBrightness1: true})],
},
{
zigbeeModel: ['RF 273 T'],
model: 'RF 273 T',
vendor: 'Innr',
description: 'Smart E27 filament LED light bulb',
extend: [light({colorTemp: {range: [153, 556]}, turnsOffAtBrightness1: true})],
},
];

export default definitions;
Expand Down
11 changes: 11 additions & 0 deletions src/devices/lonsonho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ const definitions: DefinitionWithExtend[] = [
e.binary('motor_reversal', ea.ALL, 'ON', 'OFF').withEndpoint('right'),
],
},
{
fingerprint: [{modelID: 'TS0001', manufacturerName: '_TZ3000_t3s9qmmg'}],
model: 'X701A',
vendor: 'Lonsonho',
description: '1 gang switch with backlight',
extend: [tuya.modernExtend.tuyaOnOff({indicatorMode: true})],
configure: async (device, coordinatorEndpoint) => {
await tuya.configureMagicPacket(device, coordinatorEndpoint);
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
},
},
{
fingerprint: [
{modelID: 'TS0601', manufacturerName: '_TZE200_8vxj8khv'},
Expand Down
6 changes: 3 additions & 3 deletions src/devices/philips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ const definitions: DefinitionWithExtend[] = [
extend: [philipsLight({colorTemp: {range: undefined}, color: true})],
},
{
zigbeeModel: ['LCL001', 'LCL006'],
zigbeeModel: ['LCL001', 'LCL006', 'LCL007'],
model: '8718699703424',
vendor: 'Philips',
description: 'Hue white and color ambiance LightStrip plus',
Expand Down Expand Up @@ -2183,7 +2183,7 @@ const definitions: DefinitionWithExtend[] = [
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: true})],
},
{
zigbeeModel: ['5063230P7'],
zigbeeModel: ['5063230P7', '929003810001_01', '929003810001_02'],
model: '5063230P7',
vendor: 'Philips',
description: 'Hue Bluetooth white & color ambiance spot Fugato black (2 spots)',
Expand Down Expand Up @@ -3943,7 +3943,7 @@ const definitions: DefinitionWithExtend[] = [
extend: [philipsLight({colorTemp: {range: [153, 500]}, color: {modes: ['xy', 'hs'], enhancedHue: true}})],
},
{
zigbeeModel: ['LGT001'],
zigbeeModel: ['LGT001', 'LGT002', 'LGT003'],
model: '929003711201',
vendor: 'Philips',
description: 'Hue Twilight sleep and wake-up light white',
Expand Down
2 changes: 2 additions & 0 deletions src/devices/saswell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ const definitions: DefinitionWithExtend[] = [
{modelID: 'TS0601', manufacturerName: '_TZE200_exfrnlow'},
{modelID: 'TS0601', manufacturerName: '_TZE200_9m4kmbfu'},
{modelID: 'TS0601', manufacturerName: '_TZE200_3yp57tby'},
{modelID: 'TS0601', manufacturerName: '_TZE200_7p8ugv8d'},
],
model: 'SEA801-Zigbee/SEA802-Zigbee',
vendor: 'Saswell',
description: 'Thermostatic radiator valve',
whiteLabel: [
{vendor: 'HiHome', model: 'WZB-TRVL'},
{vendor: 'Hama', model: '00176592'},
{vendor: 'Maginon', model: 'WT-1'},
{vendor: 'RTX', model: 'ZB-RT1'},
{vendor: 'SETTI+', model: 'TRV001'},
],
Expand Down
52 changes: 27 additions & 25 deletions src/devices/schneider_electric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
deviceEndpoints,
electricityMeter,
enumLookup,
iasZoneAlarm,
identify,
illuminance,
light,
Expand All @@ -21,6 +22,7 @@ import {
onOff,
ScaleFunction,
setupConfigureForReading,
temperature,
} from '../lib/modernExtend';
import * as reporting from '../lib/reporting';
import {DefinitionWithExtend, Fz, KeyValue, ModernExtend, Tz} from '../lib/types';
Expand Down Expand Up @@ -1725,32 +1727,32 @@ const definitions: DefinitionWithExtend[] = [
model: 'W599001',
vendor: 'Schneider Electric',
description: 'Wiser smoke alarm',
fromZigbee: [fz.temperature, fz.battery, fz.ias_enroll, fz.ias_smoke_alarm_1],
toZigbee: [],
ota: true, // local OTA updates are untested
exposes: [
e.smoke(),
e.test(),
e.battery_low(),
e.tamper(),
e.battery(),
e.battery_voltage(),
// the temperature readings are unreliable and may need more investigation.
e.temperature(),
extend: [
battery({voltage: true, voltageReporting: true}),
temperature(),
iasZoneAlarm({
zoneType: 'smoke',
zoneAttributes: ['alarm_1', 'tamper', 'battery_low', 'test'],
zoneStatusReporting: true,
manufacturerZoneAttributes: [
{
bit: 1,
name: 'heat',
valueOn: true,
valueOff: false,
description: 'Indicates whether the device has detected high temperature',
},
{
bit: 11,
name: 'hush',
valueOn: true,
valueOff: false,
description: 'Indicates whether the device is in hush mode',
entityCategory: 'diagnostic',
},
],
}),
],
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(20);
const binds = ['msTemperatureMeasurement', 'ssIasZone', 'genPowerCfg'];
await reporting.bind(endpoint, coordinatorEndpoint, binds);
await reporting.batteryPercentageRemaining(endpoint);
await reporting.batteryVoltage(endpoint);
await reporting.temperature(endpoint);
await endpoint.read('msTemperatureMeasurement', ['measuredValue']);
await endpoint.read('ssIasZone', ['iasCieAddr', 'zoneState', 'zoneStatus', 'zoneId']);
await endpoint.read('genPowerCfg', ['batteryVoltage', 'batteryPercentageRemaining']);
device.powerSource = 'Mains (single phase)';
device.save();
},
whiteLabel: [
{vendor: 'Schneider Electric', model: 'W599501', description: 'Wiser smoke alarm', fingerprint: [{modelID: 'W599501'}]},
{vendor: 'Schneider Electric', model: '755WSA', description: 'Clipsal Wiser smoke alarm', fingerprint: [{modelID: '755WSA'}]},
Expand Down
Loading

0 comments on commit 0991135

Please sign in to comment.