From 96accd4d509200b138d5c283064f0e1e58c2de2e Mon Sep 17 00:00:00 2001 From: Tobias Ochs Date: Thu, 9 Jan 2025 20:16:32 +0100 Subject: [PATCH 1/3] Add Paulmann 501.39 smart switch --- src/devices/paulmann.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/devices/paulmann.ts b/src/devices/paulmann.ts index 06d5396595143..1e41b62bc6b0b 100644 --- a/src/devices/paulmann.ts +++ b/src/devices/paulmann.ts @@ -289,6 +289,13 @@ const definitions: DefinitionWithExtend[] = [ description: 'Smart Home Zigbee LED bulb 4,9W Matt E14 RGBW', extend: [light({colorTemp: {range: [153, 454]}, color: {modes: ['xy', 'hs']}})], }, + { + zigbeeModel: ['TS000F', '501.39'], + model: 'TS000F', + vendor: 'Paulmann Licht GmbH', + description: '50139 SH ZB Paulmann Home Universal-Switch White', + extend: [onOff({"powerOnBehavior":false})], + } ]; export default definitions; From c36ab507ec65b54897cac90f2c0bd60915713470 Mon Sep 17 00:00:00 2001 From: Tobias Ochs Date: Thu, 9 Jan 2025 20:28:16 +0100 Subject: [PATCH 2/3] Run eslint and pretty --- src/devices/paulmann.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/paulmann.ts b/src/devices/paulmann.ts index 1e41b62bc6b0b..ab517b40ea266 100644 --- a/src/devices/paulmann.ts +++ b/src/devices/paulmann.ts @@ -294,8 +294,8 @@ const definitions: DefinitionWithExtend[] = [ model: 'TS000F', vendor: 'Paulmann Licht GmbH', description: '50139 SH ZB Paulmann Home Universal-Switch White', - extend: [onOff({"powerOnBehavior":false})], - } + extend: [onOff({powerOnBehavior: false})], + }, ]; export default definitions; From 456b2df671e5b07f60d02199e45896bb5aa6a379 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 10 Jan 2025 20:53:28 +0100 Subject: [PATCH 3/3] u --- src/devices/paulmann.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/devices/paulmann.ts b/src/devices/paulmann.ts index ab517b40ea266..82b9d7139f2b0 100644 --- a/src/devices/paulmann.ts +++ b/src/devices/paulmann.ts @@ -1,6 +1,7 @@ import fz from '../converters/fromZigbee'; import * as exposes from '../lib/exposes'; import {battery, commandsColorCtrl, commandsLevelCtrl, commandsOnOff, commandsScenes, deviceEndpoints, light, onOff} from '../lib/modernExtend'; +import * as tuya from '../lib/tuya'; import {DefinitionWithExtend} from '../lib/types'; const e = exposes.presets; @@ -290,10 +291,10 @@ const definitions: DefinitionWithExtend[] = [ extend: [light({colorTemp: {range: [153, 454]}, color: {modes: ['xy', 'hs']}})], }, { - zigbeeModel: ['TS000F', '501.39'], - model: 'TS000F', - vendor: 'Paulmann Licht GmbH', - description: '50139 SH ZB Paulmann Home Universal-Switch White', + fingerprint: tuya.fingerprint('TS000F', ['_TZ3210_hjxqqofs']), + model: '501.39', + vendor: 'Paulmann', + description: 'Universal-switch white', extend: [onOff({powerOnBehavior: false})], }, ];