ioBroker.vis icon indicating copy to clipboard operation
ioBroker.vis copied to clipboard

Bindings mit Doppelpunkt

Open Parodontitis opened this issue 5 years ago • 10 comments

Ein typischer Datenpunkt von smartmeter ist: smartmeter.0.1-0:1_8_1_255.value Wenn ich jetzt im HTML den Wert mit {smartmeter.0.1-0:1_8_1_255.value} ausgeben will, wird immer ein 0 angezeigt. Meine Vermutung ist, dass es an den Doppelpunkten in DP-Namen liegt.

Da Doppelpunkte in Datenpunktnamen erlaubte Zeichen sind, wurde mein issue abgelehnt. Siehe: https://github.com/Apollon77/ioBroker.smartmeter/issues/16

Parodontitis avatar Jan 20 '19 15:01 Parodontitis

Das gleiche Problem tritt auch bei dem Adapter ioBroker.unifi auf. Hier werden die MAC-Adressen im Statenamen verwendet. Beispiel: {unifi.0.default.devices.11:22:33:44:55:66.num_sta} liefert immer 0. Soehe auch https://forum.iobroker.net/topic/4514/adapter-iobroker-unifi/466

RK62 avatar Jun 12 '20 19:06 RK62

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar Sep 11 '20 02:09 stale[bot]

Bestätigung für stale bot: Die Einschränkung besteht auch noch in vis V1.2.11

RK62 avatar Sep 13 '20 08:09 RK62

Semicolon is used in the variable definition. So how can I distinguish between {unifi.0.default.devices.11:22:33:44:55:66.num_sta} and {id:unifi.0.default.devices.11.num_sta}. If you have an Idea, I could implement it.

GermanBluefox avatar Sep 21 '20 10:09 GermanBluefox

I think using an escape character would be the most intuitive method:

{unifi.0.default.devices.11\:22\:33\:44\:55\:66.num_sta} for the state unifi.0.default.devices.11:22:33:44:55:66.num_sta

RK62 avatar Sep 24 '20 18:09 RK62

Hi,this also affects the "BLE" adapter. Here's an example of a DP: ble.0.e7:2e:00:62:28:c4.battery

Would really appreciate if something could be done about this.

mrfenyx avatar Sep 29 '20 09:09 mrfenyx

I think using an escape character would be the most intuitive method:

{unifi.0.default.devices.11\:22\:33\:44\:55\:66.num_sta} for the state unifi.0.default.devices.11:22:33:44:55:66.num_sta

That is crashing the whole instance.

I habe this bug also with the BLE adapter which point name have :

JensBond avatar Feb 06 '21 14:02 JensBond

For data-points with ":" I use aliases. So I'm able to create DP without ":" but with the same content. You need one DP-alias for every DP with ":" but it works fine.

Parodontitis avatar Feb 06 '21 16:02 Parodontitis

Same problem with data from Swiss-Weather-API

@GermanBluefox: Idea on how to distinguish colons used for variable declaration and colons that are part of a datapoint-name:

  • any colon that appears before the first dot is a variable declaration: i.e. id:unifi.0.default.devices.11.num_sta}
  • any colon that appears after the first dot is a part of the data points name: i.e. unifi.0.default.devices.11:22:33:44:55:66.num_sta

The proposal from Parodontitis is quite cumbersome in my case. I plan to visualize 100+ such datapoints. Creating for each of them an alias would be an overkill

jobe451 avatar Jul 24 '21 23:07 jobe451

I would more propose to allow the OBject ID to be in quotes to identify "this belongs together and should not be split. see https://github.com/ioBroker/ioBroker.vis/pull/388#issuecomment-888897185 ... wuld that make sense?

In fact would be comparable convention as in CSV or such

Apollon77 avatar Jul 29 '21 08:07 Apollon77