casafan_ceiling_fan_light.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. name: Ceiling fan and light
  2. products:
  3. - id: qx9ovwpe9isccpb6
  4. name: Casafan ECO Neo III
  5. primary_entity:
  6. entity: fan
  7. translation_key: fan_with_presets
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 2
  13. type: string
  14. name: preset_mode
  15. mapping:
  16. - dps_val: nature_off
  17. value: normal
  18. - dps_val: nature_Low
  19. value: nature
  20. - dps_val: nature_Hi
  21. value: strong
  22. - id: 3
  23. type: integer
  24. name: speed
  25. range:
  26. min: 1
  27. max: 6
  28. mapping:
  29. - scale: 0.06
  30. - id: 8
  31. type: string
  32. name: direction
  33. secondary_entities:
  34. - entity: light
  35. dps:
  36. - id: 15
  37. type: boolean
  38. name: switch
  39. - id: 16
  40. name: brightness
  41. type: integer
  42. range:
  43. min: 10
  44. max: 100
  45. mapping:
  46. - scale: 0.392
  47. - id: 17
  48. # 17 is listed as color_temp, and reported by the device, but light
  49. # is fixed 3000K light
  50. name: reserved_color_temp
  51. type: integer
  52. range:
  53. min: 0
  54. max: 100
  55. - entity: select
  56. name: Timer
  57. icon: "mdi:timer"
  58. category: config
  59. dps:
  60. - id: 22
  61. type: string
  62. name: option
  63. mapping:
  64. - dps_val: cancel
  65. value: "Off"
  66. - dps_val: "1h"
  67. value: "1 hour"
  68. - dps_val: "2h"
  69. value: "2 hours"
  70. - dps_val: "3h"
  71. value: "3 hours"
  72. - dps_val: "4h"
  73. value: "4 hours"
  74. - dps_val: "5h"
  75. value: "5 hours"
  76. - dps_val: "6h"
  77. value: "6 hours"