Giter Club home page Giter Club logo

scrounger / iobroker.linkeddevices Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 11.0 2.03 MB

Create linked objects (datapoints) of your devices with a self-defined structure. This makes it possible to create a structure in ioBroker, where all objects are centralized, e.g. to be used in the vis or scripts.

Home Page: https://forum.iobroker.net/topic/22301/neuer-adapter-linkeddevices

License: MIT License

HTML 8.01% CSS 0.05% JavaScript 91.94%
iobroker iobroker-adapter logic

iobroker.linkeddevices's People

Contributors

alcalzone avatar algar42 avatar apollon77 avatar fredf63 avatar germanbluefox avatar ldittmar81 avatar marc2016 avatar paul53 avatar schumyhao avatar scrounger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.linkeddevices's Issues

Bitte Text anpassen

Prinzipiell haben wir kein Problem damit, dass ein Entwickler, der sich Mühe gibt was zu entwickeln und seine Freizeit opfert, eine kleine Anerkennung bekommt, aber wenn ein solchen Link eingebaut wird, muss es klar ersichtlich sein an wem das Geld geht. Mit "uns" gehen alle User davon aus, dass die Spende an das ioBroker-Team geht. Hier bitte dein Text so anpassen, so dass es ersichtlich ist, dass die Spende an den Entwickler des ioBroker.linkeddevices Adapters geht. Danke!

Irgendwie so: Dir gefällt der Adapter? Dann unterstütze den Adapterentwickler (Scrounger) doch mit einer kleinen Spende. (Die Spende geht direkt an den Entwickler, der auch für den Spendenaufruf allein verantwortlich ist.)

28-10-_2019_08-48-55

28-10-_2019_09-11-38

Object is invalid Meldung

v1.1.4
Da steht reporten .. also reporte ich. Nach einem Neustart im Log gefunden .. nach "Reparatur" keine Änderung:

linkeddevices.0 2020-07-07 06:59:04.299 info (22477) [initialObjects] finished
linkeddevices.0 2020-07-07 06:59:04.293 info (22477) [createAllLinkedObjects] count of active linkedObjects: 2
linkeddevices.0 2020-07-07 06:59:04.258 info (22477) [createLinkedObject] linked object 'alexa2.0.Echo-Devices.G091470400150342.Commands.speak' (string) to 'linkeddevices.0.echo_wohnzimmer.ACTUAL' (state)
linkeddevices.0 2020-07-07 06:59:04.203 warn (22477) This object will not be created in future versions. Please report this to the developer.
linkeddevices.0 2020-07-07 06:59:04.203 warn (22477) Object linkeddevices.0.echo_wohnzimmer.ACTUAL is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json
linkeddevices.0 2020-07-07 06:59:04.189 info (22477) [createLinkedObject] linked object 'alexa2.0.Echo-Devices.G0913L05924404UQ.Commands.speak' (string) to 'linkeddevices.0.echo_schlafzimmer.ACTUAL' (state)
linkeddevices.0 2020-07-07 06:59:04.099 warn (22477) This object will not be created in future versions. Please report this to the developer.
linkeddevices.0 2020-07-07 06:59:04.099 warn (22477) Object linkeddevices.0.echo_schlafzimmer.ACTUAL is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json
linkeddevices.0 2020-07-07 06:59:03.656 warn (22477) This object will not be created in future versions. Please report this to the developer.
linkeddevices.0 2020-07-07 06:59:03.655 warn (22477) Object linkeddevices.0.echo_wohnzimmer.ACTUAL is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json
linkeddevices.0 2020-07-07 06:59:03.646 warn (22477) This object will not be created in future versions. Please report this to the developer.
linkeddevices.0 2020-07-07 06:59:03.646 warn (22477) Object linkeddevices.0.echo_schlafzimmer.ACTUAL is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json
linkeddevices.0 2020-07-07 06:59:03.607 info (22477) [initialObjects] started...
linkeddevices.0 2020-07-07 06:59:03.589 info (22477) starting. Version 1.1.4 in /opt/iobroker/node_modules/iobroker.linkeddevices, node: v10.21.0, js-controller: 3.1.6

Feature request - Groups or ability to link multiple datapoint into one

Hi,
it would be nice to be able link multiple datapoints of the same type into one linked device.
By using defined functions like min, max, median, latest.

My use case would be the unifi adapter which has a datapoint "last_seen" for any connected device.
To get a "anyone_last_seen" I would link them using "max" so the latest timestamp of all the devices would be linked to "anyone_last_seen".

