Skip to content

Commit

Permalink
add TH08 temp and humidity sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
blakadder committed Jul 27, 2023
1 parent 255a1b3 commit ffe1e10
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Temperature and Humidity Sensor
products:
- id: xlk3mtpjo1zkmdvh
name: TH08
primary_entity:
entity: sensor
name: Temperature
class: temperature
dps:
- id: 1
name: sensor
type: integer
unit: C
mapping:
- scale: 10
class: measurement
secondary_entities:
- entity: sensor
name: Humidity
class: humidity
dps:
- id: 2
type: integer
name: sensor
unit: "%"
class: measurement
- entity: sensor
name: Power State
class: enum
category: diagnostic
dps:
- id: 3
type: string
name: sensor
mapping:
- dps_val: low
value: low
- dps_val: middle
value: middle
- dps_val: high
value: high
- entity: select
name: Display Units
category: config
dps:
- id: 9
name: option
type: string
mapping:
- dps_val: "f"
value: Fahrenheit
- dps_val: "c"
value: Celsius
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Example DPS Status
# {'dps': {'1': 226, '2': 41, '9': 'f'}}
# from issue #608 { "1": 183, "2": 63, "9": "c", "10": 390, "11": 0, "12": 60,
# "13": 20, "14": "cancel", "15": "upperalarm", "21": true,
# "101": true, "102": 9, "103": 0, "104": 1, "105": 0,
# "106": 0, "107": 1 }
name: TH16 TH06WB3S Temperature and Humidity Sensor
products:
- id: 7akwzwfwhukkdsib
Expand Down Expand Up @@ -40,7 +34,7 @@ secondary_entities:
- dps_val: "f"
value: Fahrenheit
- dps_val: "c"
value: Celcius
value: Celsius
- entity: light
name: Display
icon: "mdi:television-ambient-light"
Expand Down

0 comments on commit ffe1e10

Please sign in to comment.