yx316wifi_aroma_diffuser.yaml 2.2 KB

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