yx316wifi_aroma_diffuser.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # DPS sample: { "1": true, "2": true, "3": "MID", "7": true, "8": 1000,
  2. # "9": "colourful1", "10": "", "11": 0 }
  3. name: Aroma diffuser with lamp
  4. products:
  5. - id: arkdxfhlkpdyof9x
  6. model: YX316WIFI
  7. entities:
  8. - entity: fan
  9. translation_key: aroma_diffuser
  10. dps:
  11. - id: 2
  12. name: switch
  13. type: boolean
  14. - id: 3
  15. type: string
  16. name: preset_mode
  17. mapping:
  18. - dps_val: "MID"
  19. value: "medium"
  20. - dps_val: "2H"
  21. value: "low"
  22. - dps_val: "4H"
  23. value: "high"
  24. - dps_val: "10SEC"
  25. value: "intermittent"
  26. # "master" switch - turns on and off both light and diffuser
  27. - entity: switch
  28. name: Power
  29. dps:
  30. - id: 1
  31. name: switch
  32. type: boolean
  33. - entity: light
  34. icon: "mdi:light-recessed"
  35. dps:
  36. - id: 7
  37. name: switch
  38. type: boolean
  39. - id: 9
  40. name: color_mode
  41. type: string
  42. mapping:
  43. - dps_val: white
  44. value: white
  45. - dps_val: colour
  46. value: hs
  47. - dps_val: colourful1
  48. value: Colorful
  49. - id: 8
  50. name: brightness
  51. type: integer
  52. range:
  53. min: 10
  54. max: 1000
  55. - id: 10
  56. name: rgbhsv
  57. type: hex
  58. format:
  59. - name: r
  60. bytes: 1
  61. - name: g
  62. bytes: 1
  63. - name: b
  64. bytes: 1
  65. - name: h
  66. bytes: 2
  67. range:
  68. min: 0
  69. max: 360
  70. - name: s
  71. bytes: 1
  72. range:
  73. min: 0
  74. max: 255
  75. - name: v
  76. bytes: 1
  77. range:
  78. min: 0
  79. max: 255
  80. - entity: switch
  81. name: Sound
  82. category: config
  83. dps:
  84. - id: 6
  85. type: boolean
  86. name: switch
  87. optional: true
  88. mapping:
  89. - dps_val: true
  90. icon: "mdi:speaker"
  91. - dps_val: false
  92. icon: "mdi:speaker-off"
  93. - dps_val: null
  94. icon: "mdi:speaker-off"
  95. value: false
  96. hidden: true
  97. - entity: binary_sensor
  98. class: problem
  99. category: diagnostic
  100. dps:
  101. - id: 11
  102. type: bitfield
  103. optional: true
  104. name: sensor
  105. mapping:
  106. - dps_val: 0
  107. value: false
  108. - dps_val: null
  109. value: false
  110. - value: true
  111. - id: 11
  112. type: bitfield
  113. optional: true
  114. name: fault_code