Пример #1
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(DriverGuid, "IKEA.TRADFRI.NAME", "IKEA.TRADFRI.DESCRIPTION", int.MaxValue, 1, true);
            factory.CreateNodeTemplate(DriverGuid, "IKEA.TRADFRI.NAME", "IKEA.TRADFRI.DESCRIPTION", "ikea.tradfri", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Ethernet),
                                       DriverGuid, false, false, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreatePropertyTemplate(new Guid("b6b5e4ff-8511-44f4-aceb-bd80d01a141b"), "IKEA.TRADFRI.SCAN.NAME", "IKEA.TRADFRI.SCAN.DESCRIPTION",
                                           "scan", PropertyTemplateType.Scan, DriverGuid, "COMMON.CATEGORY.DISCOVERY", true, false, "", null, 0,
                                           0);

            var gwInterface = new Guid("f15cca2e-7fe5-43f6-ad8a-ea4b60fc7b56");

            factory.CreateInterfaceType(gwInterface, "IKEA.TRADFRI.GATEWAY.NAME", "IKEA.TRADFRI.GATEWAY.DESCRIPTION", int.MaxValue, int.MaxValue, true);
            factory.CreateNodeTemplate(GatewayGuid, "IKEA.TRADFRI.GATEWAY.NAME", "IKEA.TRADFRI.GATEWAY.NAME", "ikea-tradfri-gateway", DriverGuid, gwInterface, false, false, true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);

            factory.CreatePropertyTemplate(new Guid("dbac52e1-a070-4961-b7fe-fb9ee6d924c7"), "IKEA.TRADFRI.GATEWAY.ID.NAME",
                                           "IKEA.TRADFRI.GATEWAY.ID.DESCRIPTION", IdAddressPropertyKey, PropertyTemplateType.Text, GatewayGuid,
                                           "COMMON.CATEGORY.ADDRESS", true, false, "", null, 1, 0);

            factory.CreatePropertyTemplate(new Guid("330b668e-2f46-42c3-b44e-b42a149a2a0d"), "IKEA.TRADFRI.GATEWAY.SECRET.NAME",
                                           "IKEA.TRADFRI.GATEWAY.SECRET.DESCRIPTION", SecretPropertyKey, PropertyTemplateType.Text,
                                           GatewayGuid, "COMMON.CATEGORY.ADDRESS", true, false, "", null, 1, 1);

            factory.CreatePropertyTemplate(new Guid("22438ff2-4739-4fd0-a2a0-abe691dfe1b4"), "IKEA.TRADFRI.GATEWAY.CONNECTION_KEY.NAME",
                                           "IKEA.TRADFRI.GATEWAY.CONNECTION_KEY.DESCRIPTION", ConnectionPropertyKey, PropertyTemplateType.Text,
                                           GatewayGuid, "COMMON.CATEGORY.ADDRESS", false, true, "", null, 1, 2);

            factory.CreatePropertyTemplate(new Guid("252d18ed-af14-447c-8472-2d3d0d15ff0d"), "IKEA.TRADFRI.GATEWAY.SCAN.NAME", "IKEA.TRADFRI.GATEWAY.SCAN.DESCRIPTION",
                                           "scan", PropertyTemplateType.Scan, GatewayGuid, "COMMON.CATEGORY.DISCOVERY", true, false, "", null, 2,
                                           0);

            CreateSwitch(factory, gwInterface);
            CreateLight(factory, gwInterface);
        }
Пример #2
0
        private void CreateLight(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("6d07b0a9-4635-4404-8254-76079ea7f6ce");

            factory.CreateInterfaceType(interfaceGuid, "APPLE_HOMEKIT_SERVER.BULB.NAME",
                                        "APPLE_HOMEKIT_SERVER.BULB.DESCRIPTION", 3, int.MaxValue, false);

            factory.CreateNodeTemplate(interfaceGuid, "APPLE_HOMEKIT_SERVER.BULB.NAME",
                                       "APPLE_HOMEKIT_SERVER.BULB.DESCRIPTION", "light-bulb-folder", DriverGuid, interfaceGuid, false, false,
                                       true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);
            AddAidProperty(interfaceGuid, factory);

            factory.CreateNodeTemplate(new Guid("37685cd8-0494-4ce4-8c59-1fddcf669aa3"), "APPLE_HOMEKIT_SERVER.BULB.SWITCH.NAME",
                                       "APPLE_HOMEKIT_SERVER.BULB.SWITCH.DESCRIPTION", "light-bulb-switch", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       true, false, false, NodeDataType.Boolean, 1, false);

            factory.CreateNodeTemplate(new Guid("a0c1a70f-ca76-40e5-b7a1-74ff62edfd19"), "APPLE_HOMEKIT_SERVER.BULB.STATUS.NAME",
                                       "APPLE_HOMEKIT_SERVER.BULB.STATUS.DESCRIPTION", "light-bulb-status", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, false,
                                       true, true, false, NodeDataType.Boolean, 1, false);

            factory.CreateNodeTemplate(new Guid("79e7c522-3eaa-49af-8985-44b345e30473"), "APPLE_HOMEKIT_SERVER.BULB.BRIGHTNESS.NAME",
                                       "APPLE_HOMEKIT_SERVER.BULB.BRIGHTNESS.DESCRIPTION", "light-bulb-brightness", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, false,
                                       true, true, false, NodeDataType.Integer, 1, false);

            factory.CreateNodeTemplate(new Guid("515b3a15-9bc5-4121-9f89-36abbb7108c8"), "APPLE_HOMEKIT_SERVER.BULB.HUE.NAME",
                                       "APPLE_HOMEKIT_SERVER.HUE.BRIGHTNESS.DESCRIPTION", "light-bulb-hue", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true,
                                       true, true, false, NodeDataType.String, 1, false);
        }