Just as an idea :)
Anyhow great work 👍

Javascript Adapter with id != 0 can not be detected

Describe the bug
I have a javascript adapter installed, but it does not get recognized by the adapter.

To Reproduce
Steps to reproduce the behavior:

  1. Install two javascript adapters
  2. Delete javascript.0 adapter
  3. Install linked-devices adapter
  4. javascript.1 adapter does not get recognized

Expected behavior
Adapter can detect any javascript adapter.

Screenshots & Logfiles
The problem is this line (https://github.com/Scrounger/ioBroker.linkeddevices/blob/master/admin/index_m.js#L112). The adapter only checks for javascript.0 being installed, it should check if any javascript adapter is installed.

Versions:

  • Adapter version: 1.2.2
  • JS-Controller version: 2.8.0
  • Node version: v10.19.0
  • Operating system: Raspbian

Unable to add a "SPACE" in the "prefix for id of linked object" field

Unable to add a "space" in the "prefix for id of linked object" field

  1. Open the settings field of a State object
  2. Try to add: "philips hue" in the "prefix for id of linked object" field

image

  1. Error. See picture

image

  1. It is not allowed to enter a SPACE in this field. Adding a SPACE was allowed until recently.

Linkeddevices Version:
image

Leerzeichen

Es können auch Namen mit Leerzeichen vergeben werden. Dadurch compiled Java keine Scripte mehr und viele meiner Scripte haben nicht mehr funktioniert.

Herr Dittmar sagte mir, das man keine Objectnamen mit Leerzeichen erstellen darf, was ich nicht wusste.

Bitte das Script so abändern das keine Verlinkungen mehr mit Leerzeichen erstellt werden können.

Danke

Safari Browser: Fehler bei der Adapterkonfiguration

Erstmal danke für diesen spitzenmäßigen Adapter. Der macht das Leben bei Änderungen deutlich leichter. Allerdings bekomme ich ihn nicht vollständig zum laufen.

Wenn ich die Instanz konfigurieren möchte, kommt sofort diese Fehlermeldung:

Bildschirmfoto 2020-01-25 um 09 56 42

Auch die Erzeugung des Skripts für die Variablen aller verlinkten Objekte funktioniert nicht.

JavaScript Enginge ist installiert.

Expert Einstellungen: Boolean negieren

Die meisten meiner Geräte haben den Datenpunkt "reachable".
Die Homematic Geräte haben aber den DP "unreachable". Ich würde alle DP durch das Verlinken gerne vereinheitlichen. Dazu muss Homematic DP also einmal umgedreht/negiert werden.

Deshalb wünsche ich mir unter Expert Einstellungen die Möglichkeit für Boolean-Werte.
Vielen Dank!

role ändern

Möglichkeit die role zu ändern, mit dropdown für bestehende zum auswählen

Adapterkonfiguration: Tabelle Delete Button hinzufügen

In der Adapterkonfiguration für die Items in der Tabelle einen Delete Button hinzufügen:

Umsetzungsmöglichkeiten

  • generell aktiv -> löscht custom data vom parentObjekt und das linkedObjekt
  • nur aktiv bei nicht mehr verlinkten Objekte -> löscht das linkedObjekt

Please check ioBroker.linkeddevices with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Russian translation

It would be nice to correct the translation into Russian.
image
"option1" must be "Ну удалять связанные устройства после отмены привязки"

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Scrounger/ioBroker.linkeddevices

  • [E502] "admin/img/info-big.png" not found, but selectID.js used in index_m.html
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2020 Scrounger [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2020 Scrounger [email protected]" at the start of LICENSE
  • [E815] file tsconfig.json found in repository, but not found in .npmignore

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Datenpunkteigenschaften mehrerer DP auf einmal ändern funktioniert nicht

Schau mal bitte hier im Thread, dort ist alles beschrieben. https://forum.iobroker.net/topic/40136/datenpunkteigenschaften-mehrerer-dp-auf-einmal-%C3%A4ndern

Admin: 4.1.12
npm: 6.14.6
js: 3.1.6
node.js: v12.18.4
LinkedDevices: 1.4.1

In der Browserconsole wird ein Error geloggt:

Uncaught TypeError: Cannot read property 'role' of undefined at Object.customPostInits.linkeddevices (<anonymous>:108:74) at Customs.initCustomsTabs (adminCustoms.js:210) at adminCustoms.js:875 at Object.success (adminCustoms.js:630) at l (jquery-3.2.1.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2) at x (jquery-3.2.1.min.js:4) at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4)

Custom object properties deleted on adapter restart

Describe the bug
It looks like on restart adapter recreate all linked objects from scratch and removes all the custom properties that were added to objects by other adapters.

To Reproduce
For example, I have couple of objects for thermostat which are linked as:
image

when I add this two temperature objects to IoT adapter to create GH thermostat, IoT adds some properties to the linked object:
image

but when adapter is restarted the object properties are copied back from original states:
image

Expected behavior
Is it possible to make adapter keep the changed object properties instead of copy them from original object each time adapter is started?
i.e. copy on first creation and then keep untouched until update is manually requested (e.g. this could be a button in adapter settings to "re-link" particular state and drops all the settings made.

Versions:

  • Adapter version: 1.0.1
  • JS-Controller version: 1.5.14
  • Node version: 10.16.3
  • Operating system: Linux

Create channel or device automatically

Hi
For ioBroker.typedetector, it require set enum for channel or device, if some state objects can detected as a known type.
For example: brightness, on, temperature can detected as a colortemperature light.
image
But for now, after I linked those 3 state objects together, I can not set yeelightlamp enum property, because this is not a channel.

Can you create channel automatically if prefix is set?

linkeddevices are dropping smartnames for iot Adapter

Please have a look at
https://forum.iobroker.net/topic/34420/troubleshooting-iot-smart-devices-linkeddevices-hm-rpc

Basically when I add a smart device based on a linkeddevices object which is then linked to a Homematic devices, the information (smartname, etc) gets correctly into the Raw data for the linkeddevices object.

Once I am rebooting the ioBroker host OS, the smartdevice information seems to get lost from the raw data of the linkeddevices object. Hence the smart device gets lost in the iot adapter, too.

I observed this with all (about 10-12) Homematic devices I tried to include as smart devices in this way. It did not happen with 3 Shelly devices I included in the same manner.

iot: 1.5.3
linkeddevices: 1.1.4
hm-rpc: 1.14.9
node and node.js: 12.16.3
npm: 6.14.4

Best regards,
Stefan

Number conversion for hue lights doesn't work as expected

Describe the bug
I created a linked device for my hue lights as described in your documentation. When I change the value of an hue light bulb in the hue adapter it works fine, but when I change the value of the brightness in your adapter to 45 for example the conversion (*100/255) produces 114.75. But this value won't be accepted by bulb because of its decimal places.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'linkeddevices.0.Licht.Wohnzimmer.Kugel_Licht', which is my linkeddevices node for my light bulb
  2. Change value to '45'
  3. Scroll down to 'hue-extended.0.lights.045-kugel_weis_wohnzimmer.action.brightness'
  4. See error (value '114.75')

Expected behavior
The adapter should remove the decimal places on both sides, as far as it is configured. Additionally an option "Convert according to function" would be useful.

Versions:

  • Adapter version: 1.4.2
  • JS-Controller version: 3.1.6
  • Node version: 12.20.0
  • Operating system: Raspberry Pi OS Kernel version 5.4.79-v7l+

iot-Adapter verliert die zuordnung beim Neustart von linkeddevices

Describe the bug
Wenn das System neustartet oder der linkeddevices-Adapter neu gestartet wird, verliert der iot-Adapter die Geräte

To Reproduce
Steps to reproduce the behavior:

  1. iot-Adapter anwählen, neues Gerät eibfügen und speichern
  2. linkeddevices-Adapter neustarten
  3. iot-Adapter Einstellungen überprüfen
  4. alle Geräte, die über den linkeddevices auf die Geräte verweisen sind weg

Expected behavior
Die Geräte sollten noch da sein, nach neustart

Screenshots & Logfiles
keine Einträge im Log

Versions:

  • Adapter version: 1.4.0
  • JS-Controller version: 3.1.6
  • Node version: 12.20.0
  • Operating system: Debian

Error only numbers and math operators allowed

English:
Error only numbers and math operators allowed is always dipslayed if something other than

  • or / is typed in the field for "Conversion for linke object"

Deutsch:
Ich würde gerne eine verlinktes Objekt für ein Rollo anlegen und dabei die Umrechnung zum invertieren der Position in Prozente nutzen.
Das verlinkte Objekt ist vom Typ "Zahl". Sobald ich die mathematische Formel zum invertieren eingebe erscheint die oben genannte Fehlermeldung.

Meine Formel wäre: *(-1)+100 ( leichter wäre: 100 - obj.val aber ich denke so funktioniert die Syntax nicht da ich ja keine Variable des Objekt in der Umrechnung mitgegeben bekomme.)

Der Fehler erscheint sowohl in der Version 1.2.2 also auch 1.4.0

Problem with SQL Settings in combination with Linkeddevices

Describe the bug
After opening the SQL Settings from a Datapoint i just get the Message "undefined"
This seems to be a problem coming from linkeddevices adapter, cause if i downgrade to 1.2.2 the problem is gone...

To Reproduce
Steps to reproduce the behavior:

  1. Go to a datapoint
  2. Click on settings
  3. Scroll down to sql
  4. See error

Expected behavior
I expected the settings to open

Screenshots & Logfiles
Here you can see the result
image

Versions:

  • Adapter version: problems after 1.2.2
  • iobroker.sql: 1.15.3
  • JS-Controller version: 3.1.6
  • Node version: 10.23.0
  • Operating system: Raspian Buster

Neue "Link" keine Experten Optionen mehr verfügbar

Hi
ich nutz ja linkeddevices schon ziemlich lang und bin absolut begeistert.
jedoch musste ich jetzt bei neu angelegten Links feststellen, dass dort die Experten Optionen nicht auswählbar sind (erscheint gar nicht erst der Haken zum aktivieren).
Alte links kann man noch anpassen und auch dort die experten Optionen ändern usw.
Ist das ein bekannter Fehler?
Bin auf 1.2.2
Gruss
Björn

neuerLink

alterLink

Objekte (Shutter) funktionieren nicht im iot Adapter

Ich versuche über "intelligente Aufzählungen" Shutter vom Shelly in den iot Adapter zu bekommen. Allerdings werden keine Geräte gefunden. Was mache ich falsch?

{ "from": "system.adapter.linkeddevices.0", "user": "system.user.admin", "ts": 1600426986556, "common": { "name": "EG_HWR_Rollade_Fenster", "type": "number", "role": "level.blind", "unit": "%", "desc": "Created by linkeddevices", "min": 0, "max": 100, "read": true, "write": true, "smartName": false, "custom": { "linkeddevices.0": { "enabled": true, "parentId": "shelly.0.SHSW-21#32BE5B#1.Shutter.Position", "parentType": "number", "isLinked": true } }, "icon": "linkeddevices_small.png" }, "native": {}, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1636 }, "_id": "linkeddevices.0.Shutter.EG.EG_HWR_Rollade_Fenster.Position", "type": "state" }

Bildschirmfoto 2020-09-21 um 12 39 35

add option for smartName to the linked device

In the options for the new object give the possibility to assign a SmartName directly to it.

example:
createState("Test-Button", { name: 'Test-Button', "role": "button", "type": "mixed", "read": true, "write": true, "smartName": { "de": "Test-Button", "smartType": "SWITCH" } });

[Feature Request] Debounce/Delay beim Übertragen?

Es wäre stellenweise für mich von Vorteil, wenn beim Übertragen von Werten einstellbar wäre, dass für x Zeiteinheiten der Wert ein bestimmter sein muss, damit der virtuelle Datenpunkt auf diesen gestellt wird.
Bei booleans würde das bedeuten, dass gewählt werden kann, dass der Quelldatenpunkt mindestens x Zeiteinheiten auf einem bestimmten Wert stehen muss, damit der virtuelle Datenpunkt umgestellt wird. Wenn in der Zwischenzeit einmal der Quelldatenpunkt auf den anderen Wert und zurück wechselt sollte der virtuelle Datenpunkt das Timeout erneut beginnen. Wenn der Quell- und der virtuelle Datenpunkt beide auf dem eingestellten Wert sind, weil das Timeout abgelaufen ist und der Quelldatenpunkt auf den anderen wechselt soll der virtuelle Datenpunkt sofort auf den neuen Wert wechseln.
Konkretes Beispiel: Die Anwesenheitserkennung setzt sporadisch für 30 Sekunden aus. Wenn ich einstelle, dass der Quelldatenpunkt eine Minute false sein muss, damit der virtuelle Datenpunkt auf false wechselt sind diese kurzen Ausfälle somit herausgefiltert und der virtuelle Datenpunkt bleibt auf true stehen bis ich länger als eine Minute am Stück abwesend bin.
Beispiel für Zahlwerte: Hier stelle ich es mir so vor, dass wählbar ist, ob ein Wert beim größer oder beim kleiner werden träge ist. Ich erfasse den Stromverbrauch meiner Waschmaschine, welche fertig ist, wenn sie mindestens eine Minute unter 3 Watt verbraucht. Es kommt immer wieder vor, dass sie für unter 10 Sekunden unter 3 Watt verbraucht. Wenn also eingestellt werden würde, dass ein Wert für mindestens 60 Sekunden niedrig sein muss, damit er sinkt würde folgendes passieren:
Start um Mitternacht (00:00:00 Uhr): gemessen 100, virtueller Datenpunkt: 100
00:10:00 Uhr: gemessen 50, virtueller Datenpunkt 100 (Timer startet)
00:10:30 Uhr: gemessen 90, virtueller Datenpunkt 100 (Timer zur Hälfte abgelaufen, zweiter Timer für 90 startet)
00:11:00 Uhr: gemessen 90, virtueller Datenpunkt wechselt auf 90, da der Wert seit einer Minute unter oder auf 90 ist.
00:11:30 Uhr gemessen 50, virtueller Datenpunkt bleibt auf 90, Timer für 50 wird gestartet
00:12:00 Uhr: gemessen 1000, virtueller Datenpunkt wechselt sofort auf 1000, da der Wert größer als vorher ist.
00:15:00 Uhr: gemessen 100, virtueller Datenpunkt bleibt auf 1000, Timer startet
00:15:30 Uhr: gemessen 10, virtueller Datenpunkt bleibt auf 1000, zweiter Timer startet
00:15:45 Uhr: gemessen 100, virtueller Datenpunkt bleibt auf 1000, zweiter Timer wird abgebrochen, da der Wert wieder so hoch ist wie vor der Änderung, die zum Starten des Timers geführt hat.
00:16:00 Uhr gemessen 200, virtueller Datenpunkt wechselt auf 200, da der Wert eine Minute unter 1000 war und 200 der höchste Wert innerhalb der Zeitspanne war.

Ich hoffe es ist klar geworden was ich mir wünsche. Sollte irgendetwas unklar sein einfach nachfragen.
Ob dieses Scenario durch diesen Adapter abgedeckt werden sollte oder nicht überlasse ich dem Entwickler. Aktuell habe ich ein "dummes" Skript, dass bei meiner Waschmaschine nur prüft, ob der Verbrauch der Waschmaschine länger als eine Minute auf oder unter 3 Watt ist. Das Skript könnte vollständig durch diesen Adapter ersetzt werden.
Ein Datenpunkt überträgt den Verbrauch mit Trägheit und ein anderer Datenpunkt wandelt diesen dann in einen Boolean um, wenn der Wert auf oder unter 3 ist.

create Javascript: object check hinzufügen

für die get Funktionen sollte eine Prüfung erfolgen, ob das Objekt überhaupt existiert und ob es verlinkt ist (sofern ein linkedObject) -> nein, dann error im log anzeigen und 'null' zurück geben

Error message after install

After installing the Adapter i get the following error message as a popup (see image).

To reproduce the error message, I click on settings-symbol for linkeddevices in Instances-Tab.

I guess its just a typo :)

