Skip to content

Commit 381c97d

Browse files
committed
API-Response, Pause, Select Movie
1 parent 00bce3a commit 381c97d

8 files changed

+313
-153
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,33 @@ In the table you can add all the Twinkly lights you want to control.
3434

3535
The following additionals States are created per device when checked:
3636
* Device Info (read)
37+
* Additional Config Information (read)
3738
* Network Status (read)
3839
* MQTT (read/write)
3940

41+
42+
The following States can be changed:
43+
44+
| State | Description |
45+
| ------------ | ---------------------------------- |
46+
| `bri` | Brightness |
47+
| `mode.value` | Mode: RealTime (not yet supported), On, Off, Playlist, Demo, Effect |
48+
| `movie` | Active Movie, If multiple Movies are added in the Playlist feature then they can be selected here. Works only in Mode `On`. |
49+
| `name` | Name |
50+
| `on` | On/Off Switch |
51+
| `paused` | Pause Connection to Twinkly so you can do changes in the App. Otherwise you might loose the connection while working in the App |
52+
| `reloadMovies` | Reload the Movies (Playlist) |
53+
| `sat` | Saturation |
54+
4055
[Private API information](https://xled-docs.readthedocs.io/en/latest/) by [Pavol Babinčák](https://github.com/scrool)
4156

4257
## Changelog
4358

59+
### 0.1.16 (2021-11-28)
60+
* (patrickbs96) Add new Value `mode.colorConfig` from API-Response (Sentry IOBROKER-TWINKLY-J, IOBROKER-TWINKLY-K, IOBROKER-TWINKLY-M, IOBROKER-TWINKLY-N, IOBROKER-TWINKLY-P)
61+
* (patrickbs96) Add Pause-Feature, to work with app. (Twinkly only allows one active connection...)
62+
* (patrickbs96) Add Feature, activate uploaded Movies (Playlist)
63+
4464
### 0.1.15 (2021-10-26)
4565
* (patrickbs96) Add new Value `network.accesspoint.password_changed` from API-Response (Sentry IOBROKER-TWINKLY-A)
4666

admin/index_m.html

+10
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
// Set default-values
2525
if (settings.details === undefined)
2626
settings.details = false;
27+
if (settings.detailedInfo === undefined)
28+
settings.detailedInfo = false;
2729
if (settings.mqtt === undefined)
2830
settings.mqtt = false;
31+
if (settings.network === undefined)
32+
settings.network = false;
2933

3034
const devices = settings.devices || [];
3135

@@ -126,6 +130,12 @@
126130
<span class="translate" for="details">Device Info</span>
127131
</div>
128132
</div>
133+
<div class="row">
134+
<div class="col s12">
135+
<input class="value" id="detailedInfo" type="checkbox">
136+
<span class="translate" for="detailedInfo">Device Info</span>
137+
</div>
138+
</div>
129139
<div class="row">
130140
<div class="col s12">
131141
<input class="value" id="mqtt" type="checkbox">

admin/words.js

+12
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ systemDictionary = {
7474
'pl': 'Informacje o urządzeniu',
7575
'zh-cn': '设备信息'
7676
},
77+
'Additional Information': {
78+
'en': 'Additional Information',
79+
'de': 'Weitere Informationen',
80+
'ru': 'Дополнительная информация',
81+
'pt': 'Informações adicionais',
82+
'nl': 'Extra informatie',
83+
'fr': 'Information additionnelle',
84+
'it': 'Informazioni aggiuntive',
85+
'es': 'información adicional',
86+
'pl': 'Dodatkowe informacje',
87+
'zh-cn': '附加信息'
88+
},
7789
'MQTT': {
7890
'en': 'MQTT',
7991
'de': 'MQTT',

io-package.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
22
"common": {
33
"name": "twinkly",
4-
"version": "0.1.15",
4+
"version": "0.1.16",
55
"news": {
6+
"0.1.16": {
7+
"en": "Add new values from API-Response, Add Feature Pause, Add Feature select movies from Playlist",
8+
"de": "Neue Werte aus API-Response hinzufügen, Feature Pause hinzufügen, Feature hinzufügen Filme aus Playlist auswählen",
9+
"ru": "Добавить новые значения из API-Response, Добавить функцию, Пауза, Добавить функцию, выбрать фильмы из списка воспроизведения",
10+
"pt": "Adicione novos valores de API-Response, Add Feature Pause, Add Feature selecione filmes da lista de reprodução",
11+
"nl": "Voeg nieuwe waarden toe vanuit API-Response, Voeg functiepauze toe, voeg functie toe selecteer films uit afspeellijst",
12+
"fr": "Ajouter de nouvelles valeurs à partir de l'API-Response, ajouter une pause de fonctionnalité, ajouter des films de sélection de fonctionnalité à partir de la liste de lecture",
13+
"it": "Aggiungi nuovi valori da Risposta API, Aggiungi pausa funzionalità, Aggiungi funzionalità seleziona film dalla playlist",
14+
"es": "Agregue nuevos valores de API-Response, agregue pausa de funciones, agregue películas de selección de funciones de la lista de reproducción",
15+
"pl": "Dodaj nowe wartości z API-Response, Dodaj pauzę funkcji, Dodaj funkcję wybierz filmy z listy odtwarzania",
16+
"zh-cn": "从 API 响应添加新值、添加功能暂停、添加功能从播放列表中选择电影"
17+
},
618
"0.1.15": {
719
"en": "Add new values from API-Response",
820
"de": "Neue Werte aus API-Response hinzufügen",
@@ -126,6 +138,7 @@
126138
"devices": [],
127139
"interval": 60,
128140
"details": false,
141+
"detailedInfo": false,
129142
"mqtt": false,
130143
"network": false
131144
},

lib/twinkly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class Connection {
403403
if (resultError)
404404
reject(resultError);
405405
else
406-
resolve({timer: this.getObjectByArray('timer', response, ['time_now', 'time_on', 'time_off']), code: response['code']});
406+
resolve({timer: this.getObjectByArray('timer', response, ['time_now', 'time_on', 'time_off', 'tz']), code: response['code']});
407407
});
408408
}
409409

0 commit comments

Comments
 (0)