Skip to content

Commit

Permalink
Sleep switches: standardize icon and translations.
Browse files Browse the repository at this point in the history
Issue #1708
  • Loading branch information
make-all committed Sep 24, 2024
1 parent 22b8a8f commit 315eec9
Show file tree
Hide file tree
Showing 59 changed files with 99 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,12 @@ secondary_entities:
unit: C
class: measurement
- entity: switch
name: Sleep
translation_key: sleep
category: config
dps:
- id: 14
type: boolean
name: switch
mapping:
- dps_val: false
icon: "mdi:sleep-off"
- dps_val: true
icon: "mdi:sleep"
- entity: lock
translation_key: child_lock
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,12 @@ secondary_entities:
unit: C
class: measurement
- entity: switch
name: Sleep
translation_key: sleep
category: config
dps:
- id: 102
type: boolean
name: switch
mapping:
- dps_val: false
icon: "mdi:sleep-off"
- dps_val: true
icon: "mdi:sleep"
- entity: lock
translation_key: child_lock
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ secondary_entities:
mapping:
- scale: 0.3
- entity: switch
name: Sleep timer
icon: "mdi:bed-clock"
translation_key: sleep
category: config
dps:
- id: 104
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ secondary_entities:
- dps_val: false
value: true
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 16
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/carson_cb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ secondary_entities:
- dps_val: F
value: fahrenheit
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ secondary_entities:
name: sensor
unit: C
- entity: switch
name: Sleep mode
translation_key: sleep
dps:
- id: 16
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ secondary_entities:
name: switch
type: boolean
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 25
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ secondary_entities:
unit: kWh
class: total_increasing
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 102
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ secondary_entities:
min: 0
max: 12
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 6
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ primary_entity:
type: integer
secondary_entities:
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,12 @@ secondary_entities:
name: switch
type: boolean
- entity: switch
name: Sleep
translation_key: sleep
category: config
dps:
- id: 104
type: boolean
name: switch
mapping:
- dps_val: true
icon: "mdi:sleep"
- dps_val: false
icon: "mdi:sleep-off"
- entity: binary_sensor
translation_key: tank_full
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,12 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep
translation_key: sleep
category: config
dps:
- id: 104
type: boolean
name: switch
mapping:
- dps_val: true
icon: "mdi:sleep"
- dps_val: false
icon: "mdi:sleep-off"
- entity: binary_sensor
translation_key: tank_full
category: diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ secondary_entities:
- dps_val: "f"
value: fahrenheit
- entity: switch
name: Sleep Mode
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 102
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ secondary_entities:
- dps_val: "f"
value: fahrenheit
- entity: switch
name: Sleep Mode
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 102
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep mode
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 109
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ primary_entity:

secondary_entities:
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 103
name: switch
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/gorilla_fan_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep
icon: mdi:sleep
translation_key: sleep
dps:
- id: 113
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ secondary_entities:
value: false
- value: true
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 117
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ secondary_entities:
name: switch
optional: true
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 25
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 109
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep
icon: "mdi:weather-night"
translation_key: sleep
dps:
- id: 102
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ secondary_entities:
- dps_val: "3"
value: 255
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 103
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ secondary_entities:
name: sensor
unit: min
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 111
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/littepets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: "Sleep Mode"
icon: "mdi:sleep"
translation_key: sleep
dps:
- id: 10
type: boolean
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/medion_life_p1002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ secondary_entities:
type: bitfield
name: fault_code
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ secondary_entities:
value: false
- value: true
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ secondary_entities:
value: false
- value: true
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 103
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ secondary_entities:
name: sensor
unit: min
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 102
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/renpho_rp_ap001s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ secondary_entities:
- dps_val: false
icon: "mdi:led-off"
- entity: switch
name: Sleep
translation_key: sleep
class: switch
icon: "mdi:power-sleep"
dps:
- id: 101
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ secondary_entities:
value: celsius
- entity: switch
category: config
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ secondary_entities:
- dps_val: false
value: celsius
- entity: switch
name: Sleep mode
icon: "mdi:power-sleep"
translation_key: sleep
dps:
- id: 101
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ secondary_entities:
type: integer
unit: kWh
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 102
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,8 @@ secondary_entities:
type: boolean
name: switch
- entity: switch
name: Sleep
translation_key: sleep
category: config
icon: "mdi:power-sleep"
dps:
- id: 109
name: switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ secondary_entities:
unit: kWh
class: total_increasing
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 102
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ secondary_entities:
- dps_val: F
value: fahrenheit
- entity: switch
name: Sleep
icon: "mdi:power-sleep"
translation_key: sleep
category: config
dps:
- id: 102
Expand Down
Loading

0 comments on commit 315eec9

Please sign in to comment.