yym_805SW_aroma_nightlight.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # DPS sample: {'updated_at': 1674433099.9169242, '1': True, '2': 'large',
  2. # '3': '1', '5': True, '6': 'colourful1', '8': '001fff00e8ffff'}
  3. name: Aroma diffuser
  4. products:
  5. - id: c0nh3LmEk0NDebrq
  6. name: YYM-805SW
  7. - id: 4870500398f4abbfbae4
  8. name: GX
  9. - id: kgczidn0awas0prr
  10. name: Tellur
  11. primary_entity:
  12. entity: fan
  13. dps:
  14. - id: 1
  15. name: switch
  16. type: boolean
  17. mapping:
  18. - dps_val: true
  19. icon: "mdi:scent"
  20. - dps_val: false
  21. icon: "mdi:scent-off"
  22. - id: 2
  23. name: speed
  24. type: string
  25. mapping:
  26. - conditions:
  27. - dps_val:
  28. - large
  29. - small
  30. mapping:
  31. - dps_val: large
  32. value: 100
  33. - dps_val: small
  34. value: 50
  35. - dps_val:
  36. - high
  37. - low
  38. mapping:
  39. - dps_val: high
  40. value: 100
  41. - dps_val: low
  42. value: 50
  43. - id: 9
  44. name: fault_code
  45. type: bitfield
  46. optional: true
  47. secondary_entities:
  48. - entity: light
  49. translation_key: nightlight
  50. dps:
  51. - id: 5
  52. name: switch
  53. type: boolean
  54. - id: 6
  55. name: color_mode
  56. type: string
  57. mapping:
  58. - dps_val: colour
  59. value: hs
  60. - dps_val: colourful1
  61. value: Colorful
  62. - id: 8
  63. name: rgbhsv
  64. type: hex
  65. format:
  66. - name: r
  67. bytes: 1
  68. - name: g
  69. bytes: 1
  70. - name: b
  71. bytes: 1
  72. - name: h
  73. bytes: 2
  74. range:
  75. min: 0
  76. max: 360
  77. - name: s
  78. bytes: 1
  79. range:
  80. min: 0
  81. max: 255
  82. - name: v
  83. bytes: 1
  84. range:
  85. min: 0
  86. max: 255
  87. - entity: select
  88. translation_key: timer
  89. category: config
  90. dps:
  91. - id: 3
  92. name: option
  93. type: string
  94. mapping:
  95. - dps_val: "cancel"
  96. value: "Off"
  97. - dps_val: "1"
  98. value: "1 hour"
  99. - dps_val: "3"
  100. value: "3 hours"
  101. - dps_val: "6"
  102. value: "6 hours"
  103. - id: 4
  104. name: remaining
  105. optional: true
  106. type: integer
  107. range:
  108. min: 0
  109. max: 360