nexsmart_watch2_camera.yaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. name: Camera
  2. products:
  3. # The product ID (or product_id) from your device information
  4. - id: j0gmpjxe9pvqnsqx
  5. manufacturer: Nexsmart
  6. model: WATCH 2
  7. entities:
  8. # ------------------------------------
  9. # 1. Main Camera & Snapshot
  10. # ------------------------------------
  11. - entity: switch
  12. name: Motion detection
  13. icon: "mdi:motion-sensor"
  14. category: config
  15. # Motion Detection Switch (matches motion_switch: 134)
  16. dps:
  17. - id: 134
  18. name: switch
  19. type: boolean
  20. optional: true
  21. - entity: switch
  22. name: SD card recording
  23. icon: "mdi:video-outline"
  24. category: config
  25. # Recording Switch (matches record_switch: 150)
  26. dps:
  27. - id: 150
  28. name: switch
  29. type: boolean
  30. optional: true
  31. - entity: event
  32. name: Camera
  33. category: diagnostic
  34. icon: "mdi:camera-burst"
  35. # Snapshot trigger (matches movement_detect_pic: 115)
  36. dps:
  37. - id: 115
  38. name: event
  39. type: base64
  40. optional: true
  41. sensitive: true
  42. mapping:
  43. - dps_val: null
  44. value: null
  45. - value: captured
  46. - id: 115
  47. name: snapshot_data
  48. type: base64
  49. optional: true
  50. sensitive: true
  51. # ------------------------------------
  52. # 2. Battery and Power
  53. # ------------------------------------
  54. # WIRED Camera so no "battery" sensors are present!
  55. # ------------------------------------
  56. # 3. Basic Configuration
  57. # ------------------------------------
  58. - entity: light
  59. translation_key: indicator
  60. category: config
  61. # Basic Indicator (matches basic_indicator: 101)
  62. dps:
  63. - id: 101
  64. type: boolean
  65. name: switch
  66. - entity: switch
  67. translation_key: flip_image
  68. category: config
  69. # Flip Image Switch (matches basic_flip: 103)
  70. dps:
  71. - id: 103
  72. type: boolean
  73. name: switch
  74. - entity: switch
  75. name: Watermark
  76. icon: "mdi:watermark"
  77. category: config
  78. # Watermark/OSD Switch (matches basic_osd: 104)
  79. dps:
  80. - id: 104
  81. type: boolean
  82. name: switch
  83. optional: true
  84. - entity: select
  85. name: Night vision
  86. icon: "mdi:weather-night"
  87. category: config
  88. # Night Vision Mode Selector (matches basic_nightvision: 108)
  89. dps:
  90. - id: 108
  91. type: string
  92. name: option
  93. optional: true
  94. mapping:
  95. - dps_val: "0"
  96. value: Auto
  97. - dps_val: "1"
  98. value: "Off"
  99. - dps_val: "2"
  100. value: "On"
  101. # ------------------------------------
  102. # 4. Detection & Alarm
  103. # ------------------------------------
  104. - entity: select
  105. translation_key: motion_sensitivity
  106. category: config
  107. # Motion Sensitivity Selector (matches motion_sensitivity: 106)
  108. dps:
  109. - id: 106
  110. type: string
  111. name: option
  112. optional: true
  113. mapping:
  114. - dps_val: "0"
  115. value: low
  116. - dps_val: "1"
  117. value: medium
  118. - dps_val: "2"
  119. value: high
  120. - entity: switch
  121. name: Motion alarm area
  122. icon: "mdi:crop"
  123. category: config
  124. # Motion Area Switch (matches motion_area_switch: 168)
  125. dps:
  126. - id: 168
  127. type: boolean
  128. name: switch
  129. optional: true
  130. - entity: text
  131. name: Motion alarm area
  132. icon: "mdi:crop"
  133. category: config
  134. hidden: true
  135. # Motion Area String Data (matches motion_area: 169)
  136. dps:
  137. - id: 169
  138. type: base64
  139. name: value
  140. optional: true
  141. - entity: switch
  142. name: Sound detection
  143. category: config
  144. icon: "mdi:ear-hearing"
  145. # Decibel Switch (matches decibel_switch: 139)
  146. dps:
  147. - id: 139
  148. type: boolean
  149. name: switch
  150. optional: true
  151. # Decibel Upload Data (matches decibel_upload: 141)
  152. - id: 141
  153. type: string
  154. name: upload_timestamp
  155. optional: true
  156. - entity: select
  157. name: Sound sensitivity
  158. icon: "mdi:ear-hearing"
  159. category: config
  160. # Decibel Sensitivity Selector (matches decibel_sensitivity: 140)
  161. dps:
  162. - id: 140
  163. type: string
  164. name: option
  165. mapping:
  166. - dps_val: "0"
  167. value: Low
  168. - dps_val: "1"
  169. value: High
  170. # ------------------------------------
  171. # 5. Alarm Mode & Linkage
  172. # ------------------------------------
  173. # Does not exist in V2
  174. # ------------------------------------
  175. # 6. Lights & Sirens
  176. # ------------------------------------
  177. # Does not exist in V2
  178. # ------------------------------------
  179. # 7. SD Card and Storage
  180. # ------------------------------------
  181. - entity: sensor
  182. name: SD capacity
  183. category: diagnostic
  184. icon: "mdi:micro-sd"
  185. # SD Capacity Sensor (matches sd_storge: 109)
  186. dps:
  187. - id: 109
  188. type: string
  189. name: sensor
  190. optional: true
  191. - entity: sensor
  192. name: SD status
  193. class: enum
  194. category: diagnostic
  195. icon: "mdi:micro-sd"
  196. # SD Status Sensor (matches sd_status: 110)
  197. dps:
  198. - id: 110
  199. type: integer
  200. name: sensor
  201. optional: true
  202. mapping:
  203. - dps_val: 1
  204. value: normal
  205. - dps_val: 2
  206. value: fault
  207. - dps_val: 3
  208. value: full
  209. - dps_val: 4
  210. value: formatting
  211. - dps_val: 5
  212. value: missing
  213. - dps_val: null
  214. value: normal
  215. - entity: button
  216. name: SD format
  217. category: config
  218. icon: "mdi:micro-sd"
  219. # SD Format Button (matches sd_format: 111) and Status (117)
  220. dps:
  221. - id: 111
  222. type: boolean
  223. name: button
  224. optional: true
  225. persist: false
  226. - id: 117
  227. type: integer
  228. name: state
  229. optional: true
  230. persist: false
  231. mapping:
  232. - dps_val: 0
  233. value: Ready
  234. - dps_val: 2000
  235. value: Formatting
  236. - dps_val: 2001
  237. value: Format failed
  238. - dps_val: 2002
  239. value: Card missing
  240. - dps_val: 2003
  241. value: Card error
  242. - dps_val: null
  243. value: Formatted
  244. - entity: select
  245. name: Recording mode
  246. icon: "mdi:file-video"
  247. category: config
  248. # Recording Mode Selector (matches record_mode: 151)
  249. dps:
  250. - id: 151
  251. type: string
  252. name: option
  253. optional: true
  254. mapping:
  255. - dps_val: "1"
  256. value: Event
  257. - dps_val: "2"
  258. value: Continuous
  259. # ------------------------------------
  260. # 8. Advanced / ONVIF
  261. # ------------------------------------
  262. - entity: switch
  263. name: ONVIF stream
  264. category: config
  265. # ONVIF Switch (matches onvif_switch: 255)
  266. dps:
  267. - id: 255
  268. type: boolean
  269. name: switch
  270. optional: true
  271. - entity: sensor
  272. name: ONVIF IP address
  273. category: diagnostic
  274. icon: "mdi:ip-network"
  275. # ONVIF IP Address (matches onvif_ip_addr: 254)
  276. dps:
  277. - id: 254
  278. type: string
  279. name: sensor
  280. sensitive: true
  281. optional: true
  282. - entity: text
  283. name: ONVIF password change
  284. category: config
  285. icon: "mdi:lock-reset"
  286. hidden: true
  287. # ONVIF Password Change (matches onvif_change_pwd: 253)
  288. dps:
  289. - id: 253
  290. type: string
  291. name: value
  292. sensitive: true
  293. optional: true