moesgo_dimmer.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: Dimmer switch
  2. products:
  3. - id: bf450789b46e8ff48f9n6r
  4. manufacturer: MoesGo
  5. entities:
  6. - entity: light
  7. dps:
  8. - id: 1
  9. type: boolean
  10. name: switch
  11. - id: 2
  12. name: brightness
  13. type: integer
  14. range:
  15. min: 10
  16. max: 1000
  17. - entity: number
  18. name: Minimum brightness
  19. category: config
  20. icon: "mdi:brightness-percent"
  21. dps:
  22. - id: 3
  23. type: integer
  24. name: value
  25. unit: "%"
  26. range:
  27. min: 10
  28. max: 1000
  29. mapping:
  30. - scale: 10
  31. - entity: select
  32. name: Light type
  33. icon: "mdi:lightbulb-question"
  34. category: config
  35. dps:
  36. - id: 4
  37. type: string
  38. name: option
  39. mapping:
  40. - dps_val: led
  41. value: LED
  42. - dps_val: incandescent
  43. value: Incandescent
  44. - dps_val: halogen
  45. value: Halogen
  46. - entity: number
  47. translation_key: timer
  48. class: duration
  49. category: config
  50. dps:
  51. - id: 6
  52. type: integer
  53. name: value
  54. unit: s
  55. range:
  56. min: 0
  57. max: 86400
  58. - entity: select
  59. translation_key: initial_state
  60. category: config
  61. dps:
  62. - id: 14
  63. type: string
  64. name: option
  65. optional: true
  66. mapping:
  67. - dps_val: "off"
  68. value: "off"
  69. - dps_val: "on"
  70. value: "on"
  71. - dps_val: memory
  72. value: memory
  73. - entity: light
  74. translation_key: backlight
  75. category: config
  76. dps:
  77. - id: 26
  78. type: boolean
  79. name: switch