Skip to content

Commit

Permalink
add support Smartlife Plant Sensor SGS01
Browse files Browse the repository at this point in the history
  • Loading branch information
almirus committed Mar 2, 2024
1 parent b2c87dc commit 594dcf2
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Moisture sensor
products:
- id: bfbf6c7bb11573ed23j4ya
model: SGS01
primary_entity:
entity: sensor
name: Soil Moisture
class: humidity
dps:
- id: 3

Check failure on line 10 in custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

View workflow job for this annotation

GitHub Actions / lint

10:7 [indentation] wrong indentation: expected 4 but found 6
name: sensor
type: integer
force: true
unit: "%"
secondary_entities:
- entity: sensor
name: Soil Temperature
class: temperature
dps:
- id: 5
name: sensor
type: integer
mapping:
- scale: 10
unit: C
- entity: select
name: Temperature unit
category: config
dps:
- id: 9
name: option
type: string
mapping:
- dps_val: "c"
value: "C"
- dps_val: "f"
value: "F"
- entity: sensor

Check failure on line 38 in custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

View workflow job for this annotation

GitHub Actions / lint

38:5 [hyphens] too many spaces after hyphen
class: battery
category: diagnostic
dps:
- id: 14

Check failure on line 42 in custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

View workflow job for this annotation

GitHub Actions / lint

42:7 [indentation] wrong indentation: expected 7 but found 6
type: string
name: state
- id: 15
type: integer
name: sensor
unit: "%"

Check failure on line 48 in custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

View workflow job for this annotation

GitHub Actions / lint

48:18 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 594dcf2

Please sign in to comment.