Пример #3
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(DriverGuid, "APPLE_HOMEKIT_SERVER.NAME", "APPLE_HOMEKIT_SERVER.DESCRIPTION", int.MaxValue, int.MaxValue, true);
            factory.CreateNodeTemplate(DriverGuid, "APPLE_HOMEKIT_SERVER.NAME", "APPLE_HOMEKIT_SERVER.DESCRIPTION", "apple-homekit-server", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Virtual),
                                       DriverGuid, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("13d10902-a07c-4abf-a331-70ad2f95a184"), "APPLE_HOMEKIT_SERVER.PAIRING_KEY.NAME", "APPLE_HOMEKIT_SERVER.PAIRING_KEY.DESCRIPTION", "pairing-key", DriverGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.String, 1, false, false);

            factory.CreatePropertyTemplate(new Guid("4085d4eb-11c0-48ff-b005-045020729d85"), "LTSK_PRIVATE", "LTSK_PRIVATE", "ltsk-private",
                                           PropertyTemplateType.Text, DriverGuid, "", false, true, null, null, 0, 0);
            factory.CreatePropertyTemplate(new Guid("4bd1b665-61ec-4f43-b80d-ec236983d365"), "LTPK_PRIVATE", "LTPK_PRIVATE", "ltpk-private",
                                           PropertyTemplateType.Text, DriverGuid, "", false, true, null, null, 0, 0);

            factory.CreatePropertyTemplate(new Guid("c3759cf5-6a9b-4afb-b0e4-32941db684ca"), "CONFIG_VERSION", "CONFIG_VERSION", "config-version",
                                           PropertyTemplateType.Integer, DriverGuid, "", false, true, null, 1, 0, 0);


            factory.CreatePropertyTemplate(new Guid("25497b6e-8059-4dfc-8e9f-917d31c624cf"), "COMMON.PROPERTY.IPPORT.NAME", "COMMON.PROPERTY.IPPORT.DESCRIPTION", "port",
                                           PropertyTemplateType.Integer, DriverGuid, "COMMON.CATEGORY.ADDRESS", true, false, PropertyHelper.CreateRangeMetaString(1, short.MaxValue), 52634, 0, 0);

            CreateLight(factory);
            CreatePowerOutlet(factory);
            CreateContactSensor(factory);
            CreateSwitch(factory);
            CreateTemperatureSensor(factory);
        }
Пример #4
0
        private void AddDpt3Nodes(INodeTemplateFactory factory, Guid parentNode)
        {
            var dpt3InterfaceGuid = new Guid("45cdff99-5710-499c-b304-12141d4b6913");

            factory.CreateInterfaceType(dpt3InterfaceGuid, "KNX.DPT3.NAME", "KNX.DPT3.DESCRIPTION", 2, Int32.MaxValue,
                                        false);

            var dpt3Guid = new Guid("99d97125-b566-4cac-8210-3ba792db3c04");

            factory.CreateNodeTemplate(dpt3Guid, "KNX.DPT3.NAME", "KNX.DPT3.DESCRIPTION", "knx-dpt3",
                                       parentNode, dpt3InterfaceGuid, false, true, false, true, false,
                                       NodeDataType.NoAttribute, int.MaxValue, false);
            InitDptType((int)DptType.Dpt2, dpt3Guid, factory);


            var dpt3Control  = new Guid("40610606-5306-497c-8ebc-f064cc70b005");
            var dpt3StepCode = new Guid("c3ba5a94-83ba-44d6-b853-ef0c945318c0");

            factory.CreateNodeTemplate(dpt3Control, "KNX.DPT3.CONTROL.NAME", "KNX.DPT3.CONTROL.DESCRIPTION",
                                       "knx-dpt2-control", dpt3InterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, false, true, false,
                                       NodeDataType.Boolean, 1, false);
            factory.CreateNodeTemplate(dpt3StepCode, "KNX.DPT3.STEPCODE.NAME", "KNX.DPT3.STEPCODE.DESCRIPTION",
                                       "knx-dpt2-step-code", dpt3InterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, false, true, false,
                                       NodeDataType.Integer, 1, false);
        }
