cecotec_fan_light.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. name: Fan with light
  2. products:
  3. - id: 9uydeea5iojq3msy
  4. name: Cecotec AQUA CONNECTED
  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
  17. value: nature
  18. - dps_val: sleep
  19. value: sleep
  20. - dps_val: fresh
  21. value: fresh
  22. - dps_val: smart
  23. value: smart
  24. - dps_val: custom
  25. value: custom
  26. - id: 3
  27. name: speed
  28. type: string
  29. range:
  30. min: 1
  31. max: 6
  32. mapping:
  33. - dps_val: "1"
  34. value: 17
  35. - dps_val: "2"
  36. value: 33
  37. - dps_val: "3"
  38. value: 50
  39. - dps_val: "4"
  40. value: 67
  41. - dps_val: "5"
  42. value: 83
  43. - dps_val: "6"
  44. value: 100
  45. - id: 8
  46. name: direction
  47. type: string
  48. secondary_entities:
  49. - entity: light
  50. dps:
  51. - id: 15
  52. type: boolean
  53. name: switch
  54. # I comment this features because that are reported by device but
  55. # does nothing with it.
  56. #
  57. # {"abilityId":16,"accessMode":"rw","code":"bright_value",
  58. # "description":"","name":"灯光亮度",
  59. # "typeSpec":{"max":100,"min":1,"scale":0,"step":1,"type":"value",
  60. # "typeDefaultValue":1,"unit":""}},
  61. # {"abilityId":17,"accessMode":"rw","code":"temp_value",
  62. # "description":"","name":"灯光色温",
  63. # "typeSpec":{"max":100,"min":0,"scale":0,"step":1,"type":"value",
  64. # "typeDefaultValue":0,"unit":""}},
  65. # {"abilityId":19,"accessMode":"rw","code":"work_mode",
  66. # "description":"","name":"灯光模式",
  67. # "typeSpec":{"range":["white","warm","cold","night"],"type":"enum",
  68. # "typeDefaultValue":"white"}},
  69. #
  70. #
  71. # - id: 16
  72. # type: integer
  73. # name: brightness
  74. # range:
  75. # min: 25
  76. # max: 255
  77. # - id: 17
  78. # type: integer
  79. # name: color_temp
  80. # range:
  81. # min: 0
  82. # max: 255
  83. # - id: 19
  84. # type: string
  85. # name: color_mode
  86. # optional: true
  87. # mapping:
  88. # - dps_val: white
  89. # value: white
  90. # - dps_val: warm
  91. # value: warm
  92. # - dps_val: cold
  93. # value: cold
  94. # - dps_val: night
  95. # value: night
  96. - entity: select
  97. name: timer
  98. icon: "mdi:timer"
  99. dps:
  100. - id: 22
  101. name: option
  102. type: string
  103. mapping:
  104. - dps_val: "cancel"
  105. value: "cancel"
  106. - dps_val: "1h"
  107. value: "1 hours"
  108. - dps_val: "2h"
  109. value: "2 hours"
  110. - dps_val: "3h"
  111. value: "3 hours"
  112. - dps_val: "4h"
  113. value: "4 hours"
  114. - dps_val: "5h"
  115. value: "5 hours"
  116. - dps_val: "6h"
  117. value: "6 hours"
  118. - dps_val: "7h"
  119. value: "7 hours"
  120. - dps_val: "8h"
  121. value: "8 hours"