ghome_sw19_fanlight.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. name: Fan and light switch
  2. products:
  3. - id: j11gop7l2l3sblc2
  4. manufacturer: GHome
  5. model: SW19
  6. entities:
  7. - entity: fan
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - id: 3
  13. type: string
  14. name: speed
  15. mapping:
  16. - dps_val: level_1
  17. value: 25
  18. - dps_val: level_2
  19. value: 50
  20. - dps_val: level_3
  21. value: 75
  22. - dps_val: level_4
  23. value: 100
  24. - entity: number
  25. name: Fan timer
  26. class: duration
  27. category: config
  28. translation_key: timer
  29. dps:
  30. - id: 2
  31. type: integer
  32. name: value
  33. unit: min
  34. range:
  35. min: 0
  36. max: 86400
  37. mapping:
  38. - scale: 60
  39. step: 60
  40. - entity: light
  41. dps:
  42. - id: 5
  43. type: boolean
  44. name: switch
  45. - id: 6
  46. name: brightness
  47. type: integer
  48. range:
  49. min: 10
  50. max: 1000
  51. - entity: number
  52. name: Light timer
  53. category: config
  54. class: duration
  55. translation_key: timer
  56. dps:
  57. - id: 7
  58. type: integer
  59. name: value
  60. unit: min
  61. range:
  62. min: 0
  63. max: 86400
  64. mapping:
  65. - scale: 60
  66. step: 60
  67. - entity: select
  68. translation_key: initial_state
  69. category: config
  70. dps:
  71. - id: 11
  72. type: string
  73. name: option
  74. mapping:
  75. - dps_val: "off"
  76. value: "off"
  77. - dps_val: "on"
  78. value: "on"
  79. - dps_val: memory
  80. value: memory
  81. - entity: select
  82. name: Backlight
  83. icon: "mdi:circle-double"
  84. category: config
  85. dps:
  86. - id: 12
  87. type: string
  88. name: option
  89. mapping:
  90. - dps_val: none
  91. value: "off"
  92. - dps_val: relay
  93. value: state
  94. - dps_val: pos
  95. value: position
  96. - entity: binary_sensor
  97. class: problem
  98. category: diagnostic
  99. dps:
  100. - id: 101
  101. type: bitfield
  102. optional: true
  103. name: sensor
  104. mapping:
  105. - dps_val: 0
  106. value: false
  107. - dps_val: null
  108. value: false
  109. - value: true
  110. - id: 101
  111. type: bitfield
  112. optional: true
  113. name: fault_code