holman_wx1_taptimer.yaml 10 KB

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