Skip to content

Commit

Permalink
Updated translations and added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Jan 16, 2025
1 parent 038194d commit e1033dd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ Adapter version >= v8.2.0 required for:

NodeJS >= 20.x and js-controller >= 6 is required

* (@Zefau) add Source and MinBrightness to Shelly Dimmer

### 8.5.1 (2024-12-02)

* (@klein0r) Fixed digest auth for Shelly Wall Display
Expand Down
27 changes: 25 additions & 2 deletions lib/devices/gen1/shellydimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,19 @@ const shellydimmer = {
http_publish_funct: value => (value ? JSON.parse(value).min_brightness : undefined),
},
common: {
name: 'Minimum Brightness',
name: {
en: 'Minimum Brightness',
de: 'Mindesthelligkeit',
ru: 'Минимальная яркость',
pt: 'Brilho mínimo',
nl: 'Minimale helderheid',
fr: 'Luminosité minimale',
it: 'Minimo splendore',
es: 'Brillo mínimo',
pl: 'Minimalna jasność',
uk: 'Мінімальна яскравість',
'zh-cn': '最小亮度',
},
type: 'number',
role: 'level.brightness',
read: true,
Expand All @@ -102,7 +114,18 @@ const shellydimmer = {
},
},
common: {
name: 'Source',
name: {
en: 'Source of last command',
de: 'Quelle des letzten Befehls',
ru: 'Источник последней команды',
pt: 'Fonte do último comando',
nl: 'Vertaling:',
fr: 'Source de la dernière commande',
it: "Fonte dell'ultimo comando",
es: 'Fuente del último comando',
pl: 'Źródło ostatniego dowództwa',
'zh-cn': '最后一次指挥的来源',
},
type: 'string',
role: 'state',
read: true,
Expand Down
30 changes: 20 additions & 10 deletions lib/devices/gen1/shellydimmer2.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ const shellydimmer2 = {
common: {
name: {
en: 'Minimum Brightness',
de: 'Mindesthelligkeit',
ru: 'Минимальная яркость',
pt: 'Brilho mínimo',
nl: 'Minimale helderheid',
fr: 'Luminosité minimale',
it: 'Minimo splendore',
es: 'Brillo mínimo',
pl: 'Minimalna jasność',
uk: 'Мінімальна яскравість',
'zh-cn': '最小亮度',
},
type: 'number',
role: 'level.brightness',
Expand All @@ -103,16 +113,16 @@ const shellydimmer2 = {
},
common: {
name: {
en: 'Source',
de: 'Quelle',
ru: 'Источник',
pt: 'Fonte',
nl: 'Bron',
fr: 'Source',
it: 'Fonte',
es: 'Fuente',
pl: 'Źródło',
'zh-cn': '来源',
en: 'Source of last command',
de: 'Quelle des letzten Befehls',
ru: 'Источник последней команды',
pt: 'Fonte do último comando',
nl: 'Vertaling:',
fr: 'Source de la dernière commande',
it: "Fonte dell'ultimo comando",
es: 'Fuente del último comando',
pl: 'Źródło ostatniego dowództwa',
'zh-cn': '最后一次指挥的来源',
},
type: 'string',
role: 'state',
Expand Down

0 comments on commit e1033dd

Please sign in to comment.