4
0
Эх сурвалжийг харах

Add support for BLE connected Johgee water timer

Issue #747
Jason Rumney 2 жил өмнө
parent
commit
85984490a3

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -274,3 +274,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [YodaDaCoda](https://github.com/YodaDaCoda) for contributing support for Kogan LX10 vacuum cleaners.
 - [itn3rd77](https://github.com/itn3rd77) for contributing support for Stadler Form Karl/Karl Big humidifiers.
 - [Mikey887](https://github.com/Mikey887) for contributing support for Catit Pixi Smart feeder.
+- [fcrozat](https://github.com/fcrozat) for contributing support for BLE connected Johgee water timers.

+ 2 - 1
DEVICES.md

@@ -390,9 +390,10 @@ of device.
 
 ### Devices supported via Bluetooth hubs
 
-- PT216/PT19DB-2 temperature and humidity sensor
 - HCT-611 water timer
+- Johgee water timer
 - Orion DL021HA lock
+- PT216/PT19DB-2 temperature and humidity sensor
 
 ### Devices supported via IR hubs
 

+ 117 - 0
custom_components/tuya_local/devices/ble_johgee_water_valve.yaml

@@ -0,0 +1,117 @@
+name: Johgee Water Timer Valve
+products:
+  - id: c8800fd30884068f
+primary_entity:
+  entity: switch
+  icon: "mdi:pipe-valve"
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 13
+      type: string
+      name: weather
+      optional: true
+    - id: 16
+      type: string
+      name: soak_schedule
+      optional: true
+    - id: 17
+      type: string
+      name: irrigation_schedule
+      optional: true
+secondary_entities:
+  - entity: sensor
+    name: Battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: sensor
+    name: Fault code
+    category: diagnostic
+    icon: "mdi:alert"
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 4
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: sensor
+    name: Operation
+    category: diagnostic
+    dps:
+      - id: 12
+        type: string
+        name: sensor
+  - entity: sensor
+    name: Accumulated use time
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 9
+        type: integer
+        name: sensor
+        unit: s
+  - entity: sensor
+    name: Last use time
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 15
+        type: integer
+        name: sensor
+        unit: s
+  - 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: "1 day"
+          - dps_val: "48h"
+            value: "2 days"
+          - dps_val: "72h"
+            value: "3 days"
+  - entity: number
+    name: Irrigation time
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 11
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: switch
+    name: Smart weather switch
+    icon: "mdi:sun-wireless"
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        name: switch