Thanks,
Andi
Bildschirmfoto 2019-09-25 um 11 59 20

Linked device in erster Zeile - nicht editierbar

Hallo! :-)

Wenn ich die Verlinkung der Devices in den Adapteroptionen "trenne", kann ich diese auch über den "Link" Button wieder zu einem Objekt hinzufügen.
Das funktioniert aber nicht beim ersten Eintrag in der Liste, erst ab dem zweiten.

Umrechnung für verlinktes Objekt

Wäre es möglich, bei den Operatoren für verlinke Objekte auch "+" und "-" zuzulassen? Ich hätte gerne bei gewissen Objekten den Umkehrwert berechnet. Meine Z-Wave Rollos sind mit 99 ganz hoch- und mit 0 ganz runtergefahren. Ich möchte aber 0 für geöffnet und 99, bzw. 100 für geschlossen haben, sprich folgende Umrechnung: WERT * 100 / 99 * (-1) + 100.

Object will not be created in future

Ich soll dem Entwickler was melden ...

linkeddevices.0 2020-09-10 19:56:25.878 info (11629) [onObjectChange] count of active linkedObjects: 2
linkeddevices.0 2020-09-10 19:56:25.877 info (11629) [createLinkedObject] linked object 'alexa2.0.Echo-Devices.G0913L05924404UQ.Commands.speak' (string) to 'linkeddevices.0.echo_schlafzimmer.ACTUAL' (state)
linkeddevices.0 2020-09-10 19:56:25.823 warn (11629) This object will not be created in future versions. Please report this to the developer.
linkeddevices.0 2020-09-10 19:56:25.822 warn (11629) Object linkeddevices.0.echo_schlafzimmer.ACTUAL is invalid: obj.common.type has an invalid value (state) but has to be one of number, string, boolean, array, object, mixed, file, json
linkeddevices.0 2020-09-10 19:56:25.818 info (11629) [onObjectChange] parentObject 'alexa2.0.Echo-Devices.G0913L05924404UQ.Commands.speak' properties changed

