holman_wx1_taptimer.yaml 10 KB

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