moesgo_dimmer.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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: min
  55. range:
  56. min: 0
  57. max: 86400
  58. mapping:
  59. - scale: 60
  60. step: 60
  61. - entity: select
  62. translation_key: initial_state
  63. category: config
  64. dps:
  65. - id: 14
  66. type: string
  67. name: option
  68. optional: true
  69. mapping:
  70. - dps_val: "off"
  71. value: "off"
  72. - dps_val: "on"
  73. value: "on"
  74. - dps_val: memory
  75. value: memory
  76. - entity: light
  77. translation_key: backlight
  78. category: config
  79. dps:
  80. - id: 26
  81. type: boolean
  82. name: switch