em3378_weather_station.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. name: Weather Station
  2. products:
  3. - id: q9opgtca8ymbxpqn
  4. name: EM3378
  5. primary_entity:
  6. entity: sensor
  7. name: Indoor temperature
  8. class: temperature
  9. dps:
  10. - id: 101
  11. type: integer
  12. name: sensor
  13. class: measurement
  14. mapping:
  15. - scale: 10
  16. - id: 112
  17. type: boolean
  18. name: unit
  19. mapping:
  20. - dps_val: true
  21. value: F
  22. - dps_val: false
  23. value: C
  24. - id: 117
  25. name: fault
  26. type: bitfield
  27. optional: true
  28. # we need the full range of values to expose this as a light control
  29. - id: 118
  30. name: backlight_brightness
  31. type: string
  32. - id: 121
  33. name: backlight_leading_time
  34. type: integer
  35. # below is probably related to the built in USB charger, but is encoded
  36. - id: 122
  37. name: output_power
  38. type: hex
  39. secondary_entities:
  40. - entity: sensor
  41. name: Indoor humidity
  42. class: humidity
  43. dps:
  44. - id: 102
  45. type: integer
  46. name: sensor
  47. unit: "%"
  48. class: measurement
  49. - entity: sensor
  50. name: Remote temperature 1
  51. class: temperature
  52. category: diagnostic
  53. dps:
  54. - id: 103
  55. type: integer
  56. name: sensor
  57. class: measurement
  58. mapping:
  59. - scale: 10
  60. - id: 112
  61. type: boolean
  62. name: unit
  63. mapping:
  64. - dps_val: false
  65. value: C
  66. - dps_val: true
  67. value: F
  68. - entity: sensor
  69. name: Remote humidity 1
  70. class: humidity
  71. category: diagnostic
  72. dps:
  73. - id: 104
  74. type: integer
  75. name: sensor
  76. unit: "%"
  77. class: measurement
  78. - entity: sensor
  79. name: Remote temperature 2
  80. class: temperature
  81. category: diagnostic
  82. dps:
  83. - id: 106
  84. type: integer
  85. name: sensor
  86. class: measurement
  87. optional: true
  88. mapping:
  89. - scale: 10
  90. - id: 112
  91. type: boolean
  92. name: unit
  93. mapping:
  94. - dps_val: false
  95. value: C
  96. - dps_val: true
  97. value: F
  98. - entity: sensor
  99. name: Remote humidity 2
  100. class: humidity
  101. category: diagnostic
  102. dps:
  103. - id: 107
  104. type: integer
  105. name: sensor
  106. unit: "%"
  107. class: measurement
  108. optional: true
  109. - entity: sensor
  110. name: Remote temperature 3
  111. class: temperature
  112. category: diagnostic
  113. dps:
  114. - id: 108
  115. type: integer
  116. name: sensor
  117. class: measurement
  118. optional: true
  119. mapping:
  120. - scale: 10
  121. - id: 112
  122. type: boolean
  123. name: unit
  124. mapping:
  125. - dps_val: false
  126. value: C
  127. - dps_val: true
  128. value: F
  129. - entity: sensor
  130. name: Remote humidity 3
  131. class: humidity
  132. category: diagnostic
  133. dps:
  134. - id: 109
  135. type: integer
  136. name: sensor
  137. unit: "%"
  138. class: measurement
  139. optional: true
  140. - entity: sensor
  141. class: atmospheric_pressure
  142. category: diagnostic
  143. dps:
  144. - id: 110
  145. type: integer
  146. name: sensor
  147. class: measurement
  148. - id: 111
  149. type: string
  150. name: unit
  151. - entity: select
  152. name: Atmospheric pressure unit
  153. icon: "mdi:gauge"
  154. category: config
  155. dps:
  156. - id: 111
  157. type: string
  158. name: option
  159. mapping:
  160. - dps_val: mmHg
  161. value: mm of mercury
  162. - dps_val: hPa
  163. value: millibars
  164. - dps_val: inHg
  165. value: inches of mercury
  166. - entity: select
  167. translation_key: temperature_unit
  168. category: config
  169. dps:
  170. - id: 112
  171. type: boolean
  172. name: option
  173. mapping:
  174. - dps_val: false
  175. value: celsius
  176. - dps_val: true
  177. value: fahrenheit
  178. - entity: binary_sensor
  179. class: problem
  180. category: diagnostic
  181. dps:
  182. - id: 117
  183. type: boolean
  184. name: sensor
  185. optional: true
  186. persist: false
  187. mapping:
  188. - dps_val: null
  189. value: false
  190. - dps_val: 0
  191. value: false
  192. - value: true
  193. - entity: select
  194. name: Time mode
  195. icon: "mdi:clock-edit"
  196. category: config
  197. dps:
  198. - id: 119
  199. type: boolean
  200. name: option
  201. mapping:
  202. - dps_val: false
  203. value: 24h
  204. - dps_val: true
  205. value: 12h
  206. - entity: switch
  207. name: Date
  208. category: config
  209. dps:
  210. - id: 120
  211. type: boolean
  212. name: switch