Skip to content

Commit

Permalink
chore: release v0.1.4-1
Browse files Browse the repository at this point in the history
Proper value ranges for type light (255 instead 100)
Implement hex color state for type light (if RGB is available)
  • Loading branch information
DutchmanNL committed Mar 6, 2021
1 parent d4903db commit 50ae55e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ switch:
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### 0.1.3 (2021-03-02)
* (DutchmanNL) Proper value ranges for type light

### 0.1.4-1 (2021-03-06)
* (DutchmanNL) Proper value ranges for type light (255 instead 100)
* (DutchmanNL) Implement hex color state for type light (if RGB is available)

### 0.1.2 (2021-03-02)
* (DutchmanNL) Type Fan added
Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "esphome",
"version": "0.1.3",
"version": "0.1.4-1",
"news": {
"0.1.4-1": {
"en": "Proper value ranges for type light (255 instead 100)\nImplement hex color state for type light (if RGB is available)",
"de": "Richtige Wertebereiche für Typ Licht (255 statt 100)\nImplementieren Sie den Hex-Farbstatus für Typlicht (falls RGB verfügbar ist).",
"ru": "Правильные диапазоны значений для типа light (255 вместо 100)\nРеализовать шестнадцатеричное цветовое состояние для типа света (если доступен RGB)",
"pt": "Intervalos de valores adequados para o tipo de luz (255 em vez de 100)\nImplementar estado de cor hexadecimal para o tipo de luz (se RGB estiver disponível)",
"nl": "Juiste waardebereiken voor type licht (255 in plaats van 100)\nImplementeer hex-kleurstatus voor type licht (als RGB beschikbaar is)",
"fr": "Plages de valeurs appropriées pour le type light (255 au lieu de 100)\nImplémenter l'état de couleur hexadécimal pour le type de lumière (si RVB est disponible)",
"it": "Intervalli di valori adeguati per il tipo di luce (255 invece di 100)\nImplementa lo stato del colore esadecimale per il tipo di luce (se RGB è disponibile)",
"es": "Rangos de valores adecuados para el tipo de luz (255 en lugar de 100)\nImplementar el estado de color hexadecimal para el tipo de luz (si RGB está disponible)",
"pl": "Prawidłowe zakresy wartości dla typu światła (255 zamiast 100)\nZaimplementuj stan koloru szesnastkowego dla typu światła (jeśli RGB jest dostępne)",
"zh-cn": "light类型的正确值范围(255而不是100)\n为类型的灯实现十六进制颜色状态(如果可以使用RGB)"
},
"0.1.3": {
"en": "Proper value ranges for type light",
"de": "Richtige Wertebereiche für Typ Licht",
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ class Esphome extends utils.Adapter {
// Convert hex to rgb
const rgbConversion = await this.hexToRgb(writeValue);
if (!rgbConversion) return
this.deviceInfo[deviceIP][device[4]].states.red = rgbConversion.red,
this.deviceInfo[deviceIP][device[4]].states.blue = rgbConversion.blue,
this.deviceInfo[deviceIP][device[4]].states.green = rgbConversion.green,
this.deviceInfo[deviceIP][device[4]].states.red = rgbConversion.red;
this.deviceInfo[deviceIP][device[4]].states.blue = rgbConversion.blue;
this.deviceInfo[deviceIP][device[4]].states.green = rgbConversion.green;
}

await client[deviceIP].connection.lightCommandService(this.deviceInfo[deviceIP][device[4]].states);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.esphome",
"version": "0.1.3",
"version": "0.1.4-1",
"description": "Control your ESP8266/ESP32 with simple yet powerful configuration files created and managed by ESPHome",
"author": {
"name": "DutchmanNL",
Expand Down

0 comments on commit 50ae55e

Please sign in to comment.