CT20W_pir_motion_detector.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. name: Motion detector
  2. products:
  3. - id: ejptirvg36uwwdwu
  4. model: CT20W
  5. name: PIR motion detector
  6. entities:
  7. - entity: alarm_control_panel
  8. dps:
  9. - id: 110
  10. type: string
  11. name: alarm_state
  12. mapping:
  13. - dps_val: disarm
  14. value: disarmed
  15. - dps_val: away
  16. value: armed_away
  17. - dps_val: stay
  18. value: armed_home
  19. - entity: binary_sensor
  20. class: motion
  21. dps:
  22. - id: 6
  23. type: string
  24. name: sensor
  25. mapping:
  26. - dps_val: none
  27. value: false
  28. - dps_val: pir
  29. value: true
  30. - entity: sensor
  31. class: battery
  32. dps:
  33. - id: 2
  34. type: integer
  35. name: sensor
  36. unit: "%"
  37. - entity: binary_sensor
  38. class: plug
  39. dps:
  40. - id: 102
  41. type: boolean
  42. name: sensor
  43. - entity: number
  44. name: Alarm duration
  45. class: duration
  46. category: config
  47. icon: "mdi:timer"
  48. dps:
  49. - id: 106
  50. type: integer
  51. name: value
  52. unit: s
  53. range:
  54. min: 0
  55. max: 300
  56. - entity: select
  57. name: Alert option
  58. icon: "mdi:settings"
  59. category: config
  60. dps:
  61. - id: 107
  62. type: string
  63. name: option
  64. mapping:
  65. - dps_val: "OnlySound_mode"
  66. value: "Sound only"
  67. - dps_val: "OnlyLight_mode"
  68. value: "Light only"
  69. - dps_val: "SoundLight_mode"
  70. value: "Sound and light"
  71. - dps_val: "Mute_mode"
  72. value: "Mute"