Пример #5
0
        private void CreateLight(INodeTemplateFactory factory, Guid gwInterface)
        {
            factory.CreateInterfaceType(LightInterfaceGuid, "IKEA.TRADFRI.LIGHT.NAME", "IKEA.TRADFRI.LIGHT.DESCRIPTION", 0, 0, false);

            factory.CreateNodeTemplate(LightContainerGuid, "IKEA.TRADFRI.LIGHT.NAME",
                                       "IKEA.TRADFRI.LIGHT.DESCRIPTION", "container", gwInterface, LightInterfaceGuid, false, false, true,
                                       false, true, NodeDataType.NoAttribute, 0, false);

            factory.CreatePropertyTemplate(new Guid("ae3582db-310e-4a10-9af9-27ef561e475a"), "IKEA.TRADFRI.DEVICE.ID.NAME", "IKEA.TRADFRI.DEVICE.ID.DESCRIPTION",
                                           DeviceIdPropertyKey, PropertyTemplateType.Numeric, LightContainerGuid, "COMMON.CATEGORY.ADDRESS", true, false, null, null, 0,
                                           0);

            factory.CreateNodeTemplate(LightGuid, "IKEA.TRADFRI.LIGHT.SWITCH.NAME", "IKEA.TRADFRI.LIGHT.SWITCH.DESCRIPTION",
                                       "ikea-light-switch", LightInterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       false, true, false, NodeDataType.Boolean, 1, false);
            factory.ChangeDefaultVisuTemplate(LightGuid, VisuMobileObjectTemplateTypes.ToggleButton);

            factory.CreateNodeTemplate(LightDimmerGuid, "IKEA.TRADFRI.LIGHT.DIMMER.NAME", "IKEA.TRADFRI.LIGHT.DIMMER.DESCRIPTION",
                                       "ikea-light-dimmer", LightInterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       false, true, false, NodeDataType.Integer, 1, false);

            factory.CreateNodeTemplate(LightColorGuid, "IKEA.TRADFRI.LIGHT.COLOR.NAME", "IKEA.TRADFRI.LIGHT.COLOR.DESCRIPTION",
                                       "ikea-light-dimmer", LightInterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       false, true, false, NodeDataType.String, 1, false);
        }
Пример #6
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            var gwguid = new Guid("2ca34b3f-1c29-4ab1-99d2-ecfbf2683dd5");

            factory.CreateInterfaceType(gwguid, "ENOCEAN.DEVICE.NAME", "ENOCEAN.DEVICE.DESCRIPTION", int.MaxValue, 1,
                                        true);
            factory.CreateInterfaceType(InterfaceGuid, "ENOCEAN.LEARNED.NAME", "ENOCEAN.LEARNED.DESCRIPTION", int.MaxValue, 1,
                                        true);
            factory.CreateInterfaceType(SimulatedGuid, "ENOCEAN.SIMULATED.NAME", "ENOCEAN.SIMULATED.DESCRIPTION", int.MaxValue, 1,
                                        true);

            factory.CreateNodeTemplate(DriverGuid, "ENOCEAN.DEVICE.NAME", "ENOCEAN.DEVICE.DESCRIPTION",
                                       "enocean-device", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Usb), gwguid, false, false, true, false, true,
                                       NodeDataType.NoAttribute, 1, false);

            factory.CreatePropertyTemplate(new Guid("f68e5b59-3fea-4739-a7c5-a2e2b52c08ff"), "ENOCEAN.DEVICE.PORT.NAME",
                                           "ENOCEAN.DEVICE.PORT.DESCRIPTION", "enocean-port", PropertyTemplateType.UsbPort, DriverGuid,
                                           "COMMON.CATEGORY.ADDRESS", true, false, null, null, 1, 1);

            factory.CreateNodeTemplate(LearnedGuid, "ENOCEAN.LEARNED.NAME", "ENOCEAN.LEARNED.DESCRIPTION",
                                       "enocean-learned", gwguid, InterfaceGuid, true, false, true, false, true, NodeDataType.NoAttribute, 1,
                                       false);
            factory.CreatePropertyTemplate(new Guid("409ae6c0-3e65-4d7b-9ace-120d2074eec7"), "ENOCEAN.LEARN.NAME", "ENOCEAN.LEARN.DESCRIPTION", "learn", PropertyTemplateType.LearnMode, LearnedGuid, "COMMON.CATEGORY.MISC", true, false, null, null, 1, 1);

            factory.CreateNodeTemplate(SimulatedGuid, "ENOCEAN.SIMULATED.NAME", "ENOCEAN.SIMULATED.DESCRIPTION",
                                       "enocean-simulated", gwguid, SimulatedGuid, true, false, true, false, true, NodeDataType.NoAttribute, 1,
                                       false);

            EnOceanRorgD5Data.AddRorgD5Templates(factory, _enoceanFactory);
            EnOceanRorgA5Data.AddRorgA5Templates(factory, _enoceanFactory);
            EnOceanRorgD2Data.AddRorgD2Templates(factory, _enoceanFactory);
            EnOceanRorgF6Data.AddRorgF6Templates(factory, _enoceanFactory);

            AddWriteAbleDataPoints(factory);
        }
Пример #7
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(InterfaceId, "MACHINE_FLAGS.NAME", "MACHINE_FLAGS.DESCRIPTION", int.MaxValue, 1, true);

            factory.CreateNodeTemplate(BusId, "MACHINE_FLAGS.NAME", "MACHINE_FLAGS.DESCRIPTION", "machine-flags", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Virtual),
                                       InterfaceId, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreateNodeTemplate(ValueId, "MACHINE_FLAGS.NODE.NAME", "MACHINE_FLAGS.NODE.DESCRIPTION", "machine-flag", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, false, true, false, NodeDataType.Double, Int32.MaxValue, false);
            factory.ChangeDefaultVisuTemplate(ValueId, VisuMobileObjectTemplateTypes.NumberBox);
        }
