th16_temp_humidity_sensor.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Example DPS Status
  2. # {'dps': {'1': 226, '2': 41, '9': 'f'}}
  3. # from issue #608 { "1": 183, "2": 63, "9": "c", "10": 390, "11": 0, "12": 60,
  4. # "13": 20, "14": "cancel", "15": "upperalarm", "21": true,
  5. # "101": true, "102": 9, "103": 0, "104": 1, "105": 0,
  6. # "106": 0, "107": 1 }
  7. name: TH16 TH06WB3S Temperature and Humidity Sensor
  8. products:
  9. - id: 7akwzwfwhukkdsib
  10. primary_entity:
  11. entity: sensor
  12. name: Temperature
  13. class: temperature
  14. dps:
  15. - id: 1
  16. name: sensor
  17. type: integer
  18. unit: C
  19. mapping:
  20. - scale: 10
  21. class: measurement
  22. secondary_entities:
  23. - entity: sensor
  24. name: Humidity
  25. class: humidity
  26. dps:
  27. - id: 2
  28. type: integer
  29. name: sensor
  30. unit: "%"
  31. class: measurement
  32. - entity: select
  33. name: Display Units
  34. category: config
  35. dps:
  36. - id: 9
  37. name: option
  38. type: string
  39. mapping:
  40. - dps_val: "f"
  41. value: Fahrenheit
  42. - dps_val: "c"
  43. value: Celcius
  44. - entity: light
  45. name: Display
  46. icon: "mdi:television-ambient-light"
  47. category: config
  48. dps:
  49. - id: 21
  50. type: boolean
  51. name: switch
  52. optional: true