ghome_sw19_fanlight.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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: time
  25. name: Fan timer
  26. category: config
  27. translation_key: timer
  28. dps:
  29. - id: 2
  30. type: integer
  31. name: second
  32. range:
  33. min: 0
  34. max: 86400
  35. - entity: light
  36. dps:
  37. - id: 5
  38. type: boolean
  39. name: switch
  40. - id: 6
  41. name: brightness
  42. type: integer
  43. range:
  44. min: 10
  45. max: 1000
  46. - entity: time
  47. name: Light timer
  48. category: config
  49. translation_key: timer
  50. dps:
  51. - id: 7
  52. type: integer
  53. name: second
  54. range:
  55. min: 0
  56. max: 86400
  57. - entity: select
  58. translation_key: initial_state
  59. category: config
  60. dps:
  61. - id: 11
  62. type: string
  63. name: option
  64. mapping:
  65. - dps_val: "off"
  66. value: "off"
  67. - dps_val: "on"
  68. value: "on"
  69. - dps_val: memory
  70. value: memory
  71. - entity: select
  72. translation_key: light_mode
  73. category: config
  74. dps:
  75. - id: 12
  76. type: string
  77. name: option
  78. mapping:
  79. - dps_val: none
  80. value: "off"
  81. - dps_val: relay
  82. value: state
  83. - dps_val: pos
  84. value: locator
  85. - entity: binary_sensor
  86. class: problem
  87. category: diagnostic
  88. dps:
  89. - id: 101
  90. type: bitfield
  91. optional: true
  92. name: sensor
  93. mapping:
  94. - dps_val: 0
  95. value: false
  96. - dps_val: null
  97. value: false
  98. - value: true
  99. - id: 101
  100. type: bitfield
  101. optional: true
  102. name: fault_code