ble_smart_plant_moisture.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. name: Moisture sensor
  2. products:
  3. - id: gvygg3m8
  4. model: SGS01
  5. - id: nt4pquef
  6. model: SGS02Z
  7. entities:
  8. - entity: sensor
  9. name: Soil moisture
  10. class: moisture
  11. dps:
  12. - id: 3
  13. name: sensor
  14. type: integer
  15. unit: "%"
  16. - entity: sensor
  17. name: Soil temperature
  18. class: temperature
  19. dps:
  20. - id: 5
  21. name: sensor
  22. type: integer
  23. class: measurement
  24. mapping:
  25. - scale: 10
  26. - id: 9
  27. name: unit
  28. type: string
  29. mapping:
  30. - dps_val: f
  31. value: F
  32. - value: C
  33. - entity: sensor
  34. class: battery
  35. category: diagnostic
  36. dps:
  37. - id: 14
  38. type: string
  39. optional: true
  40. name: state
  41. - id: 15
  42. type: integer
  43. name: sensor
  44. unit: "%"
  45. - entity: select
  46. translation_key: temperature_unit
  47. category: config
  48. dps:
  49. - id: 9
  50. type: string
  51. name: option
  52. mapping:
  53. - dps_val: c
  54. value: celsius
  55. - dps_val: f
  56. value: fahrenheit
  57. - entity: button
  58. name: Refresh
  59. class: restart
  60. category: config
  61. dps:
  62. - id: 9
  63. type: string
  64. name: button
  65. mapping:
  66. - dps_val: c
  67. constraint: current
  68. conditions:
  69. - dps_val: c
  70. value: true
  71. - dps_val: f
  72. value: false
  73. - dps_val: f
  74. constraint: current
  75. conditions:
  76. - dps_val: c
  77. value: false
  78. - dps_val: f
  79. value: true
  80. - id: 9
  81. type: string
  82. name: current
  83. - entity: sensor
  84. name: Light intensity
  85. class: enum
  86. hidden: unavailable # only SGS02Z supports this
  87. dps:
  88. - id: 2
  89. type: string
  90. optional: true
  91. name: sensor
  92. mapping:
  93. - dps_val: lower
  94. value: dark
  95. - dps_val: low
  96. value: low
  97. - dps_val: normal
  98. value: normal
  99. - dps_val: high
  100. value: high
  101. - dps_val: higher
  102. value: bright
  103. - id: 2
  104. type: string
  105. optional: true
  106. name: available
  107. mapping:
  108. - dps_val: null
  109. value: false
  110. - value: true