yx316wifi_aroma_diffuser.yaml 2.2 KB

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