Пример #8
0
        private void AddWriteAbleDataPoints(INodeTemplateFactory factory)
        {
            var simulatedRelayGuid = new Guid("4a0c8c59-e8c5-4098-8420-15e886f4648f");

            factory.CreateInterfaceType(simulatedRelayGuid, "ENOCEAN.SIMULATED.RELAY.NAME", "ENOCEAN.SIMULATED.RELAY.DESCRIPTION", 1, Int32.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("6cffa073-afcf-4cd6-8364-d294f45a17e3"), "ENOCEAN.SIMULATED.RELAY.NAME", "ENOCEAN.SIMULATED.RELAY.DESCRIPTION", "enocean-simulated-relay", SimulatedGuid, simulatedRelayGuid,
                                       false, false, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);


            factory.CreateNodeTemplate(new Guid("ac3fb6ce-88dd-4385-8e30-9b5a6be9b593"), "ENOCEAN.SIMULATED.RELAY.VALUE.NAME", "ENOCEAN.SIMULATED.RELAY.VALUE.DESCRIPTION", "enocean-simulated-relay-value", simulatedRelayGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value),
                                       true, false, true, true, true, NodeDataType.Boolean, 1, false);
        }
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(InterfaceId, "WAKE_ON_LAN.NAME", "WAKE_ON_LAN.DESCRIPTION", int.MaxValue, 1, true);

            factory.CreateNodeTemplate(BusId, "WAKE_ON_LAN.NAME", "WAKE_ON_LAN.DESCRIPTION", "wol", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Ethernet),
                                       InterfaceId, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreateNodeTemplate(ValueId, "WAKE_ON_LAN.NODE.NAME", "WAKE_ON_LAN.NODE.DESCRIPTION", "wol", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, false, true, false, NodeDataType.Boolean, Int32.MaxValue, false);

            factory.CreatePropertyTemplate(MacId, "WAKE_ON_LAN.MAC.NAME", "WAKE_ON_LAN.MAC.DESCRIPTION", "mac",
                                           PropertyTemplateType.Text, ValueId, "COMMON.CATEGORY.ADDRESS", true, false, PropertyHelper.CreateMaxLengthMetaString(12), null, 0, 5);
        }
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(InterfaceId, "HUE_BRIDGE_SIMULATOR.NAME", "HUE_BRIDGE_SIMULATOR.DESCRIPTION", int.MaxValue, 1, true);
            factory.CreateInterfaceType(OnOffLight, "HUE_BRIDGE_SIMULATOR.ON_OFF.NAME", "HUE_BRIDGE_SIMULATOR.ON_OFF.DESCRIPTION", int.MaxValue, 1, true);


            factory.CreateNodeTemplate(BusId, "HUE_BRIDGE_SIMULATOR.NAME", "HUE_BRIDGE_SIMULATOR.DESCRIPTION", "hue-bridge-simulator", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Virtual),
                                       InterfaceId, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreateNodeTemplate(OnOffLight, "HUE_BRIDGE_SIMULATOR.ON_OFF.NAME", "HUE_BRIDGE_SIMULATOR.ONF_OFF.DESCRIPTION", "hue-onoff", InterfaceId, OnOffLight, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);
            factory.CreateNodeTemplate(OnOffLightState, "HUE_BRIDGE_SIMULATOR.ON_OFF.STATE.NAME", "HUE_BRIDGE_SIMULATOR.ON_OFF.STATE.DESCRIPTION", "hue-onoff-state", OnOffLight, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, false, true, true, true, NodeDataType.Boolean, 1, false);
            factory.CreateNodeTemplate(OnOffLightSwitch, "HUE_BRIDGE_SIMULATOR.ON_OFF.SWITCH.NAME", "HUE_BRIDGE_SIMULATOR.ONF_OFF.SWITCH.DESCRIPTION", "hue-onoff-switch", OnOffLight, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Boolean, 1, false);
        }
Пример #11
0
        private void CreateTemperatureSensor(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("98b69750-964f-487b-9195-175f6d976099");

            factory.CreateInterfaceType(interfaceGuid, "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.NAME",
                                        "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.DESCRIPTION", 1, int.MaxValue, false);

            factory.CreateNodeTemplate(interfaceGuid, "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.NAME",
                                       "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.DESCRIPTION", "temperature-sensor-folder", DriverGuid, interfaceGuid, false, false,
                                       true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("693e8ded-b488-4991-971a-c2b46c2b1dcd"), "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.VALUE.NAME",
                                       "APPLE_HOMEKIT_SERVER.TEMPERATURE_SENSOR.VALUE.DESCRIPTION", "temperature-sensor", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       true, true, false, NodeDataType.Double, 1, false);
        }