Übernimmt Custom Settings in Linked Devices

Jeder verlinkte Datenpunkt übernimmt alle Custom-Settings vom Original Objekt.
Dadurch werden auch vom verlinktem Objekt z.B. alles nochmal in SQL geloggt und noch viele andere Adapter machen etwas doppelt/ungewollt

Verlinkte Datenpunkte sollten die Custom-Settings nicht übernehmen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

  • Adapter version: 1.4.1
  • JS-Controller version: 3.1.6
  • Node version: v12.20.0
  • Operating system: Docker Linux x86

Verify Compact mode for your adapter

We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.

Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512

On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.

Thank you for your support.

wrong link to docs

Describe the bug
You've changed the directory name "doc" to "docs" and should change the link in e.g. readme.md

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Konvertierung in Typ "Dauer": Option Nullen immer anzeigen

Aktuell wird bei der Konvertierung in Typ "Dauer" der Wert 0:49 bei Anzeigeformat HH:mm in 49 umgewandelt. Ich hätte gerne das Ergebnis 00:49. Wenn ich die Doku der moment-duration-format Library richtig verstehe, kann dort mittels setzen des Parameters { trim: false } die Anzeige der führenden Nullen erzwungen werden. Es wäre toll, wenn diese Option auch im Adapter implementiert werden könnte.

