100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Updated demo setup smart switch attribute types
Rich Turner8889c73b4a20
diff --git a/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java b/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.javaindex cfc4ef5c6..f0798f013 100644--- a/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java+++ b/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java@@ -259,7 +259,7 @@ public abstract class AbstractManagerSetup implements Setup {room.addAttributes(// On/Off- new AssetAttribute(switchAttributePrefix + "OnOff", BOOLEAN)+ new AssetAttribute(switchAttributePrefix + "OnOff", NUMBER).setMeta(new MetaItem(LABEL, Values.create(switchLabelPrefix + " on/off")),new MetaItem(ACCESS_RESTRICTED_WRITE, Values.create(true)),@@ -286,7 +286,7 @@ public abstract class AbstractManagerSetup implements Setup {new MetaItem(RULE_EVENT, Values.create(true))).addMeta(shouldBeLinked ? agentLinker.apply(2) : null),// Smart enabled- new AssetAttribute(switchAttributePrefix + "SmartEnabled", BOOLEAN)+ new AssetAttribute(switchAttributePrefix + "SmartEnabled", NUMBER).setMeta(new MetaItem(LABEL, Values.create(switchLabelPrefix + " smart control enabled")),new MetaItem(ACCESS_RESTRICTED_WRITE, Values.create(true)),