Пример #12
0
        private void CreatePowerOutlet(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("a0809786-de41-40b9-ae7f-076862068464");

            factory.CreateInterfaceType(interfaceGuid, "APPLE_HOMEKIT_SERVER.OUTLET.NAME",
                                        "APPLE_HOMEKIT_SERVER.OUTLET.DESCRIPTION", 1, int.MaxValue, false);

            factory.CreateNodeTemplate(interfaceGuid, "APPLE_HOMEKIT_SERVER.OUTLET.NAME",
                                       "APPLE_HOMEKIT_SERVER.OUTLET.DESCRIPTION", "power-outlet-folder", DriverGuid, interfaceGuid, false, false,
                                       true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("123fb63d-943e-4c8c-8c59-1586eb79b961"), "APPLE_HOMEKIT_SERVER.OUTLET.SWITCH.NAME",
                                       "APPLE_HOMEKIT_SERVER.OUTLET.SWITCH.DESCRIPTION", "power-outlet-switch", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       true, true, false, NodeDataType.Boolean, 1, false);
        }
Пример #13
0
        private void CreateContactSensor(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("57303efc-252d-4a2f-b5ec-4a6651e9ef0e");

            factory.CreateInterfaceType(interfaceGuid, "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.NAME",
                                        "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.DESCRIPTION", 1, int.MaxValue, false);

            factory.CreateNodeTemplate(interfaceGuid, "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.NAME",
                                       "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.DESCRIPTION", "contact-sensor-folder", DriverGuid, interfaceGuid, false, false,
                                       true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("e3d05974-6c44-4ac8-9eea-a29e036de343"), "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.CONTACT.NAME",
                                       "APPLE_HOMEKIT_SERVER.CONTACT_SENSOR.CONTACT.DESCRIPTION", "contact-sensor", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       true, true, false, NodeDataType.Boolean, 1, false);
        }
Пример #14
0
        private void CreateSwitch(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("f107b325-e7c4-46dc-ae56-f2b99ecc5dbe");

            factory.CreateInterfaceType(interfaceGuid, "APPLE_HOMEKIT_SERVER.SWITCH.NAME",
                                        "APPLE_HOMEKIT_SERVER.SWITCH.DESCRIPTION", 1, int.MaxValue, false);

            factory.CreateNodeTemplate(interfaceGuid, "APPLE_HOMEKIT_SERVER.SWITCH.NAME",
                                       "APPLE_HOMEKIT_SERVER.SWITCH.DESCRIPTION", "switch-folder", DriverGuid, interfaceGuid, false, false,
                                       true, false, true, NodeDataType.NoAttribute, int.MaxValue, false);

            factory.CreateNodeTemplate(new Guid("6e6cd234-b1b6-466f-8bea-2bffba36592f"), "APPLE_HOMEKIT_SERVER.SWITCH.SWITCH.NAME",
                                       "APPLE_HOMEKIT_SERVER.SWITCH.SWITCH.DESCRIPTION", "switch", interfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       true, true, false, NodeDataType.Boolean, 1, false);
        }
Пример #15
0
 private void CreateAction(INodeTemplateFactory factory, Guid guid, string name, bool writeAble, bool readAble, NodeDataType dataType)
 {
     factory.CreateNodeTemplate(guid, $"SONOS.{name.ToUpperInvariant()}.NAME",
                                $"SONOS.{name.ToUpperInvariant()}.DESCRIPTION", name.ToLowerInvariant(), SonosDeviceInterfaceGuid,
                                GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, readAble, true, writeAble, true,
                                dataType, 1, false);
 }
Пример #16
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(DriverGuid, "ZWAVE.NAME", "ZWAVE.DESCRIPTION", int.MaxValue, 1, true);
            factory.CreateNodeTemplate(DriverGuid, "ZWAVE.NAME", "ZWAVE.DESCRIPTION", "zwave", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Virtual),
                                       DriverGuid, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            //TODO: Create your node structure here
        }
Пример #17
0
        private void CreateInfoOnlyDigital(INodeTemplateFactory factory)
        {
            var infoOnlyDigital = new Guid("3358d7e0-592c-4489-be23-b7f5942c9d2b");

            factory.CreateInterfaceType(infoOnlyDigital, "LOXONE.MINISERVER.INFO_ONLY_DIGITAL.NAME", "LOXONE.MINISERVER.INFO_ONLY_DIGITAL.DESCRIPTION", 1, int.MaxValue, false);
            factory.CreateNodeTemplate(InfoOnlyDigitalNode, "LOXONE.MINISERVER.INFO_ONLY_DIGITAL.NAME", "LOXONE.MINISERVER.INFO_ONLY_DIGITAL.DESCRIPTION", "loxone-info-only-digital", FolderNodeInterface, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Double, int.MaxValue, false);
            CreateUuidProperty(factory, InfoOnlyDigitalNode);
        }
