holman_wx1_taptimer.yaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. name: Tap timer
  2. products:
  3. - id: zrsgzc8jktsricjj
  4. name: Holman WX1
  5. # DP decoding thanks to funtastix
  6. primary_entity:
  7. entity: valve
  8. name: Manual
  9. class: water
  10. dps:
  11. - id: 108
  12. type: boolean
  13. name: valve
  14. mapping:
  15. - dps_val: true
  16. value: false
  17. - dps_val: false
  18. value: true
  19. secondary_entities:
  20. - entity: switch
  21. name: Manual
  22. category: config
  23. deprecated: valve
  24. icon: "mdi:watering-can"
  25. dps:
  26. - id: 108
  27. type: boolean
  28. name: switch
  29. mapping:
  30. - dps_val: true
  31. value: false
  32. - dps_val: false
  33. value: true
  34. - entity: sensor
  35. name: Soil temperature
  36. class: temperature
  37. category: diagnostic
  38. dps:
  39. - id: 101
  40. name: sensor
  41. type: integer
  42. unit: C
  43. - id: 115
  44. name: sensor_present
  45. type: boolean
  46. - entity: sensor
  47. name: Soil moisture
  48. class: humidity
  49. category: diagnostic
  50. dps:
  51. - id: 102
  52. name: sensor
  53. type: integer
  54. unit: "%"
  55. - entity: sensor
  56. name: Water flow
  57. class: water
  58. category: diagnostic
  59. icon: "mdi:water"
  60. dps:
  61. - id: 103
  62. name: sensor
  63. type: integer
  64. unit: L
  65. - entity: sensor
  66. class: battery
  67. category: diagnostic
  68. dps:
  69. - id: 105
  70. type: integer
  71. name: sensor
  72. unit: "%"
  73. mapping:
  74. - dps_val: 0
  75. value: 10
  76. - dps_val: 1
  77. value: 50
  78. - dps_val: 2
  79. value: 100
  80. - entity: sensor
  81. translation_key: status
  82. class: enum
  83. category: diagnostic
  84. dps:
  85. - id: 106
  86. type: integer
  87. name: sensor
  88. mapping:
  89. - dps_val: 0
  90. value: idle
  91. - dps_val: 1
  92. value: manual
  93. - dps_val: 2
  94. value: auto
  95. - dps_val: 3
  96. value: rain_delay
  97. - entity: number
  98. translation_key: timer
  99. category: config
  100. dps:
  101. - id: 107
  102. type: integer
  103. name: value
  104. unit: min
  105. range:
  106. min: 0
  107. max: 60
  108. - entity: sensor
  109. translation_key: time_remaining
  110. class: duration
  111. category: diagnostic
  112. dps:
  113. - id: 109
  114. optional: true
  115. type: integer
  116. name: sensor
  117. unit: min
  118. - entity: sensor
  119. name: Start A encoded
  120. # this DP shows the start time, duration and days
  121. # for start A. Not controllable - use automation instead.
  122. category: diagnostic
  123. dps:
  124. - id: 110
  125. optional: true
  126. name: sensor
  127. type: base64
  128. - id: 110
  129. optional: true
  130. # flags for days of the week Sun-Sat, plus a bit for on/off
  131. name: days
  132. type: base64
  133. mask: "FF000000"
  134. - id: 110
  135. optional: true
  136. name: minutes_duration
  137. type: base64
  138. mask: "FF00000000"
  139. - id: 110
  140. optional: true
  141. name: hours_duration
  142. type: base64
  143. mask: "FF0000000000"
  144. - id: 110
  145. optional: true
  146. name: minutes_start
  147. type: base64
  148. mask: "FF000000000000"
  149. - id: 110
  150. optional: true
  151. name: hours_start
  152. type: base64
  153. mask: "FF00000000000000"
  154. - entity: sensor
  155. name: Start B encoded
  156. category: diagnostic
  157. dps:
  158. - id: 111
  159. optional: true
  160. name: sensor
  161. type: string
  162. - id: 111
  163. optional: true
  164. name: days
  165. type: base64
  166. mask: "FF000000"
  167. - id: 111
  168. optional: true
  169. name: minutes_duration
  170. type: base64
  171. mask: "FF00000000"
  172. - id: 111
  173. optional: true
  174. name: hours_duration
  175. type: base64
  176. mask: "FF0000000000"
  177. - id: 111
  178. optional: true
  179. name: minutes_start
  180. type: base64
  181. mask: "FF000000000000"
  182. - id: 111
  183. optional: true
  184. name: hours_start
  185. type: base64
  186. mask: "FF00000000000000"
  187. - entity: sensor
  188. name: Start C encoded
  189. category: diagnostic
  190. dps:
  191. - id: 112
  192. optional: true
  193. name: sensor
  194. type: string
  195. - id: 112
  196. optional: true
  197. name: days
  198. type: base64
  199. mask: "FF000000"
  200. - id: 112
  201. optional: true
  202. name: minutes_duration
  203. type: base64
  204. mask: "FF00000000"
  205. - id: 112
  206. optional: true
  207. name: hours_duration
  208. type: base64
  209. mask: "FF0000000000"
  210. - id: 112
  211. optional: true
  212. name: minutes_start
  213. type: base64
  214. mask: "FF000000000000"
  215. - id: 112
  216. optional: true
  217. name: hours_start
  218. type: base64
  219. mask: "FF00000000000000"
  220. - entity: select
  221. name: Watering delay
  222. translation_key: timer
  223. category: config
  224. dps:
  225. - id: 113
  226. name: option
  227. type: string
  228. mapping:
  229. - dps_val: 0
  230. value: cancel
  231. - dps_val: 24
  232. value: 24h
  233. - dps_val: 48
  234. value: 48h
  235. - dps_val: 72
  236. value: 72h
  237. - entity: select
  238. name: Time format
  239. category: config
  240. dps:
  241. - id: 114
  242. name: option
  243. type: string
  244. optional: true
  245. mapping:
  246. - dps_val: 12
  247. value: 12H
  248. - dps_val: 24
  249. value: 24H
  250. - entity: binary_sensor
  251. name: Soil sensor power OK
  252. category: diagnostic
  253. dps:
  254. - id: 117
  255. name: sensor
  256. type: boolean
  257. - entity: select
  258. name: Units
  259. category: config
  260. dps:
  261. - id: 119
  262. name: option
  263. type: string
  264. optional: true
  265. mapping:
  266. - dps_val: 1
  267. value: "l/C"
  268. - dps_val: 2
  269. value: "gal/F"
  270. - entity: sensor
  271. name: Alarm status
  272. category: diagnostic
  273. dps:
  274. - id: 120
  275. name: sensor
  276. type: integer
  277. - entity: sensor
  278. # past 10 days of flow count history.
  279. name: Flow count encoded
  280. category: diagnostic
  281. dps:
  282. - id: 121
  283. optional: true
  284. name: sensor
  285. type: base64
  286. - id: 121
  287. optional: true
  288. name: 10_days
  289. type: base64
  290. mask: "FF"
  291. - id: 121
  292. optional: true
  293. name: 10_days_256
  294. type: base64
  295. mask: "FF00"
  296. - id: 121
  297. optional: true
  298. name: 9_days
  299. type: base64
  300. mask: "FF0000"
  301. - id: 121
  302. optional: true
  303. name: 9_days_256
  304. type: base64
  305. mask: "FF000000"
  306. - id: 121
  307. optional: true
  308. name: 8_days
  309. type: base64
  310. mask: "FF00000000"
  311. - id: 121
  312. optional: true
  313. name: 8_days_256
  314. type: base64
  315. mask: "FF0000000000"
  316. - id: 121
  317. optional: true
  318. name: 7_days
  319. type: base64
  320. mask: "FF000000000000"
  321. - id: 121
  322. optional: true
  323. name: 7_days_256
  324. type: base64
  325. mask: "FF00000000000000"
  326. - id: 121
  327. optional: true
  328. name: 6_days
  329. type: base64
  330. mask: "FF0000000000000000"
  331. - id: 121
  332. optional: true
  333. name: 6_days_256
  334. type: base64
  335. mask: "FF000000000000000000"
  336. - id: 121
  337. optional: true
  338. name: 5_days
  339. type: base64
  340. mask: "FF00000000000000000000"
  341. - id: 121
  342. optional: true
  343. name: 5_days_256
  344. type: base64
  345. mask: "FF0000000000000000000000"
  346. - id: 121
  347. optional: true
  348. name: 4_days
  349. type: base64
  350. mask: "FF000000000000000000000000"
  351. - id: 121
  352. optional: true
  353. name: 4_days_256
  354. type: base64
  355. mask: "FF00000000000000000000000000"
  356. - id: 121
  357. optional: true
  358. name: 3_days
  359. type: base64
  360. mask: "FF0000000000000000000000000000"
  361. - id: 121
  362. optional: true
  363. name: 3_days_256
  364. type: base64
  365. mask: "FF000000000000000000000000000000"
  366. - id: 121
  367. optional: true
  368. name: 2_days
  369. type: base64
  370. mask: "FF00000000000000000000000000000000"
  371. - id: 121
  372. optional: true
  373. name: 2_days_256
  374. type: base64
  375. mask: "FF0000000000000000000000000000000000"
  376. - id: 121
  377. optional: true
  378. name: 1_day
  379. type: base64
  380. mask: "FF000000000000000000000000000000000000"
  381. - id: 121
  382. optional: true
  383. name: 1_day_256
  384. type: base64
  385. mask: "FF00000000000000000000000000000000000000"
  386. - entity: sensor
  387. name: Temperature count encoded
  388. category: diagnostic
  389. dps:
  390. - id: 122
  391. optional: true
  392. name: sensor
  393. type: base64
  394. - entity: sensor
  395. name: Moisture count encoded
  396. category: diagnostic
  397. dps:
  398. - id: 123
  399. optional: true
  400. name: sensor
  401. type: base64
  402. - entity: binary_sensor
  403. name: Postponed due to rain
  404. category: diagnostic
  405. dps:
  406. - id: 125
  407. name: sensor
  408. type: boolean
  409. - id: 116
  410. optional: true
  411. name: sensor_present
  412. type: boolean
  413. - entity: sensor
  414. # based on starts A, B and C
  415. name: Next watering encoded
  416. category: diagnostic
  417. dps:
  418. - id: 128
  419. optional: true
  420. name: sensor
  421. type: base64
  422. - id: 128
  423. optional: true
  424. name: minute
  425. type: base64
  426. mask: "FF"
  427. - id: 128
  428. optional: true
  429. name: hour
  430. type: base64
  431. mask: "FF00"
  432. - id: 128
  433. optional: true
  434. name: day
  435. type: base64
  436. mask: "FF0000"
  437. - id: 128
  438. optional: true
  439. name: month
  440. type: base64
  441. mask: "FF000000"
  442. - id: 128
  443. optional: true
  444. name: year
  445. type: base64
  446. mask: "FF00000000"