Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_style = space
indent_size = 4

[*.yaml]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 4
186 changes: 186 additions & 0 deletions custom_components/tuya_local/devices/eta_noble_humidifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
name: Humidifier
products:
- id: vkh653vaxghgavef
manufacturer: ETA
model: Noble Smart
model_id: "5629 90000"
entities:
- entity: humidifier
class: humidifier
translation_key: extended
dps:
- id: 1
type: boolean
name: switch
- id: 4
type: string
name: mode
mapping:
- dps_val: manual
value: manual
- dps_val: auto
value: auto
- dps_val: humidity
value: normal
- id: 13
type: integer
name: humidity
range:
min: 30
max: 75
mapping:
- step: 5
- id: 14
type: integer
name: current_humidity
- entity: fan
translation_key: spray_level
category: config
dps:
- id: 1
type: boolean
name: switch
- id: 23
type: string
name: speed
optional: true
mapping:
- dps_val: "level_0"
value: 0
- dps_val: "level_1"
value: 15
- dps_val: "level_2"
value: 30
- dps_val: "level_3"
value: 45
- dps_val: "level_4"
value: 55
- dps_val: "level_5"
value: 70
- dps_val: "level_6"
value: 85
- dps_val: "level_7"
value: 100
- entity: switch
translation_key: warm_mist
category: config
dps:
- id: 26
type: boolean
name: switch
optional: true
- entity: switch
translation_key: plasma
category: config
dps:
- id: 35
type: boolean
name: switch
optional: true
- entity: light
translation_key: ambient_light
category: config
dps:
- id: 5
type: boolean
name: switch
- entity: switch
translation_key: sound
category: config
dps:
- id: 8
type: boolean
name: switch
- entity: sensor
class: temperature
dps:
- id: 10
Comment thread
make-all marked this conversation as resolved.
type: integer
name: sensor
class: measurement
unit: C
- id: 12
type: integer
name: temperature_f
unit: F
optional: true
- entity: select
translation_key: timer
category: config
dps:
- id: 19
type: string
name: option
optional: true
mapping:
- dps_val: cancel
value: cancel
- dps_val: "1h"
value: "1h"
- dps_val: "2h"
value: "2h"
- dps_val: "3h"
value: "3h"
- dps_val: "4h"
value: "4h"
- dps_val: "5h"
value: "5h"
- dps_val: "6h"
value: "6h"
- dps_val: "7h"
value: "7h"
- dps_val: "8h"
value: "8h"
- dps_val: "9h"
value: "9h"
- dps_val: "10h"
value: "10h"
- dps_val: "11h"
value: "11h"
- dps_val: "12h"
value: "12h"
- entity: sensor
translation_key: time_remaining
class: duration
category: diagnostic
dps:
- id: 20
type: integer
name: sensor
unit: min
- entity: select
translation_key: temperature_unit
category: config
dps:
- id: 18
type: string
name: option
optional: true
mapping:
- dps_val: c
value: celsius
- dps_val: f
value: fahrenheit
- entity: switch
translation_key: night_mode
category: config
dps:
- id: 101
type: boolean
name: switch
- entity: sensor
translation_key: status
class: enum
category: diagnostic
dps:
- id: 22
type: bitfield
name: sensor
optional: true
mapping:
- dps_val: 0
value: normal
- dps_val: 1
value: no_water
- dps_val: 2
value: overflowing
22 changes: 21 additions & 1 deletion custom_components/tuya_local/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
}
}
}
},
"spray_level": {
"default": "mdi:fan"
}
},
"event": {
Expand All @@ -146,7 +149,9 @@
"mode": {
"state": {
"laundry": "mdi:tshirt-crew",
"purify": "mdi:air-filter"
"purify": "mdi:air-filter",
"manual": "mdi:fan",
"normal": "mdi:water-percent"
}
}
}
Expand Down Expand Up @@ -185,6 +190,12 @@
},
"rangehood_light": {
"default": "mdi:ceiling-fan-light"
},
"ambient_light": {
"default": "mdi:led-on",
"state": {
"off": "mdi:led-off"
}
}
},
"lock": {
Expand Down Expand Up @@ -726,6 +737,15 @@
},
"rangehood": {
"default": "mdi:ceiling-fan"
},
"warm_mist": {
"default": "mdi:heat-wave"
},
"plasma": {
"default": "mdi:creation"
},
"night_mode": {
"default": "mdi:weather-night"
}
},
"text": {
Expand Down
19 changes: 17 additions & 2 deletions custom_components/tuya_local/translations/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@
"state": {
"laundry": "Сухо пране",
"purify": "Пречистете",
"continuous": "Непрекъснато"
"manual": "Ръчно",
"normal": "Нормально"
}
}
}
Expand Down Expand Up @@ -461,6 +462,9 @@
}
}
}
},
"spray_level": {
"name": "Интензивност на пара"
}
},
"light": {
Expand Down Expand Up @@ -493,6 +497,9 @@
},
"rangehood_light": {
"name": "Светлина на абсорбатора"
},
"ambient_light": {
"name": "Околна светлина"
}
},
"lock": {
Expand Down Expand Up @@ -766,7 +773,6 @@
"6d": "6 дни",
"7d": "7 дни"
}

},
"temperature_unit": {
"name": "Температурна единица",
Expand Down Expand Up @@ -1223,6 +1229,15 @@
},
"rangehood": {
"name": "Абсорбатор"
},
"warm_mist": {
"name": "Топла пара"
},
"plasma": {
"name": "Плазма"
},
"night_mode": {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use sleep instead to avoid introducing a new translation that is the same meaning

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was used in an attempt to be close to what the manual states while being well descriptive.

The manual reports it as Night mode or Noční režim in Czech which I'd consider quite a stretch from (the) Sleep or Spánek in Czech.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the Czech translation could use some work if the current "Sleep" does not mean the same as night mode, as that is the meaning that many other devices give it (reducing lighting brightness and noise to minimum)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that was the goal of the translation than something like Režím Spánku (Sleep Mode) would be more appropriate since Spánek is literally the noun Sleep.

Režim Spánku => the device is in a sleep mode - while this still is a bit confusing as sleep mode might indicate that the device is partially off which allows to start up quicker (like a laptop) it is much metter than just (the) sleep

Spánek => the device is, most likely, sleeping

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to have the Sleep translation changed to Sleep mode for all languages so that it's consistent? Or should I change only the Czech one?

"name": "Нощен режим"
}
},
"text": {
Expand Down
31 changes: 30 additions & 1 deletion custom_components/tuya_local/translations/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,22 @@
"nightlight": {
"name": "Llum nocturna"
},
"ambient_light": {
"name": "Llum ambient"
}
},
"sensor": {
"cooking_status": {
"state": {
"wait": "En espera per a cuinar",
"reservation": "En reserva",
"cooking": "En curs",
"cancel": "Cocció cancel·lada",
"done": "Cocció completada",
"pause": "Cocció en pausa"
},
"name": "Estat"
},
"oven_light": {
"name": "Luz del horno"
},
Expand All @@ -415,7 +431,8 @@
"state": {
"laundry": "Roba eixuta",
"purify": "Purifica",
"continuous": "Continu"
"manual": "Manual",
"normal": "Normal"
}
}
}
Expand Down Expand Up @@ -493,6 +510,9 @@
}
}
}
},
"spray_level": {
"name": "Intensitat de vapor"
}
},
"lock": {
Expand Down Expand Up @@ -1222,6 +1242,15 @@
},
"rangehood": {
"name": "Campana extractora"
},
"warm_mist": {
"name": "Vapor calent"
},
"plasma": {
"name": "Plasma"
},
"night_mode": {
"name": "Mode nocturn"
}
},
"text": {
Expand Down
Loading
Loading