Пример #18
0
        private void CreateSwitch(INodeTemplateFactory factory, Guid gwInterface)
        {
            factory.CreateInterfaceType(RelayInterfaceGuid, "IKEA.TRADFRI.RELAY.NAME", "IKEA.TRADFRI.RELAY.DESCRIPTION", 0, 0, false);

            factory.CreateNodeTemplate(RelayContainerGuid, "IKEA.TRADFRI.RELAY.NAME",
                                       "IKEA.TRADFRI.RELAY.DESCRIPTION", "container", gwInterface, RelayInterfaceGuid, false, false, true,
                                       false, true, NodeDataType.NoAttribute, 0, false);

            factory.CreatePropertyTemplate(new Guid("7612c5bb-69f5-46ac-a421-ce199dd0a0c3"), "IKEA.TRADFRI.DEVICE.ID.NAME", "IKEA.TRADFRI.DEVICE.ID.DESCRIPTION",
                                           DeviceIdPropertyKey, PropertyTemplateType.Numeric, RelayContainerGuid, "COMMON.CATEGORY.ADDRESS", true, false, null, null, 0,
                                           0);

            factory.CreateNodeTemplate(RelayGuid, "IKEA.TRADFRI.RELAY.VALUE.NAME", "IKEA.TRADFRI.RELAY.VALUE.DESCRIPTION",
                                       "ikea-relay", RelayInterfaceGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true,
                                       false, true, false, NodeDataType.Boolean, 1, false);
            factory.ChangeDefaultVisuTemplate(RelayGuid, VisuMobileObjectTemplateTypes.ToggleButton);
        }
Пример #19
0
        private void CreateInfoOnlyAnalog(INodeTemplateFactory factory)
        {
            var infoOnlyAnalog = new Guid("f72d524f-1fdc-4e0b-b1b6-ede9c500e61d");

            factory.CreateInterfaceType(infoOnlyAnalog, "LOXONE.MINISERVER.INFO_ONLY_ANALOG.NAME", "LOXONE.MINISERVER.INFO_ONLY_ANALOG.DESCRIPTION", 1, int.MaxValue, false);
            factory.CreateNodeTemplate(InfoOnlyAnlogNode, "LOXONE.MINISERVER.INFO_ONLY_ANALOG.NAME", "LOXONE.MINISERVER.INFO_ONLY_ANALOG.DESCRIPTION", "loxone-info-only-analog", FolderNodeInterface, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Double, int.MaxValue, false);
            CreateUuidProperty(factory, InfoOnlyAnlogNode);
        }
Пример #20
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(DriverGuid, "FRONIUS_SOLAR.NAME", "FRONIUS_SOLAR.DESCRIPTION", int.MaxValue, 1, true);
            factory.CreateNodeTemplate(DriverGuid, "FRONIUS_SOLAR.NAME", "FRONIUS_SOLAR.DESCRIPTION", "fronius_solar", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Ethernet),
                                       DriverGuid, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            //TODO: Create your node structure here
        }
Пример #21
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            var interfaceGuid = new Guid("49be612a-3331-454c-8027-3db1b3674024");

            factory.CreateInterfaceType(interfaceGuid, "MBUS-OMS.DEVICE.NAME", "MBUS-OMS.DEVICE.DESCRIPTION", 1, 1,
                                        true);

            factory.CreateNodeTemplate(DriverGuid, "MBUS-OMS.DEVICE.NAME", "MBUS-OMS.DEVICE.DESCRIPTION",
                                       "mbus-oms-device", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.UsbIr), interfaceGuid, false, false, true, false, true,
                                       NodeDataType.NoAttribute, 1, false);

            factory.CreatePropertyTemplate(new Guid("15e87af7-963a-4386-aee5-7d5afe4b2e01"), "MBUS-OMS.DEVICE.PORT.NAME",
                                           "MBUS-OMS.DEVICE.PORT.DESCRIPTION", "mbus-oms-port", PropertyTemplateType.UsbPort, DriverGuid,
                                           "COMMON.CATEGORY.ADDRESS", true, false, null, null, 1, 1);

            factory.CreatePropertyTemplate(new Guid("cd8a6277-a8d3-4051-b757-4aa18a88aa3c"), "MBUS-OMS.DEVICE.KEY.NAME",
                                           "MBUS-OMS.DEVICE.KEY.DESCRIPTION", "mbus-oms-key", PropertyTemplateType.Text, DriverGuid,
                                           "COMMON.CATEGORY.ADDRESS", true, false, null, null, 1, 1);

            factory.CreateNodeTemplate(new Guid("49250543-3dac-43dd-abef-42fa6982189e"), "MBUS-OMS.DEVICE.DATETIME.NAME", "MBUS-OMS.DEVICE.DATETIME.DESCRIPTION", "mbus-oms-datetime", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.DateTime, 1, false, false);

            factory.CreateNodeTemplate(new Guid("cc736fc9-48e9-43aa-bc6e-c4a0356b77cb"), "MBUS-OMS.DEVICE.ENERGY_A+.NAME", "MBUS-OMS.DEVICE.ENERGY_A+.DESCRIPTION", "mbus-oms-a+", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("bdfbaff0-c3c6-4447-b02a-7c42b7ff413f"), "MBUS-OMS.DEVICE.ENERGY_A-.NAME", "MBUS-OMS.DEVICE.ENERGY_A-.DESCRIPTION", "mbus-oms-a-", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("34ce3377-49b1-4a87-8b5e-fd03d2c40363"), "MBUS-OMS.DEVICE.ENERGY_R+.NAME", "MBUS-OMS.DEVICE.ENERGY_R+.DESCRIPTION", "mbus-oms-r+", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("887d9211-ed89-4aeb-846c-40cc53ef6345"), "MBUS-OMS.DEVICE.ENERGY_R-.NAME", "MBUS-OMS.DEVICE.ENERGY_R-.DESCRIPTION", "mbus-oms-r-", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("3b0ce6dd-df80-4351-abd8-fcc6724a30f3   "), "MBUS-OMS.DEVICE.POWER+.NAME", "MBUS-OMS.DEVICE.POWER.DESCRIPTION", "mbus-oms-power+", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("b6b4291b-1ce7-4716-9670-1701a0401259"), "MBUS-OMS.DEVICE.POWER-.NAME", "MBUS-OMS.DEVICE.POWER-.DESCRIPTION", "mbus-oms-power-", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("4621c5b5-aaba-4e38-845a-a08808201ac8"), "MBUS-OMS.DEVICE.REACTIVE_POWER+.NAME", "MBUS-OMS.DEVICE.REACTIVE_POWER+.DESCRIPTION", "mbus-oms-reactive-power+", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);

            factory.CreateNodeTemplate(new Guid("6fb733ff-9a2f-427c-9b3d-f4e7d222cc72"), "MBUS-OMS.DEVICE.REACTIVE_POWER-.NAME", "MBUS-OMS.DEVICE.REACTIVE_POWER-.DESCRIPTION", "mbus-oms-reactive-power-", interfaceGuid,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Double, 1, false, false);
        }
