iobroker.esphome 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +14 -6
- package/admin/index_m.html +4 -0
- package/admin/words.js +20 -18
- package/io-package.json +194 -248
- package/lib/stateAttr.js +9 -0
- package/main.js +230 -133
- package/package.json +24 -41
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 DutchmanNL <rdrozda86@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -31,8 +31,7 @@ All our adapter documentation can be found at [The DrozmotiX Docu Page](https://
|
|
|
31
31
|
|
|
32
32
|
## Prerequisites
|
|
33
33
|
|
|
34
|
-
* NodeJS >=
|
|
35
|
-
* Python >=3.7, <4.0
|
|
34
|
+
* NodeJS >= 18.x
|
|
36
35
|
* API is activated in YAML
|
|
37
36
|
* For admin tabs (optional)
|
|
38
37
|
* ESPHome Dashboard IP is provided in instance settings
|
|
@@ -98,9 +97,7 @@ Example config, for more examples see [The DrozmotiX Docu Page](https://Drozmoti
|
|
|
98
97
|
Migrating from previous Sonoff Tasmota or ESPEasy setups is very easy. You just need to have ESPHome create a binary for you and then upload that in the web interface.
|
|
99
98
|
See for more details our [Docu Page](https://DrozmotiX.github.io/languages/en/Adapter/ESPHome/06.migration.html)
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Generated yaml files are stored at ```/opt/iobroker/node_modules/iobroker.esphome/config/>device<.yaml```
|
|
100
|
+
**_NOTE:_** Generated yaml files are stored at ```/opt/iobroker/iobroker-data/iobroker.esphome.>instance</>device<.yaml
|
|
104
101
|
|
|
105
102
|
|
|
106
103
|
## Support me
|
|
@@ -115,6 +112,17 @@ If you like my work, please consider a personal donation
|
|
|
115
112
|
### __WORK IN PROGRESS__
|
|
116
113
|
* (DutchmanNL)
|
|
117
114
|
-->
|
|
115
|
+
### 0.3.0 (2023-10-31) - Bugfixes & Improvements
|
|
116
|
+
* (Dutchman & SimonFischer04) Several Bugfixes
|
|
117
|
+
* (SimonFischer04) Support type "select device"
|
|
118
|
+
* (DutchmanNL) ESPHome dashboard default disabled
|
|
119
|
+
* (SimonFischer04) Migrate to @2colors/esphome-native-api
|
|
120
|
+
* (DutchmanNL) Automatically create needed directories, Fixes #168
|
|
121
|
+
* (SimonFischer04) Migrate usage of python to new structure, should solve all ESPHome Dashboard related installation issues
|
|
122
|
+
|
|
123
|
+
### 0.2.4 (2021-08-24)
|
|
124
|
+
* (DutchmanNL) Version of ESPHome Dashboard updated to 2021.8
|
|
125
|
+
* (DutchmanNL) Add option if config of ESPHome device should be shown as states (default = FALSE, safes 8 states for each sensor)
|
|
118
126
|
|
|
119
127
|
### 0.2.3 (2021-06-29)
|
|
120
128
|
* (Jey-Cee) Bugfix : Light component state not changed [#74](https://github.com/DrozmotiX/ioBroker.esphome/issues/74)
|
|
@@ -170,7 +178,7 @@ If you like my work, please consider a personal donation
|
|
|
170
178
|
## License
|
|
171
179
|
MIT License
|
|
172
180
|
|
|
173
|
-
Copyright (c)
|
|
181
|
+
Copyright (c) 2023 DutchmanNL <rdrozda86@gmail.com>
|
|
174
182
|
|
|
175
183
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
176
184
|
of this software and associated documentation files (the "Software"), to deal
|
package/admin/index_m.html
CHANGED
|
@@ -362,6 +362,10 @@
|
|
|
362
362
|
<span class="translate">Automatic device detection activated</span>
|
|
363
363
|
</div>
|
|
364
364
|
<!-- end Auto Discovery -->
|
|
365
|
+
<div class="col s4 input-field">
|
|
366
|
+
<label for="autodiscovery"></label><input type="checkbox" class="value" id="configStates" checked/>
|
|
367
|
+
<span class="translate">Show configuration as states</span>
|
|
368
|
+
</div>
|
|
365
369
|
</div>
|
|
366
370
|
|
|
367
371
|
<!-- <p class="translate title">Devices</p>-->
|
package/admin/words.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
// eslint-disable-next-line no-unused-vars
|
|
1
2
|
/*global systemDictionary:true */
|
|
2
3
|
'use strict';
|
|
3
4
|
|
|
4
5
|
systemDictionary = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
'API password': { 'en': 'Password', 'de': 'Passwort', 'ru': 'Пароль', 'pt': 'Senha', 'nl': 'Wachtwoord', 'fr': 'Mot de passe', 'it': "Parola d'ordine", 'es': 'Contraseña', 'pl': 'Hasło', 'zh-cn': '密码'},
|
|
7
|
+
'Add device manually': { 'en': 'Add device manually', 'de': 'Gerät manuell hinzufügen', 'ru': 'Добавить устройство вручную', 'pt': 'Adicionar dispositivo manualmente', 'nl': 'Voeg apparaat handmatig toe', 'fr': 'Ajouter un appareil manuellement', 'it': 'Aggiungi dispositivo manualmente', 'es': 'Agregar dispositivo manualmente', 'pl': 'Dodaj urządzenie ręcznie', 'zh-cn': '手动添加设备'},
|
|
8
|
+
'Automatic device detection activated': { 'en': 'Automatic device detection activated', 'de': 'Automatische Geräteerkennung aktiviert', 'ru': 'Активировано автоматическое обнаружение устройств', 'pt': 'Detecção automática de dispositivo ativada', 'nl': 'Automatische apparaat detectie geactiveerd', 'fr': 'Détection automatique des appareils activée', 'it': 'Rilevamento automatico del dispositivo attivato', 'es': 'Detección automática de dispositivos activada', 'pl': 'Aktywowane automatyczne wykrywanie urządzeń', 'zh-cn': '自动设备检测已激活'},
|
|
9
|
+
'Close': { 'en': 'Close', 'de': 'Schließen', 'ru': 'Закрыть', 'pt': 'Fechar', 'nl': 'Sluiten zodra klaar', 'fr': 'Fermer', 'it': 'Vicino', 'es': 'Cerrar', 'pl': 'Zamknij', 'zh-cn': '关闭'},
|
|
10
|
+
'Connected': { 'en': 'Connected', 'de': 'Verbunden', 'ru': 'Подключено', 'pt': 'Conectado', 'nl': 'Verbonden', 'fr': 'Lié', 'it': 'Collegato', 'es': 'Conectado', 'pl': 'Połączony', 'zh-cn': '连接的'},
|
|
11
|
+
'Delete': { 'en': 'Delete', 'de': 'Löschen', 'ru': 'Удалить', 'pt': 'Excluir', 'nl': 'Verwijderen', 'fr': 'Effacer', 'it': 'Elimina', 'es': 'Borrar', 'pl': 'Usuń', 'zh-cn': '删除'},
|
|
12
|
+
'Devices can be added manually or by autodiscovery': {'en': 'Devices can be added manually or by autodiscovery', 'de': 'Geräte können manuell oder durch die automatische Erkennung hinzugefügt werden', 'ru': 'Устройства можно добавлять вручную или с помощью автообнаружения', 'pt': 'Os dispositivos podem ser adicionados manualmente ou por autodiscovery', 'nl': 'Apparaten kunnen handmatig of door autodiscovery worden toegevoegd', 'fr': 'Les appareils peuvent être ajoutés manuellement ou par découverte automatique', 'it': 'I dispositivi possono essere aggiunti manualmente o tramite rilevamento automatico', 'es': 'Los dispositivos se pueden agregar manualmente o por descubrimiento automático', 'pl': 'Urządzenia można dodawać ręcznie lub przez automatyczne wykrywanie', 'zh-cn': '可以手动添加设备或通过自动发现添加设备'},
|
|
13
|
+
'ESPHomeDashboardEnabled': { 'en': 'Enable built-in ESPHome dashboard', 'de': 'Aktiviere das integrierte ESPHome-Dashboard', 'ru': 'Включить встроенный ESPHome Dashboard', 'pt': 'Ativar painel ESPHome integrado', 'nl': 'Schakel het ingebouwde ESPHome-dashboard in', 'fr': 'Activer le tableau de bord ESPHome intégré', 'it': 'Abilita il dashboard ESPHome integrato', 'es': 'Habilitar el panel de control ESPHome integrado', 'pl': 'Włącz wbudowany pulpit nawigacyjny ESPHome', 'zh-cn': '启用内置ESPHome仪表板'},
|
|
14
|
+
'ESPHome_Dashboard_Generic_info': { 'en': 'Here you can enable / disable the ESPHome dashboard hosted by ioBroker. A separate installation of ESPHome is not required!', 'de': 'Hier wird das von ioBroker bereitgestellt ESPHome-Dashboard aktiviert / deaktiviert. Eine separate Installation von ESPHome ist nicht erforderlich!', 'ru': 'Здесь вы можете включить / отключить панель управления ESPHome, запущенную ioBroker-ом. Устанавливать дополнительно ESPhome не нужно!', 'pt': 'Aqui você pode ativar / desativar o painel ESPHome hospedado por ioBroker. ', 'nl': 'Hier kunt u het ESPHome-dashboard dat wordt gehost door ioBroker in- / uitschakelen. Een seperate installatie is niet noodzakelijk!', 'fr': 'Ici, vous pouvez activer / désactiver le tableau de bord ESPHome hébergé par ioBroker. ', 'it': 'Qui puoi abilitare / disabilitare la dashboard ESPHome ospitata da ioBroker. ', 'es': 'Aquí puede habilitar / deshabilitar el panel de ESPHome alojado por ioBroker. ', 'pl': 'Tutaj możesz włączyć / wyłączyć pulpit nawigacyjny ESPHome obsługiwany przez ioBroker. ', 'zh-cn': '您可以在此处启用/禁用ioBroker托管的ESPHome仪表板。'},
|
|
15
|
+
'ESPHome_Dashboard_IP_info': { 'en': 'Please provide the IP address where the ESPHome dashboard is located (ioBroker or already existing instance).', 'de': 'Bitte die IP-Adresse angeben, unter der sich das ESPHome-Dashboard befindet (ioBroker oder bereits vorhandene ESPHome Instanz).', 'ru': 'Укажите IP-адрес, на котором расположена панель управления ESPHome (ioBroker или уже существующий экземпляр?)', 'pt': 'Forneça o endereço IP onde o ESPHome Dashboard está localizado (ioBroker ou instância já existente?)', 'nl': 'IP-adres op waar het ESPHome-dashboard zich bevindt (ioBroker of een reeds bestaande instantie?)', 'fr': "Veuillez fournir l'adresse IP où se trouve le tableau de bord ESPHome (ioBroker ou instance déjà existante?)", 'it': "Fornisci l'indirizzo IP in cui si trova ESPHome Dashboard (ioBroker o istanza già esistente?)", 'es': 'Proporcione la dirección IP donde se encuentra el panel de ESPHome (¿ioBroker o una instancia ya existente?)', 'pl': 'Podaj adres IP, pod którym znajduje się pulpit nawigacyjny ESPHome (ioBroker czy już istniejąca instancja?)', 'zh-cn': '请提供ESPHome仪表板所在的IP地址(ioBroker或已经存在的实例?)'},
|
|
16
|
+
'Edit': { 'en': 'Edit', 'de': 'Bearbeiten', 'ru': 'Редактировать', 'pt': 'Editar', 'nl': 'Bewerk', 'fr': 'Éditer', 'it': 'modificare', 'es': 'Editar', 'pl': 'Edytować', 'zh-cn': '编辑'},
|
|
17
|
+
'Edit device': { 'en': 'Edit device', 'de': 'Gerät bearbeiten', 'ru': 'Редактировать параметры устройства', 'pt': 'Editar dispositivo', 'nl': 'Bewerk apparaat', 'fr': "Modifier l'appareil", 'it': 'Modifica dispositivo', 'es': 'Editar dispositivo', 'pl': 'Edytuj urządzenie', 'zh-cn': '编辑装置'},
|
|
18
|
+
'ID': { 'en': 'ID', 'de': 'ID', 'ru': 'ID', 'pt': 'EU IA', 'nl': 'ID', 'fr': 'identifiant', 'it': 'ID', 'es': 'IDENTIFICACIÓN', 'pl': 'ID', 'zh-cn': 'ID'},
|
|
19
|
+
'IP': { 'en': 'IP', 'de': 'IP-Adresse', 'ru': 'IP', 'pt': 'IP', 'nl': 'IP', 'fr': 'IP', 'it': 'IP', 'es': 'IP', 'pl': 'IP', 'zh-cn': '知识产权'},
|
|
20
|
+
'IP-Address': { 'en': 'IP Address', 'de': 'IP-Adresse', 'ru': 'IP адрес', 'pt': 'Endereço de IP', 'nl': 'IP adres', 'fr': 'Adresse IP', 'it': 'Indirizzo IP', 'es': 'Dirección IP', 'pl': 'Adres IP', 'zh-cn': 'IP地址'},
|
|
21
|
+
'Name': { 'en': 'Name', 'de': 'Name', 'ru': 'Имя', 'pt': 'Nome', 'nl': 'Naam', 'fr': 'Nom', 'it': 'Nome', 'es': 'Nombre', 'pl': 'Nazwa', 'zh-cn': '姓名'},
|
|
22
|
+
'Show configuration as states': { 'en': 'Show configuration as states', 'de': 'Konfiguration als Zustände anzeigen', 'ru': 'Показать конфигурацию как состояния', 'pt': 'Mostrar configuração como estados', 'nl': 'Configuratie weergeven als toestanden', 'fr': "Afficher la configuration sous forme d'états", 'it': 'Mostra configurazione come stati', 'es': 'Mostrar configuración como estados', 'pl': 'Pokaż konfigurację jako stany', 'zh-cn': '将配置显示为状态'},
|
|
23
|
+
'device-pass': { 'en': 'Password', 'de': 'Passwort', 'ru': 'Пароль', 'pt': 'Senha', 'nl': 'Wachtwoord', 'fr': 'Mot de passe', 'it': "Parola d'ordine", 'es': 'Contraseña', 'pl': 'Hasło', 'zh-cn': '密码'},
|
|
24
|
+
'reconnect interval': { 'en': 'Reconnect Interval', 'de': 'Intervall für erneutes Verbinden', 'ru': 'Интервал повторного соединения', 'pt': 'intervalo de reconexão', 'nl': 'interval voor opnieuw verbinden', 'fr': 'intervalle de reconnexion', 'it': "ricollegare l'intervallo", 'es': 'intervalo de reconexión', 'pl': 'interwał ponownego łączenia', 'zh-cn': '重新连接间隔'},
|
|
23
25
|
};
|