automatische Namensvergabe von "name of linked objekt"

wie schon im Forum geschrieben hier meine Anregung:
Wenn ich mit LindedDevice meine States funktioniert soweit eigendlich alles sehr gut. Ich habe aber ein Problem, das ich die Verschiedenen States-ID's eines Geräts in Blockly nicht unterscheiden kann, da alle States eines Channels mit dem gleichen Namen Angezeigt werden. Hier ein Beispiel:
In das Feld "prefix for ID of linked objects" gebe ich ja den Pfad an wo er mir der State anlegt. Dann vergebe ich von den Name in "name of linked object". Z.B.: "Wohnzimmer.Licht.Deckenlampe" und "Wohndecke". Das mache ich für alle States dieses Channels. Die ID's dieser States sind z.B. "active_bright", "ct", "hue", "sat", "power" usw.
In meinen Blocklys sehe ich bei allen States die verbaut sind nur "Wohndecke" und ich suche ewig um mich bei änderungen zurecht zu finden.
Meine Idee war:
Ich tippe wie bisher die gewünschte "prefix for ID of linked objekts" ein und kopiere diese wie bisher in jeden State des Channels den ich anwähle.
Es wäre absolut super, wenn man einen Button zum Verketten hätte wie z.B."prefix for ID of linked objects" & "id of linked object".
Im Feld "name of linked objekt" würde in diesem Fall z.B. stehen "Wohnzimmer.Licht.Deckenlampe.power". Erstens könnte man sich jede Menge Tiparbeit sparen und in den Blocklys wäre der genaue State auch ersichtlich.
Ich hoffe, es ist verständlich was ich meine.
Zum veranschaulichen habe ich mal einen State (Button_1_ Klick) im Namen umbenannt. Das Ergebnis sieht man im Blockly.
Taster_LD
LinkedBlocklyMarked

IoT adapter doesn't understand LinkedDevices datapoints

I'm using the LinkedDevices Adapter version 0.3.0 and IoT Adapter version 0.4.3 (stable) to trigger Logitech Harmony Scenes. The Harmony Adapter offers datapoints as numerics (0 for off, 1 for starting 2 for running) and I used the LinkedDevices adapter to convert that to a boolean.
This boolean works as intended but when I try to add the LinkedDevices boolean datapoint in the IoT Adapter I get the message:
"linkeddevices.0.Harmony.Fernseher" not exists or no native part.
The datapoint does exist and work as intended if the value is changed manually. Please add the "native part" whatever that means.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.