Пример #22
0
        private void CreateConnectionState(INodeTemplateFactory factory)
        {
            var connected = new Guid("d101bcce-be51-4aad-bf1f-11d756674b53");

            factory.CreateInterfaceType(connected, "LOXONE.MINISERVER.CONNECTED.NAME", "LOXONE.MINISERVER.CONNECTED.DESCRIPTION", 1, int.MaxValue, false);
            var connectedNode = new Guid("3887cc34-6103-4dc7-aaec-ba30e6e42710");

            factory.CreateNodeTemplate(connectedNode, "LOXONE.MINISERVER.CONNECTED.NAME", "LOXONE.MINISERVER.CONNECTED.DESCRIPTION", "loxone-connected", DriverGuid, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), true, true, true, false, true, NodeDataType.Boolean, 1, false, false);
        }
Пример #23
0
        private void CreateFolder(INodeTemplateFactory factory)
        {
            var folderInterface = FolderNodeInterface;

            factory.CreateInterfaceType(folderInterface, "LOXONE.MINISERVER.FOLDER.NAME", "LOXONE.MINISERVER.FOLDER.DESCRIPTION", int.MaxValue, int.MaxValue, false);
            var folderNode = FolderNode;

            factory.CreateNodeTemplate(folderNode, "LOXONE.MINISERVER.FOLDER.NAME", "LOXONE.MINISERVER.FOLDER.DESCRIPTION", "loxone-folder", DriverGuid, FolderNodeInterface, false, true, true, false, true, NodeDataType.NoAttribute, int.MaxValue, false, false);
        }
Пример #24
0
        private void AddDpt11Nodes(INodeTemplateFactory factory, Guid parentNode)
        {
            var dpt11Guid = new Guid("cae0b84b-b5b7-4399-b8e1-26ad849dd3ac");

            factory.CreateNodeTemplate(dpt11Guid, "KNX.DPT11.NAME", "KNX.DPT11.DESCRIPTION", "knx-dpt11",
                                       parentNode, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, false, true, false,
                                       NodeDataType.Date, int.MaxValue, false);

            InitDptType((int)DptType.Dpt11, dpt11Guid, factory);
        }
Пример #25
0
        private void AddDpt10Nodes(INodeTemplateFactory factory, Guid parentNode)
        {
            var dpt10Guid = new Guid("d17b532e-a63a-431e-b125-a305ac3783d4");

            factory.CreateNodeTemplate(dpt10Guid, "KNX.DPT10.NAME", "KNX.DPT10.DESCRIPTION", "knx-dpt10",
                                       parentNode, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, false, true, false,
                                       NodeDataType.Time, int.MaxValue, false);

            InitDptType((int)DptType.Dpt10, dpt10Guid, factory);
        }
Пример #26
0
        private void CreatePushButton(INodeTemplateFactory factory)
        {
            var pushButton = new Guid("ceae14b6-3574-4df9-9d92-f557912922dc");

            factory.CreateInterfaceType(pushButton, "LOXONE.MINISERVER.PUSH_BUTTON.NAME", "LOXONE.MINISERVER.PUSH_BUTTON.DESCRIPTION", 1, int.MaxValue, false);
            factory.CreateNodeTemplate(PushButtonNode, "LOXONE.MINISERVER.PUSH_BUTTON.NAME", "LOXONE.MINISERVER.PUSH_BUTTON.DESCRIPTION", "loxone-push-button", FolderNodeInterface, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, true, false, NodeDataType.Integer, int.MaxValue, false);
            factory.ChangeDefaultVisuTemplate(PushButtonNode, VisuMobileObjectTemplateTypes.ToggleButton);

            CreateUuidProperty(factory, PushButtonNode);
        }
