motion_sensor_light.yaml 2.1 KB

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