moes_motionsensor_switch.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # Example DPS Status
  2. # {"dps": { "1": false, "14": "memory", "15": "relay", "43": false, "44": "on",
  3. # "45": "default", "46": true, "47": "on", "48": "high", "49": 3600, "101": 0,
  4. # "102": 0}
  5. # Additional DPS 44 "Illuminance State" and 47 "Motion State". I couldn't
  6. # figure out what those did, device debugger appears to indicate that these
  7. # were set exactly once (to "on") when the switch was powered on and does NOT
  8. # seem to trigger or respond when Illuminance or Motion trigger is met, but
  9. # maybe I just don't know how to check that well. A final DPS shows up only in
  10. # the Tuya Cloud API: 103 "Timer". There are "timers" in the Smart Life App for
  11. # this device but I couldn't figure out how they work.
  12. # Illuminance Switch: Enables/disables illuminance threshold for motion
  13. # activation
  14. # Motion Switch: Enables/disables motion-triggered switch
  15. # Motion Auto-Off Delay: Time in seconds after which to turn off light if
  16. # triggered by motion
  17. # Appointment Time: Time of day in minutes when motion switch stops activating,
  18. # 0 for always
  19. # Target Time: Time of day in minutes when motion switch can activate, 0 for
  20. # always
  21. name: MOES Motion Sensor Smart Switch
  22. products:
  23. - id: vd5jgg8vgdbaqerq
  24. primary_entity:
  25. entity: switch
  26. dps:
  27. - id: 1
  28. name: switch
  29. type: boolean
  30. secondary_entities:
  31. - entity: select
  32. category: config
  33. name: Restore power state
  34. dps:
  35. - id: 14
  36. name: option
  37. type: string
  38. mapping:
  39. - dps_val: memory
  40. value: Remember Last Status
  41. - dps_val: "on"
  42. value: "On"
  43. - dps_val: "off"
  44. value: "Off"
  45. - entity: select
  46. name: Indicator Light
  47. category: config
  48. dps:
  49. - id: 15
  50. name: option
  51. type: string
  52. mapping:
  53. - dps_val: none
  54. value: Indicator LED off
  55. - dps_val: relay
  56. value: Indicate switch on/off
  57. - entity: switch
  58. name: Illuminance Switch
  59. dps:
  60. - id: 43
  61. name: switch
  62. type: boolean
  63. - entity: select
  64. name: Illuminance Threshold
  65. category: config
  66. dps:
  67. - id: 45
  68. name: option
  69. type: string
  70. mapping:
  71. - dps_val: default
  72. value: Default Threshold
  73. - dps_val: now
  74. value: Current Illuminance
  75. - entity: switch
  76. name: Motion Switch
  77. dps:
  78. - id: 46
  79. name: switch
  80. type: boolean
  81. - entity: select
  82. name: Motion Sensitivity
  83. category: config
  84. dps:
  85. - id: 48
  86. name: option
  87. type: string
  88. mapping:
  89. - dps_val: "low"
  90. value: "Low"
  91. - dps_val: "middle"
  92. value: "Medium"
  93. - dps_val: "high"
  94. value: "High"
  95. - entity: number
  96. name: Motion Auto-Off Delay
  97. category: config
  98. dps:
  99. - id: 49
  100. name: option
  101. type: integer
  102. unit: s
  103. range:
  104. min: 5
  105. max: 3600
  106. - entity: number
  107. name: Appointment Time
  108. category: config
  109. dps:
  110. - id: 101
  111. name: option
  112. type: integer
  113. unit: min
  114. range:
  115. min: 0
  116. max: 1440
  117. - entity: number
  118. name: Target Time
  119. category: config
  120. dps:
  121. - id: 102
  122. name: option
  123. type: integer
  124. unit: min
  125. range:
  126. min: 0
  127. max: 1440