Skip to content

Commit

Permalink
Add support for SOP10 water sprinkler
Browse files Browse the repository at this point in the history
Issue #1964
  • Loading branch information
make-all committed Jul 28, 2024
1 parent 4201723 commit c648bed
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,3 +606,4 @@ Further device support has been made with the assistance of users. Please consid
- [levineds](https://github.com/levineds) for contributing support for Moes motion sensor smart switch.
- [tomassanjuann](https://github.com/tomassanjuann) for contributing support for Tera W01 EV charger.
- [rorydcampbell](https://github.com/rorydcampbell) for comtributing support for WellToBe WB S36D pet feeder.
- [FreemanJD](https://github.com/FreemanJD) for assisting with support for SOP10 water sprinkler.
5 changes: 5 additions & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ port and password.
- PT216/PT19DB-2 temperature and humidity sensor
- SGS01 plant sensor
- Smart Ape solar garden light
- SOP10 water sprinkler
- TCS024B plant moisture sensor
- TH05 temperature and humidity sensor
- XCase NX-4964 lock box
Expand All @@ -772,6 +773,10 @@ port and password.

### Devices supported via IR hubs

In general IR hubs are supported as generic IR remote controllers.
Some specialised devices have built-in sensors to also present other
entity types as sub devices.

- Air conditioner / heatpump via Moes IR hub
- Neo IR Air Conditioner controller

Expand Down
128 changes: 128 additions & 0 deletions custom_components/tuya_local/devices/sop10_sprinkler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Water sprinkler
products:
- id: nxquc5lb
name: SOP10
primary_entity:
entity: valve
class: water
dps:
- id: 1
type: boolean
name: valve
- id: 12
type: string
name: work_state
secondary_entities:
- entity: binary_sensor
class: problem
category: diagnostic
dps:
- id: 4
type: bitfield
name: sensor
optional: true
mapping:
- dps_val: 0
value: false
- dps_val: null
value: false
- value: true
- id: 4
type: bitfield
optional: true
name: fault_code
- entity: sensor
class: battery
dps:
- id: 7
type: integer
name: sensor
unit: "%"
class: measurement
- entity: sensor
name: Total use time
class: duration
category: diagnostic
dps:
- id: 9
type: integer
name: sensor
unit: s
class: measurement
- entity: select
name: Weather delay
icon: "mdi:weather-cloudy-clock"
category: config
dps:
- id: 10
type: string
name: option
mapping:
- dps_val: cancel
value: "Off"
- dps_val: "24h"
value: "24 hours"
- dps_val: "48h"
value: "48 hours"
- dps_val: "72h"
value: "72 hours"
- entity: number
translation_key: timer
category: config
dps:
- id: 11
type: integer
name: value
unit: min
range:
min: 0
max: 86400
mapping:
- scale: 60
- id: 16
type: string
name: cycle_timer
optional: true
- id: 17
type: string
name: schedule
optional: true
- entity: sensor
name: Weather
icon: "mdi:weather-cloudy-alert"
class: enum
dps:
- id: 13
type: string
name: sensor
optional: true
mapping:
- dps_val: null
value: no_forecast
- dps_val: sunny
value: sunny
icon: "mdi:weather-sunny"
- dps_val: cloudy
value: cloudy
icon: "mdi:weather-cloudy"
- dps_val: rainy
value: rainy
icon: "mdi:weather-rainy"
- entity: switch
name: Weather
icon: "mdi:weather-partly-cloudy"
category: config
dps:
- id: 14
type: boolean
name: switch
- entity: sensor
name: Last use time
class: duration
category: diagnostic
dps:
- id: 15
type: integer
name: sensor
unit: s
class: measurement

0 comments on commit c648bed

Please sign in to comment.