ghome_sw19_fanlight.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. translation_key: light_mode
  83. category: config
  84. dps:
  85. - id: 12
  86. type: string
  87. name: option
  88. mapping:
  89. - dps_val: none
  90. value: "off"
  91. - dps_val: relay
  92. value: state
  93. - dps_val: pos
  94. value: locator
  95. - entity: binary_sensor
  96. class: problem
  97. category: diagnostic
  98. dps:
  99. - id: 101
  100. type: bitfield
  101. optional: true
  102. name: sensor
  103. mapping:
  104. - dps_val: 0
  105. value: false
  106. - dps_val: null
  107. value: false
  108. - value: true
  109. - id: 101
  110. type: bitfield
  111. optional: true
  112. name: fault_code