NEWS
Alias Manager kann Homeconnect nicht
-
Ich schaffe es nicht die Inhalte eines Homeconnect Objektes in einen Alias zu bringen.
Es fehlt immer der Inhalt des Objektes.
Hier der Inhalt des Alias:{ "type": "state", "common": { "name": "Betriebsstatus", "role": "indicator", "type": "mixed", "read": true, "write": true, "alias": { "id": "homeconnect.0.484030393058001457.status.BSH_Common_Status_OperationState" }, "states": { "BSH.Common.EnumType.OperationState.Inactive": "Inactive", "BSH.Common.EnumType.OperationState.Ready": "Ready", "BSH.Common.EnumType.OperationState.Run": "Run", "BSH.Common.EnumType.OperationState.Finished": "Finished", "BSH.Common.EnumType.OperationState.Pause": "Pause", "BSH.Common.EnumType.OperationState.Aborting": "Aborting" } }, "_id": "alias.0.MyNewAlias.BSH_Common_Status_OperationState", "native": {}, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1727789032890, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }Hat jemand eine Idee?
-
Ich schaffe es nicht die Inhalte eines Homeconnect Objektes in einen Alias zu bringen.
Es fehlt immer der Inhalt des Objektes.
Hier der Inhalt des Alias:{ "type": "state", "common": { "name": "Betriebsstatus", "role": "indicator", "type": "mixed", "read": true, "write": true, "alias": { "id": "homeconnect.0.484030393058001457.status.BSH_Common_Status_OperationState" }, "states": { "BSH.Common.EnumType.OperationState.Inactive": "Inactive", "BSH.Common.EnumType.OperationState.Ready": "Ready", "BSH.Common.EnumType.OperationState.Run": "Run", "BSH.Common.EnumType.OperationState.Finished": "Finished", "BSH.Common.EnumType.OperationState.Pause": "Pause", "BSH.Common.EnumType.OperationState.Aborting": "Aborting" } }, "_id": "alias.0.MyNewAlias.BSH_Common_Status_OperationState", "native": {}, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1727789032890, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }Hat jemand eine Idee?
@werner2000x Der Alias Manager kann nur States lesen und nicht die Objekteigenschaften eines States. Dann musst halt Deine Logikamschine nehmen und selbst Datenpunkte anlegen, wenn Dir das so wichtig ist.
-
Ich schaffe es nicht die Inhalte eines Homeconnect Objektes in einen Alias zu bringen.
Es fehlt immer der Inhalt des Objektes.
Hier der Inhalt des Alias:{ "type": "state", "common": { "name": "Betriebsstatus", "role": "indicator", "type": "mixed", "read": true, "write": true, "alias": { "id": "homeconnect.0.484030393058001457.status.BSH_Common_Status_OperationState" }, "states": { "BSH.Common.EnumType.OperationState.Inactive": "Inactive", "BSH.Common.EnumType.OperationState.Ready": "Ready", "BSH.Common.EnumType.OperationState.Run": "Run", "BSH.Common.EnumType.OperationState.Finished": "Finished", "BSH.Common.EnumType.OperationState.Pause": "Pause", "BSH.Common.EnumType.OperationState.Aborting": "Aborting" } }, "_id": "alias.0.MyNewAlias.BSH_Common_Status_OperationState", "native": {}, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1727789032890, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }Hat jemand eine Idee?
@werner2000x sagte: eine Idee?
common.states entfernen und Lesekonvertierung?
val.replace('BSH.Common.EnumType.OperationState.', '')Das ganze Objekt:
{ "type": "state", "common": { "name": "Betriebsstatus", "role": "text", "type": "string", "read": true, "write": false, "alias": { "id": "homeconnect.0.484030393058001457.status.BSH_Common_Status_OperationState", "read": "val.replace('BSH.Common.EnumType.OperationState.', '')" } }, "_id": "alias.0.MyNewAlias.BSH_Common_Status_OperationState", "native": {}, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1727789032890, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }EDIT: Alternative Lesekonvertierung:
val.substring(35)
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden