4
0

motion_sensor_light.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. - id: pxyhz90upglpoedu
  8. name: Arlec MAL315HA
  9. entities:
  10. - entity: light
  11. dps:
  12. - id: 101
  13. type: string
  14. name: effect
  15. mapping:
  16. - dps_val: mode_off
  17. value: "off"
  18. - dps_val: mode_auto
  19. value: auto
  20. - dps_val: mode_on
  21. value: "on"
  22. - id: 102
  23. type: boolean
  24. name: switch
  25. readonly: true
  26. - entity: switch
  27. name: Auto mode
  28. icon: "mdi:motion-sensor"
  29. dps:
  30. - id: 101
  31. type: string
  32. name: switch
  33. mapping:
  34. - dps_val: mode_auto
  35. value: true
  36. - dps_val: mode_on
  37. constraint: relay
  38. conditions:
  39. - dps_val: true
  40. value: false
  41. - dps_val: mode_off
  42. constraint: relay
  43. conditions:
  44. - dps_val: false
  45. value: false
  46. - id: 102
  47. name: relay
  48. type: boolean
  49. readonly: true
  50. hidden: true
  51. - entity: number
  52. name: Sensitivity
  53. icon: "mdi:human-greeting-proximity"
  54. category: config
  55. dps:
  56. - id: 103
  57. type: integer
  58. name: value
  59. range:
  60. min: 0
  61. max: 4
  62. mapping:
  63. - invert: true
  64. - entity: number
  65. icon: "mdi:camera-timer"
  66. class: duration
  67. category: config
  68. dps:
  69. - id: 104
  70. type: integer
  71. name: value
  72. unit: s
  73. range:
  74. min: 10
  75. max: 900
  76. mapping:
  77. - step: 10
  78. - entity: number
  79. name: Light level
  80. icon: "mdi:theme-light-dark"
  81. category: config
  82. class: illuminance
  83. dps:
  84. - id: 105
  85. type: integer
  86. name: value
  87. unit: lx
  88. range:
  89. min: 0
  90. max: 3900
  91. mapping:
  92. - invert: true
  93. - entity: switch
  94. name: Auto reset
  95. category: config
  96. dps:
  97. - id: 106
  98. type: boolean
  99. name: switch