dongguan_garage_door_opener.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Dongguan Pinjia Technology Co., Door Controller, PJ-WGDOOR01
  2. # Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact
  3. # 110V 240V Voice Control with Alexa Google Home
  4. # https://www.aliexpress.com/item/1005003913566298.html
  5. name: Garage opener
  6. products:
  7. - id: 1wwbzczt9hrtwqjr
  8. name: Dongguan PJ-WGDOOR01
  9. primary_entity:
  10. entity: cover
  11. class: garage
  12. dps:
  13. - id: 1
  14. type: boolean
  15. name: control
  16. optional: true # Sometimes this DP doesn't report state
  17. mapping:
  18. - dps_val: true
  19. value: open
  20. - dps_val: false
  21. value: close
  22. - id: 3
  23. type: boolean
  24. name: action
  25. mapping:
  26. - dps_val: true
  27. value: opened
  28. - dps_val: false
  29. value: closed
  30. secondary_entities:
  31. - entity: number
  32. name: Countdown
  33. translation_key: timer
  34. category: config
  35. dps:
  36. - id: 2
  37. <<: &timer
  38. type: integer
  39. name: value
  40. unit: s
  41. range:
  42. min: 0
  43. max: 86400
  44. - entity: number
  45. name: Run times
  46. icon: mdi:timer
  47. category: config
  48. dps:
  49. - id: 4
  50. type: integer
  51. name: value
  52. unit: s
  53. range:
  54. min: 10
  55. max: 120
  56. - entity: number
  57. name: Timeout alarm
  58. icon: mdi:timer-alert
  59. category: config
  60. dps:
  61. - id: 5
  62. <<: *timer
  63. - entity: sensor
  64. name: Fault
  65. icon: mdi:alert
  66. dps:
  67. - id: 12
  68. type: string
  69. name: sensor
  70. optional: true # Sometimes doesn't report state