em3378_weather_station.yaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. name: Weather Station
  2. product:
  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: false
  21. value: C
  22. - dps_val: true
  23. value: F
  24. - id: 117
  25. name: fault
  26. type: bitfield
  27. optional: true
  28. # we need to know 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. name: Atmospheric pressure
  142. class: atmospheric_pressure
  143. category: diagnostic
  144. dps:
  145. - id: 110
  146. type: integer
  147. name: sensor
  148. class: measurement
  149. - id: 111
  150. type: string
  151. name: unit
  152. - entity: select
  153. name: Atmospheric pressure unit
  154. icon: "mdi:gauge"
  155. category: config
  156. dps:
  157. - id: 111
  158. type: string
  159. name: option
  160. mapping:
  161. - dps_val: mmHg
  162. value: mm of mercury
  163. - dps_val: hPa
  164. value: millibars
  165. - dps_val: inHg
  166. value: inches of mercury
  167. - entity: select
  168. name: Temperature unit
  169. icon: "mdi:temperature-celsius"
  170. category: config
  171. dps:
  172. - id: 112
  173. type: string
  174. name: option
  175. mapping:
  176. - dps_val: false
  177. value: Celsius
  178. - dps_val: true
  179. value: Fahrenheit
  180. - entity: binary_sensor
  181. name: Fault
  182. class: problem
  183. category: diagnostic
  184. dps:
  185. - id: 117
  186. type: boolean
  187. name: sensor
  188. optional: true
  189. persist: false
  190. mapping:
  191. - dps_val: null
  192. value: false
  193. - dps_val: 0
  194. value: false
  195. - value: true
  196. - entity: select
  197. name: Time mode
  198. icon: "mdi:clock-edit"
  199. category: config
  200. dps:
  201. - id: 119
  202. type: string
  203. name: option
  204. mapping:
  205. - dps_val: true
  206. value: 24h
  207. - dps_val: false
  208. value: 12h
  209. - entity: switch
  210. name: Date
  211. category: config
  212. dps:
  213. - id: 1
  214. type: boolean
  215. name: switch