-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Treatlife mmWave human presence sensor
Issue #2684
- Loading branch information
Showing
3 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
custom_components/tuya_local/devices/treatlife_psw_presencesensor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Human presence sensor | ||
products: | ||
- id: s6hviigqjdrymvj3 | ||
manufacturer: Treatlife | ||
model: PS-W | ||
entities: | ||
- entity: binary_sensor | ||
class: occupancy | ||
dps: | ||
- id: 1 | ||
type: string | ||
name: sensor | ||
mapping: | ||
- dps_val: presence | ||
value: true | ||
- value: false | ||
- entity: number | ||
name: Motion sensitivity | ||
category: config | ||
icon: "mdi:motion-sensor" | ||
dps: | ||
- id: 2 | ||
type: integer | ||
name: value | ||
range: | ||
min: 1 | ||
max: 5 | ||
- entity: number | ||
name: Maximum distance | ||
class: distance | ||
category: config | ||
icon: "mdi:signal-distance-variant" | ||
dps: | ||
- id: 4 | ||
type: integer | ||
name: value | ||
unit: cm | ||
range: | ||
min: 75 | ||
max: 600 | ||
mapping: | ||
- step: 75 | ||
- entity: sensor | ||
class: distance | ||
category: diagnostic | ||
dps: | ||
- id: 9 | ||
type: integer | ||
name: sensor | ||
unit: cm | ||
class: measurement | ||
- entity: sensor | ||
class: illuminance | ||
dps: | ||
- id: 101 | ||
type: integer | ||
name: sensor | ||
unit: lx | ||
class: measurement | ||
- entity: number | ||
name: Still sensitivity | ||
category: config | ||
icon: "mdi:account-clock" | ||
dps: | ||
- id: 102 | ||
type: integer | ||
name: value | ||
range: | ||
min: 1 | ||
max: 5 | ||
- entity: sensor | ||
class: duration | ||
category: diagnostic | ||
dps: | ||
- id: 104 | ||
type: integer | ||
name: sensor | ||
unit: min | ||
class: measurement | ||
- entity: light | ||
translation_key: indicator | ||
category: config | ||
dps: | ||
- id: 105 | ||
type: boolean | ||
name: switch |