Пример #27
0
        private void CreateDimmer(INodeTemplateFactory factory)
        {
            var dimmer = new Guid("fd70966f-d53b-4d7d-a625-1b0113364eef");

            factory.CreateInterfaceType(dimmer, "LOXONE.MINISERVER.DIMMER.NAME", "LOXONE.MINISERVER.DIMMER.DESCRIPTION", 1, int.MaxValue, false);
            factory.CreateNodeTemplate(DimmerNode, "LOXONE.MINISERVER.DIMMER.NAME", "LOXONE.MINISERVER.DIMMER.DESCRIPTION", "loxone-dimmer", FolderNodeInterface, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, true, false, NodeDataType.Integer, int.MaxValue, false);
            factory.ChangeDefaultVisuTemplate(DimmerNode, VisuMobileObjectTemplateTypes.Slider);

            CreateUuidProperty(factory, DimmerNode);
        }
Пример #28
0
        private void CreateSwitch(INodeTemplateFactory factory)
        {
            var switchGuid = new Guid("7a99a720-e031-4a76-b7ef-d734cf7e46a3");

            factory.CreateInterfaceType(switchGuid, "LOXONE.MINISERVER.SWITCH.NAME", "LOXONE.MINISERVER.SWITCH.DESCRIPTION", 1, int.MaxValue, false);
            factory.CreateNodeTemplate(SwitchNodeGuid, "LOXONE.MINISERVER.SWITCH.NAME", "LOXONE.MINISERVER.SWITCH.DESCRIPTION", "loxone-switch", FolderNodeInterface, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, true, false, NodeDataType.Boolean, int.MaxValue, false);
            factory.ChangeDefaultVisuTemplate(SwitchNodeGuid, VisuMobileObjectTemplateTypes.ToggleButton);

            CreateUuidProperty(factory, SwitchNodeGuid);
        }
Пример #29
0
        private void AddDpt1Nodes(INodeTemplateFactory factory, Guid parentNode)
        {
            var dpt1Guid = new Guid("e2fcfcb9-b08b-4597-9ce1-6d604fdbb510");

            factory.CreateNodeTemplate(dpt1Guid, "KNX.DPT1.NAME", "KNX.DPT1.DESCRIPTION", "knx-dpt1",
                                       parentNode, GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, false, true, false,
                                       NodeDataType.Boolean, int.MaxValue, false);

            factory.ChangeDefaultVisuTemplate(dpt1Guid, VisuMobileObjectTemplateTypes.ToggleButton);

            InitDptType((int)DptType.Dpt1, dpt1Guid, factory);
        }
Пример #30
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.CreateInterfaceType(InterfaceId, "CONSTANTS.NAME", "CONSTANTS.DESCRIPTION", int.MaxValue, 1, true);

            factory.CreateNodeTemplate(BusId, "CONSTANTS.NAME", "CONSTANTS.DESCRIPTION", "consts", GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Virtual),
                                       InterfaceId, false, true, true, false, true, NodeDataType.NoAttribute, Int32.MaxValue, false);

            factory.CreateNodeTemplate(ValueId, "CONSTANTS.NODE.CONSTANT.NAME", "CONSTANTS.NODE.CONSTANT.DESCRIPTION", "const", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Integer, Int32.MaxValue, false);
            factory.CreatePropertyTemplate(PropertyValueId, "CONSTANTS.PROPERTY.VALUE.NAME", "CONSTANTS.PROPERTY.VALUE.DESCRIPTION", "const_value", PropertyTemplateType.Integer,
                                           ValueId, "CONSTANTS.CATEGORY.VALUE", true, false, "", "", 1, 1);


            factory.CreateNodeTemplate(PiId, "CONSTANTS.NODE.PI.NAME", "CONSTANTS.NODE.PI.DESCRIPTION", "const_pi", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Double, Int32.MaxValue, false);

            factory.CreateNodeTemplate(HalfPiId, "CONSTANTS.NODE.HALF_PI.NAME", "CONSTANTS.NODE.HALF_PI.DESCRIPTION", "const_halfpi", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Double, Int32.MaxValue, false);


            factory.CreateNodeTemplate(DoublePiId, "CONSTANTS.NODE.DOUBLE_PI.NAME", "CONSTANTS.NODE.DOUBLE_PI.DESCRIPTION", "const_doublepi", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.Double, Int32.MaxValue, false);


            factory.CreateNodeTemplate(StringValueId, "CONSTANTS.NODE.STRING.NAME", "CONSTANTS.NODE.STRING.DESCRIPTION", "const_string", InterfaceId,
                                       GuidTemplateTypeAttribute.GetFromEnum(InterfaceTypeEnum.Value), false, true, true, false, true, NodeDataType.String, Int32.MaxValue, false);
            factory.CreatePropertyTemplate(StringPropertyValueId, "CONSTANTS.PROPERTY.VALUE.NAME", "CONSTANTS.PROPERTY.VALUE.DESCRIPTION", "const_value", PropertyTemplateType.Text,
                                           StringValueId, "CONSTANTS.CATEGORY.VALUE", true, false, "", "", 1, 1);
        }