ble_smart_plant_moisture.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: Moisture sensor
  2. products:
  3. - id: gvygg3m8
  4. model: SGS01
  5. entities:
  6. - entity: sensor
  7. name: Soil Moisture
  8. class: moisture
  9. dps:
  10. - id: 3
  11. name: sensor
  12. type: integer
  13. unit: "%"
  14. - entity: sensor
  15. name: Soil Temperature
  16. class: temperature
  17. dps:
  18. - id: 5
  19. name: sensor
  20. type: integer
  21. class: measurement
  22. mapping:
  23. - scale: 10
  24. - id: 9
  25. name: unit
  26. type: string
  27. mapping:
  28. - dps_val: f
  29. value: F
  30. - value: C
  31. - entity: sensor
  32. class: battery
  33. category: diagnostic
  34. dps:
  35. - id: 14
  36. type: string
  37. name: state
  38. - id: 15
  39. type: integer
  40. name: sensor
  41. unit: "%"
  42. - entity: select
  43. translation_key: temperature_unit
  44. category: config
  45. dps:
  46. - id: 9
  47. type: string
  48. name: option
  49. mapping:
  50. - dps_val: c
  51. value: celsius
  52. - dps_val: f
  53. value: fahrenheit
  54. - entity: button
  55. name: Refresh
  56. class: restart
  57. category: config
  58. dps:
  59. - id: 9
  60. type: string
  61. name: button
  62. mapping:
  63. - dps_val: c
  64. constraint: current
  65. conditions:
  66. - dps_val: c
  67. value: true
  68. - dps_val: f
  69. value: false
  70. - dps_val: f
  71. constraint: current
  72. conditions:
  73. - dps_val: c
  74. value: false
  75. - dps_val: f
  76. value: true
  77. - id: 9
  78. type: string
  79. name: current