motion_sensor_light.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: Motion Sensor Light
  2. products:
  3. - id: oapo5mmfbcr2y7ox
  4. name: Deta 360 Motion Sensor
  5. - id: 8mrw54ape8opgl69
  6. name: Deta Light Motion Sensor
  7. primary_entity:
  8. entity: light
  9. dps:
  10. - id: 101
  11. type: string
  12. name: effect
  13. mapping:
  14. - dps_val: mode_off
  15. value: "Off"
  16. - dps_val: mode_auto
  17. value: Auto
  18. - dps_val: mode_on
  19. value: "On"
  20. - id: 102
  21. type: boolean
  22. name: switch
  23. secondary_entities:
  24. - entity: number
  25. name: Sensitivity
  26. icon: "mdi:human-greeting-proximity"
  27. category: config
  28. dps:
  29. - id: 103
  30. type: integer
  31. name: value
  32. range:
  33. min: 0
  34. max: 100
  35. - entity: number
  36. name: Duration
  37. icon: "mdi:camera-timer"
  38. category: config
  39. dps:
  40. - id: 104
  41. type: integer
  42. name: value
  43. unit: s
  44. range:
  45. min: 0
  46. max: 900
  47. mapping:
  48. - step: 10
  49. - entity: number
  50. name: Light Level
  51. icon: "mdi:theme-light-dark"
  52. category: config
  53. dps:
  54. - id: 105
  55. type: integer
  56. name: value
  57. unit: lx
  58. range:
  59. min: 3
  60. max: 2000
  61. - entity: binary_sensor
  62. name: Detect
  63. category: diagnostic
  64. class: presence
  65. dps:
  66. - id: 106
  67. type: boolean
  68. name: sensor