Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support Smartlife Plant Sensor SGS01 #1693

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
almirus marked this conversation as resolved.
Show resolved Hide resolved
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
almirus marked this conversation as resolved.
Show resolved Hide resolved
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
almirus marked this conversation as resolved.
Show resolved Hide resolved
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
Loading