cecotec_fan_light.yaml 3.2 KB

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