Skip to content

Commit

Permalink
Holman WX1/2: rename "time left" to "time remaining"
Browse files Browse the repository at this point in the history
Since this release is incompatibly changing these from number to
sensor, make this naming change at the same time to the more common in
other devices, and less ambiguous "remaining" instead of "left".
This will maybe avoid another incompatible change in a future release.
  • Loading branch information
make-all committed Mar 4, 2024
1 parent db1c4b4 commit b5e2dca
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 26 deletions.
19 changes: 11 additions & 8 deletions custom_components/tuya_local/devices/holman_wx1_taptimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ secondary_entities:
min: 0
max: 60
- entity: sensor
name: Time left
name: Time remaining
class: duration
category: diagnostic
dps:
Expand All @@ -114,7 +114,8 @@ secondary_entities:
type: base64
- id: 110
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
# flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -143,7 +144,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start B encoded # start time, duration and days for start B
name: Start B encoded
category: diagnostic
dps:
- id: 111
Expand All @@ -152,7 +153,7 @@ secondary_entities:
type: string
- id: 111
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -181,7 +182,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start C encoded # start time, duration and days for start C
name: Start C encoded
category: diagnostic
dps:
- id: 112
Expand All @@ -190,7 +191,7 @@ secondary_entities:
type: string
- id: 112
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -275,7 +276,8 @@ secondary_entities:
name: sensor
type: integer
- entity: sensor
name: Flow count encoded # past 10 days of flow count history.
# past 10 days of flow count history.
name: Flow count encoded
category: diagnostic
dps:
- id: 121
Expand Down Expand Up @@ -430,7 +432,8 @@ secondary_entities:
name: sensor_present
type: boolean
- entity: sensor
name: Next watering encoded # based on starts A, B and C
# based on starts A, B and C
name: Next watering encoded
category: diagnostic
dps:
- id: 128
Expand Down
41 changes: 23 additions & 18 deletions custom_components/tuya_local/devices/holman_wx2_taptimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ secondary_entities:
min: 0
max: 60
- entity: sensor
name: Time left 1
name: Time remaining 1
class: duration
category: diagnostic
dps:
Expand All @@ -112,7 +112,7 @@ secondary_entities:
name: sensor
unit: min
- entity: sensor
name: Start A 1 encoded # start time, duration and days for start A
name: Start A 1 encoded
category: diagnostic
dps:
- id: 110
Expand All @@ -121,7 +121,8 @@ secondary_entities:
type: base64
- id: 110
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
# flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -150,7 +151,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start B 1 encoded # start time, duration and days for start B
name: Start B 1 encoded
category: diagnostic
dps:
- id: 111
Expand All @@ -159,7 +160,7 @@ secondary_entities:
type: string
- id: 111
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -188,7 +189,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start C 1 encoded # start time, duration and days for start C
name: Start C 1 encoded
category: diagnostic
dps:
- id: 112
Expand All @@ -197,7 +198,7 @@ secondary_entities:
type: string
- id: 112
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -297,7 +298,7 @@ secondary_entities:
name: sensor
type: integer
- entity: sensor
name: Flow count 1 encoded # past 10 days of flow count history
name: Flow count 1 encoded
category: diagnostic
dps:
- id: 121
Expand Down Expand Up @@ -455,7 +456,8 @@ secondary_entities:
name: sensor
type: string
- entity: sensor
name: Next watering 1 encoded # based on starts A, B and C
name: Next watering 1 encoded
# based on starts A, B and C
category: diagnostic
dps:
- id: 128
Expand Down Expand Up @@ -551,26 +553,28 @@ secondary_entities:
min: 0
max: 60
- entity: sensor
name: Time left 2 # doesn't seem to get populated with manual watering
name: Time remaining 2
class: duration
category: diagnostic
# doesn't seem to get populated with manual watering
dps:
- id: 156
optional: true
type: integer
name: sensor
unit: min
- entity: sensor
name: Start A 2 encoded # start time, duration and days for start A
name: Start A 2 encoded
category: diagnostic
dps:
- id: 157
optional: true
name: sensor
type: base64
- id: 157
# flags for days of the week Sun-Sat, plus a bit for on/off
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -599,7 +603,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start B 2 encoded # start time, duration and days for start B
name: Start B 2 encoded
category: diagnostic
dps:
- id: 158
Expand All @@ -608,7 +612,7 @@ secondary_entities:
type: string
- id: 158
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -637,7 +641,7 @@ secondary_entities:
mapping:
- mask: "FF00000000000000"
- entity: sensor
name: Start C 2 encoded # start time, duration and days for start C
name: Start C 2 encoded
category: diagnostic
dps:
- id: 159
Expand All @@ -646,7 +650,7 @@ secondary_entities:
type: string
- id: 159
optional: true
name: days # flags for days of the week Sun-Sat, plus a bit for on/off
name: days
type: base64
mapping:
- mask: "FF000000"
Expand Down Expand Up @@ -705,7 +709,8 @@ secondary_entities:
name: sensor
type: boolean
- entity: sensor
name: Flow count 2 encoded # past 10 days of flow count history
name: Flow count 2 encoded
# past 10 days of flow count history
category: diagnostic
dps:
- id: 163
Expand Down Expand Up @@ -856,7 +861,7 @@ secondary_entities:
name: sensor
type: boolean
- entity: sensor
name: Next watering 2 encoded # based on starts A, B and C
name: Next watering 2 encoded
category: diagnostic
dps:
- id: 167
Expand Down

0 comments on commit b5e2dca

Please sign in to comment.