Skip to content

Commit

Permalink
HACS update to Tuya Local #16
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedTinker committed Jun 23, 2023
1 parent 0391fd1 commit 7d3d9b2
Show file tree
Hide file tree
Showing 150 changed files with 18,695 additions and 0 deletions.
100 changes: 100 additions & 0 deletions custom_components/tuya_local/devices/motion_sensor_light.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Motion Sensor Light
products:
- id: oapo5mmfbcr2y7ox
name: Deta 360 Motion Sensor
- id: 8mrw54ape8opgl69
name: Deta Light Motion Sensor
- id: pxyhz90upglpoedu
name: Arlec MAL315HA
primary_entity:
entity: light
dps:
- id: 101
type: string
name: effect
mapping:
- dps_val: mode_off
value: "off"
- dps_val: mode_auto
value: auto
- dps_val: mode_on
value: "on"
- id: 102
type: boolean
name: switch
readonly: true
secondary_entities:
- entity: switch
name: Auto mode
icon: "mdi:motion-sensor"
dps:
- id: 101
type: string
name: switch
mapping:
- dps_val: mode_auto
value: on
- dps_val: mode_on
constraint: relay
conditions:
- dps_val: true
value: false
- dps_val: mode_off
constraint: relay
conditions:
- dps_val: false
value: false
- id: 102
name: relay
type: boolean
readonly: true
hidden: true
- entity: number
name: Sensitivity
icon: "mdi:human-greeting-proximity"
category: config
dps:
- id: 103
type: integer
name: value
range:
min: 0
max: 4
mapping:
- invert: true
- entity: number
name: Duration
icon: "mdi:camera-timer"
category: config
dps:
- id: 104
type: integer
name: value
unit: s
range:
min: 10
max: 900
mapping:
- step: 10
- entity: number
name: Light level
icon: "mdi:theme-light-dark"
category: config
class: illuminance
dps:
- id: 105
type: integer
name: value
unit: lx
range:
min: 0
max: 3900
mapping:
- invert: true
- entity: switch
name: Auto reset
category: config
dps:
- id: 106
type: boolean
name: switch
64 changes: 64 additions & 0 deletions custom_components/tuya_local/devices/nedis_airquality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Nedis air quality monitor
products:
- id: ipbqjatfsxghe3dc
name: Nedis WIFISA10CWT
- id: hryy1di7ozhgpj6p
name: RSH-AirBox01
primary_entity:
entity: sensor
name: Formaldehyde
class: volatile_organic_compounds
dps:
- id: 2
type: integer
name: sensor
unit: ugm3
class: measurement
mapping:
- scale: 0.1
secondary_entities:
- entity: sensor
name: Temperature
class: temperature
dps:
- id: 18
type: integer
name: sensor
unit: C
class: measurement
mapping:
- scale: 10
- entity: sensor
name: Humidity
class: humidity
dps:
- id: 19
type: integer
name: sensor
unit: "%"
class: measurement
mapping:
- scale: 10
- entity: sensor
name: Volatile organic compounds
class: volatile_organic_compounds
dps:
- id: 21
type: integer
name: sensor
unit: ppm
class: measurement
mapping:
- scale: 10
- entity: sensor
name: Carbon dioxide
class: carbon_dioxide
dps:
- id: 22
type: integer
name: sensor
unit: ppm
class: measurement



63 changes: 63 additions & 0 deletions custom_components/tuya_local/devices/nedis_htpl20f_heater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Nedis smart convection heater
primary_entity:
entity: climate
dps:
- id: 1
type: boolean
name: hvac_mode
mapping:
- dps_val: true
value: heat
icon: "mdi:radiator"
- dps_val: false
value: "off"
icon: "mdi:radiator-disabled"
- id: 2
type: integer
name: temperature
range:
min: 15
max: 35
- id: 3
type: integer
name: current_temperature
- id: 4
type: string
name: preset_mode
mapping:
- dps_val: "1"
value: eco
- dps_val: "2"
value: comfort
- dps_val: "3"
value: away
- id: 11
type: string
name: unknown_11
- id: 101
type: boolean
name: unknown_101
secondary_entities:
- entity: lock
name: Child lock
category: config
dps:
- id: 7
type: boolean
name: lock
mapping:
- dps_val: true
icon: "mdi:hand-back-right-off"
- dps_val: false
icon: "mdi:hand-back-right"
- entity: number
name: Timer
category: config
dps:
- id: 13
type: integer
name: value
unit: min
range:
min: 0
max: 1440
118 changes: 118 additions & 0 deletions custom_components/tuya_local/devices/nedis_mobile_airconditioner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Mobile Air Conditioner
products:
- id: vrredpnf22yayvhi
name: Nedis ACMB1WT12
primary_entity:
entity: climate
dps:
- id: 1
type: boolean
name: hvac_mode
mapping:
- dps_val: false
value: "off"
- dps_val: true
constraint: mode
conditions:
- dps_val: cold
value: cool
- dps_val: wet
value: dry
- dps_val: wind
value: fan_only
# tuya portal also lists hot, but manual says only the 3 above
- id: 2
type: integer
name: temperature
range:
min: 16
max: 31
unit: C
- id: 3
type: integer
name: current_temperature
# 107, 108 listed as F temperatures in report, but not existing
# in log, and there is no temperature_unit dp to work with
- id: 4
type: string
name: mode
hidden: true
- id: 5
type: string
name: fan_mode
mapping:
- dps_val: low
value: low
- dps_val: med
value: medium
- dps_val: high
value: high
- id: 15
type: string
name: swing_1
- id: 20
type: bitfield
name: fault_code
- id: 109
type: integer
name: feature_flags
- id: 110
type: boolean
name: swing_2
secondary_entities:
- entity: switch
name: Ioniser
icon: "mdi:creation"
dps:
- id: 11
type: boolean
name: switch
- entity: binary_sensor
name: Fault
class: problem
category: diagnostic
dps:
- id: 20
type: bitfield
name: sensor
mapping:
- dps_val: 0
value: false
- value: true
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
dps:
- id: 103
type: boolean
name: switch
- entity: number
name: "On timer"
category: config
icon: "mdi:timer"
dps:
- id: 104
type: integer
name: value
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- entity: number
name: "Off timer"
category: config
icon: "mdi:timer"
dps:
- id: 105
type: integer
name: value
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
Loading

0 comments on commit 7d3d9b2

Please sign in to comment.