c30w_gassensor.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. name: Gas leak detector
  2. products:
  3. - id: 4iqe2hsfyd86kwwc
  4. model: C30W
  5. entities:
  6. - entity: binary_sensor
  7. class: gas
  8. dps:
  9. - id: 2
  10. type: string
  11. name: sensor
  12. mapping:
  13. - dps_val: alarm
  14. value: true
  15. - value: false
  16. - id: 1
  17. type: string
  18. name: checking_result
  19. - entity: number
  20. name: Alarm duration
  21. class: duration
  22. category: config
  23. dps:
  24. - id: 3
  25. type: integer
  26. name: value
  27. unit: s
  28. range:
  29. min: 0
  30. max: 3600
  31. - entity: sensor
  32. name: Gas level
  33. class: volatile_organic_compounds_parts
  34. dps:
  35. - id: 5
  36. type: integer
  37. name: sensor
  38. unit: ppm
  39. class: measurement
  40. - entity: button
  41. name: Self test
  42. category: config
  43. dps:
  44. - id: 9
  45. type: boolean
  46. name: button
  47. - entity: binary_sensor
  48. class: problem
  49. category: diagnostic
  50. dps:
  51. - id: 9
  52. type: boolean
  53. name: sensor
  54. - entity: switch
  55. name: Alarm
  56. icon: "mdi:bullhorn"
  57. category: config
  58. dps:
  59. - id: 14
  60. type: boolean
  61. name: switch
  62. - entity: number
  63. name: Gas alarm threshold
  64. category: config
  65. class: volatile_organic_compounds_parts
  66. dps:
  67. - id: 101
  68. type: integer
  69. name: value
  70. unit: ppm
  71. range:
  72. min: 10
  73. max: 100
  74. - entity: sensor
  75. class: temperature
  76. dps:
  77. - id: 102
  78. type: integer
  79. name: sensor
  80. unit: C
  81. class: measurement
  82. - entity: number
  83. name: Temperature alarm threshold
  84. category: config
  85. class: temperature
  86. dps:
  87. - id: 103
  88. type: integer
  89. name: value
  90. unit: C
  91. range:
  92. min: -40
  93. max: 300
  94. - entity: switch
  95. name: Temperature alarm
  96. icon: "mdi:bullhorn"
  97. category: config
  98. dps:
  99. - id: 104
  100. type: string
  101. name: switch
  102. mapping:
  103. - dps_val: upperalarm
  104. value: true
  105. - dps_val: cancel
  106. value: false
  107. - entity: light
  108. translation_key: backlight
  109. category: config
  110. dps:
  111. - id: 105
  112. type: boolean
  113. name: switch