cpvan_cp2w_alarm.yaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. name: Alarm system
  2. products:
  3. - id: ito65xcfxhrkiya7
  4. manufacturer: CPVAN
  5. model: CP2W
  6. entities:
  7. - entity: alarm_control_panel
  8. dps:
  9. - id: 1
  10. type: string
  11. name: alarm_state
  12. mapping:
  13. - dps_val: disarmed
  14. value: disarmed
  15. - dps_val: arm
  16. value: armed_away
  17. - dps_val: home
  18. value: armed_home
  19. - dps_val: sos
  20. value: triggered
  21. - id: 33
  22. type: string
  23. optional: true
  24. name: information
  25. - entity: number
  26. name: Exit delay
  27. category: config
  28. class: duration
  29. icon: "mdi:location-exit"
  30. dps:
  31. - id: 2
  32. type: integer
  33. name: value
  34. unit: s
  35. range:
  36. min: 0
  37. max: 300
  38. - entity: number
  39. name: Entry delay
  40. category: config
  41. class: duration
  42. icon: "mdi:location-enter"
  43. dps:
  44. - id: 28
  45. type: integer
  46. optional: true
  47. name: value
  48. unit: s
  49. range:
  50. min: 0
  51. max: 300
  52. - entity: siren
  53. dps:
  54. - id: 3
  55. type: integer
  56. name: duration
  57. unit: s
  58. range:
  59. min: 1
  60. max: 256
  61. - id: 4
  62. type: boolean
  63. name: switch
  64. - id: 5
  65. type: string
  66. name: volume_level
  67. mapping:
  68. - dps_val: mute
  69. value: 0
  70. - dps_val: vol_1
  71. value: 0.25
  72. - dps_val: vol_2
  73. value: 0.5
  74. - dps_val: vol_3
  75. value: 0.75
  76. - dps_val: vol_4
  77. value: 1.0
  78. - id: 8
  79. type: string
  80. name: tone
  81. mapping:
  82. - dps_val: ringtone_1
  83. value: Alarm 1
  84. - dps_val: ringtone_2
  85. value: Alarm 2
  86. - dps_val: ringtone_3
  87. value: Alarm 3
  88. - dps_val: ringtone_4
  89. value: Alarm 4
  90. - dps_val: ringtone_5
  91. value: Alarm 5
  92. - entity: light
  93. name: Alarm
  94. category: config
  95. dps:
  96. - id: 6
  97. type: boolean
  98. name: switch
  99. - entity: switch
  100. translation_key: keytone
  101. category: config
  102. dps:
  103. - id: 12
  104. type: boolean
  105. optional: true
  106. name: switch
  107. - entity: binary_sensor
  108. class: battery_charging
  109. category: diagnostic
  110. dps:
  111. - id: 15
  112. type: boolean
  113. name: sensor
  114. - entity: sensor
  115. class: battery
  116. category: diagnostic
  117. dps:
  118. - id: 16
  119. type: integer
  120. name: sensor
  121. unit: "%"
  122. - entity: alarm_control_panel
  123. name: Zone
  124. hidden: true
  125. dps:
  126. - id: 24
  127. type: string
  128. optional: true
  129. name: alarm_state
  130. mapping:
  131. - dps_val: disarmed
  132. value: disarmed
  133. - dps_val: arm
  134. value: armed_away
  135. - dps_val: home
  136. value: armed_home
  137. - dps_val: SOS
  138. value: triggered
  139. - dps_val: welcome
  140. value: armed_custom_bypass
  141. - entity: event
  142. name: Alarm
  143. dps:
  144. - id: 26
  145. type: string
  146. name: event
  147. optional: true
  148. mapping:
  149. - dps_val: null
  150. value: null
  151. - dps_val: ""
  152. value: null
  153. - value: triggered
  154. - id: 26
  155. type: utf16b64
  156. optional: true
  157. name: message
  158. - entity: switch
  159. name: Alarm notifications
  160. icon: "mdi:message-alert"
  161. category: config
  162. dps:
  163. - id: 27
  164. type: boolean
  165. name: switch
  166. - id: 101
  167. type: string
  168. name: last_message
  169. - entity: binary_sensor
  170. class: sound
  171. name: Alarm
  172. category: diagnostic
  173. dps:
  174. - id: 32
  175. type: string
  176. optional: true
  177. name: sensor
  178. mapping:
  179. - dps_val: alarm
  180. value: true
  181. - value: false
  182. - entity: select
  183. name: Sub class
  184. icon: "mdi:shield-home"
  185. category: config
  186. hidden: true
  187. dps:
  188. - id: 36
  189. type: string
  190. optional: true
  191. name: option
  192. mapping:
  193. - dps_val: detector
  194. value: detector
  195. - dps_val: remote_controller
  196. value: remote_controller
  197. - entity: select
  198. name: Sub type
  199. icon: "mdi:shield-home"
  200. category: config
  201. hidden: true
  202. dps:
  203. - id: 37
  204. type: string
  205. optional: true
  206. name: option
  207. mapping:
  208. - dps_val: motion_sensor
  209. value: motion_sensor
  210. - dps_val: contact_sensor
  211. value: contact_sensor
  212. - dps_val: smoke_alarm
  213. value: smoke_alarm
  214. - dps_val: gas_alarm
  215. value: gas_alarm
  216. - dps_val: co_alarm
  217. value: co_alarm
  218. - dps_val: vibration_detector
  219. value: vibration_detector
  220. - dps_val: water_leak_sensor
  221. value: water_leak_sensor
  222. - dps_val: infrared_emission_detector
  223. value: ir_detector
  224. - dps_val: glass_break_detector
  225. value: glass_break_detector
  226. - dps_val: sos_button
  227. value: sos_button
  228. - dps_val: remote_controller
  229. value: remote_controller
  230. - dps_val: keypad
  231. value: keypad
  232. - dps_val: doorbell
  233. value: doorbell
  234. - dps_val: door_lock
  235. value: door_lock
  236. - dps_val: rfid
  237. value: rfid
  238. - dps_val: alarm
  239. value: siren
  240. - dps_val: environment_detector
  241. value: environment_detector
  242. - dps_val: others
  243. value: other
  244. - entity: text
  245. name: Sub admin
  246. category: config
  247. icon: "mdi:shield-home"
  248. hidden: true
  249. dps:
  250. - id: 38
  251. type: base64
  252. optional: true
  253. name: value
  254. - entity: sensor
  255. name: Sub state
  256. class: enum
  257. category: diagnostic
  258. hidden: true
  259. dps:
  260. - id: 39
  261. type: string
  262. optional: true
  263. name: sensor
  264. mapping:
  265. - dps_val: normal
  266. value: normal
  267. - dps_val: alarm
  268. value: alarm
  269. - dps_val: fault
  270. value: fault
  271. - dps_val: others
  272. value: other
  273. - entity: select
  274. translation_key: language
  275. category: config
  276. dps:
  277. - id: 40
  278. type: string
  279. name: option
  280. mapping:
  281. - dps_val: chinese_simplified
  282. value: chinese
  283. - dps_val: chinese_traditional
  284. value: chinese_traditional
  285. - dps_val: english
  286. value: english
  287. - dps_val: french
  288. value: french
  289. - dps_val: italian
  290. value: italian
  291. - dps_val: german
  292. value: german
  293. - dps_val: spanish
  294. value: spanish
  295. - dps_val: portuguese
  296. value: portuguese
  297. - dps_val: russian
  298. value: russian
  299. - dps_val: japanese
  300. value: japanese
  301. - entity: sensor
  302. name: State detection
  303. category: diagnostic
  304. hidden: true
  305. dps:
  306. - id: 102
  307. type: base64
  308. optional: true
  309. name: sensor
  310. - entity: sensor
  311. name: Alarm detection
  312. category: diagnostic
  313. hidden: true
  314. dps:
  315. - id: 103
  316. type: base64
  317. optional: true
  318. name: sensor
  319. - entity: sensor
  320. name: Open detection
  321. category: diagnostic
  322. hidden: true
  323. dps:
  324. - id: 104
  325. type: base64
  326. optional: true
  327. name: sensor
  328. - entity: binary_sensor
  329. class: power
  330. category: diagnostic
  331. dps:
  332. - id: 105
  333. type: boolean
  334. optional: true
  335. name: sensor
  336. mapping:
  337. - dps_val: true
  338. value: false
  339. - value: true
  340. - entity: binary_sensor
  341. class: battery
  342. category: diagnostic
  343. dps:
  344. - id: 106
  345. type: boolean
  346. optional: true
  347. name: sensor
  348. mapping:
  349. - dps_val: null
  350. value: false