mirror of https://github.com/nymea/nymea.git
1213 lines
40 KiB
JSON
1213 lines
40 KiB
JSON
46
|
|
{
|
|
"methods": {
|
|
"Actions.ExecuteAction": {
|
|
"description": "Execute a single action.",
|
|
"params": {
|
|
"actionTypeId": "Uuid",
|
|
"deviceId": "Uuid",
|
|
"o:params": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError"
|
|
}
|
|
},
|
|
"Actions.GetActionType": {
|
|
"description": "Get the ActionType for the given ActionTypeId",
|
|
"params": {
|
|
"actionTypeId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:actionType": {
|
|
"id": "Uuid",
|
|
"index": "Int",
|
|
"name": "Uuid",
|
|
"paramTypes": [
|
|
"$ref:ParamType"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"Cloud.Authenticate": {
|
|
"description": "Connect and authenticate the cloud connection with the given username and password.",
|
|
"params": {
|
|
"password": "String",
|
|
"username": "String"
|
|
},
|
|
"returns": {
|
|
"cloudError": "$ref:CloudError"
|
|
}
|
|
},
|
|
"Cloud.Disable": {
|
|
"description": "Disable the cloud connection.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"cloudError": "$ref:CloudError"
|
|
}
|
|
},
|
|
"Cloud.Enable": {
|
|
"description": "Enable the cloud connection.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"cloudError": "$ref:CloudError"
|
|
}
|
|
},
|
|
"Cloud.GetConnectionStatus": {
|
|
"description": "Get the current status of the cloud connection.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"active": "Bool",
|
|
"authenticated": "Bool",
|
|
"connected": "Bool",
|
|
"enabled": "Bool"
|
|
}
|
|
},
|
|
"Configuration.GetAvailableLanguages": {
|
|
"description": "Returns a list of locale codes available for the server. i.e. en_US, de_AT",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"languages": [
|
|
"String"
|
|
]
|
|
}
|
|
},
|
|
"Configuration.GetConfigurations": {
|
|
"description": "Get all configuration parameters of the server.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"basicConfiguration": {
|
|
"language": "String",
|
|
"serverName": "String",
|
|
"serverTime": "Uint",
|
|
"serverUuid": "Uuid",
|
|
"timeZone": "String"
|
|
},
|
|
"sslConfiguration": {
|
|
"enabled": "Bool"
|
|
},
|
|
"tcpServerConfiguration": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
},
|
|
"webServerConfiguration": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
},
|
|
"webSocketServerConfiguration": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
}
|
|
}
|
|
},
|
|
"Configuration.GetTimeZones": {
|
|
"description": "Get the list of available timezones.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"timeZones": [
|
|
"String"
|
|
]
|
|
}
|
|
},
|
|
"Configuration.SetLanguage": {
|
|
"description": "Sets the server language to the given language. See also: \"GetAvailableLanguages\"",
|
|
"params": {
|
|
"language": "String"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Configuration.SetServerName": {
|
|
"description": "Set the name of the server. Default is guhIO.",
|
|
"params": {
|
|
"serverName": "String"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Configuration.SetTcpServerConfiguration": {
|
|
"description": "Configure the TCP interface of the server. Note: if you are using the TCP server for this call you will loose the connection.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Configuration.SetTimeZone": {
|
|
"description": "Set the time zone of the server. See also: \"GetTimeZones\"",
|
|
"params": {
|
|
"timeZone": "String"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Configuration.SetWebServerConfiguration": {
|
|
"description": "Configure the web server of the server.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Configuration.SetWebSocketServerConfiguration": {
|
|
"description": "Configure the web socket interface of the server. Note: if you are using the web socket server for this call you will loose the connection.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
},
|
|
"returns": {
|
|
"configurationError": "$ref:ConfigurationError"
|
|
}
|
|
},
|
|
"Devices.AddConfiguredDevice": {
|
|
"description": "Add a configured device with a setupMethod of SetupMethodJustAdd. For devices with a setupMethod different than SetupMethodJustAdd, use PairDevice. Use deviceDescriptorId or deviceParams, depending on the createMethod of the device class. CreateMethodJustAdd takes the parameters you want to have with that device. CreateMethodDiscovery requires the use of a deviceDescriptorId.",
|
|
"params": {
|
|
"deviceClassId": "Uuid",
|
|
"name": "String",
|
|
"o:deviceDescriptorId": "Uuid",
|
|
"o:deviceParams": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:deviceId": "Uuid"
|
|
}
|
|
},
|
|
"Devices.ConfirmPairing": {
|
|
"description": "Confirm an ongoing pairing. In case of SetupMethodEnterPin also provide the pin in the params.",
|
|
"params": {
|
|
"o:secret": "String",
|
|
"pairingTransactionId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:deviceId": "Uuid"
|
|
}
|
|
},
|
|
"Devices.EditDevice": {
|
|
"description": "Edit the name of a device. This method does not change the configuration of the device.",
|
|
"params": {
|
|
"deviceId": "Uuid",
|
|
"name": "String"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError"
|
|
}
|
|
},
|
|
"Devices.GetActionTypes": {
|
|
"description": "Get action types for a specified deviceClassId.",
|
|
"params": {
|
|
"deviceClassId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"actionTypes": [
|
|
"$ref:ActionType"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetConfiguredDevices": {
|
|
"description": "Returns a list of configured devices, optionally filtered by deviceId.",
|
|
"params": {
|
|
"o:deviceId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"devices": [
|
|
"$ref:Device"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetDiscoveredDevices": {
|
|
"description": "Performs a device discovery and returns the results. This function may take a while to return.",
|
|
"params": {
|
|
"deviceClassId": "Uuid",
|
|
"o:discoveryParams": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:deviceDescriptors": [
|
|
"$ref:DeviceDescriptor"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetEventTypes": {
|
|
"description": "Get event types for a specified deviceClassId.",
|
|
"params": {
|
|
"deviceClassId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"eventTypes": [
|
|
"$ref:EventType"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetPluginConfiguration": {
|
|
"description": "Get a plugin's params.",
|
|
"params": {
|
|
"pluginId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:configuration": [
|
|
"$ref:Param"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetPlugins": {
|
|
"description": "Returns a list of loaded plugins.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"plugins": [
|
|
"$ref:Plugin"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetStateTypes": {
|
|
"description": "Get state types for a specified deviceClassId.",
|
|
"params": {
|
|
"deviceClassId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"stateTypes": [
|
|
"$ref:StateType"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetStateValue": {
|
|
"description": "Get the value of the given device and the given stateType",
|
|
"params": {
|
|
"deviceId": "Uuid",
|
|
"stateTypeId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:value": "Variant"
|
|
}
|
|
},
|
|
"Devices.GetStateValues": {
|
|
"description": "Get all the state values of the given device.",
|
|
"params": {
|
|
"deviceId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:values": [
|
|
{
|
|
"stateTypeId": "Uuid",
|
|
"value": "Variant"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetSupportedDevices": {
|
|
"description": "Returns a list of supported Device classes, optionally filtered by vendorId.",
|
|
"params": {
|
|
"o:vendorId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceClasses": [
|
|
"$ref:DeviceClass"
|
|
]
|
|
}
|
|
},
|
|
"Devices.GetSupportedVendors": {
|
|
"description": "Returns a list of supported Vendors.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"vendors": [
|
|
"$ref:Vendor"
|
|
]
|
|
}
|
|
},
|
|
"Devices.PairDevice": {
|
|
"description": "Pair a device. Use this for DeviceClasses with a setupMethod different than SetupMethodJustAdd. Use deviceDescriptorId or deviceParams, depending on the createMethod of the device class. CreateMethodJustAdd takes the parameters you want to have with that device. CreateMethodDiscovery requires the use of a deviceDescriptorId. If success is true, the return values will contain a pairingTransactionId, a displayMessage and the setupMethod. Depending on the setupMethod you should either proceed with AddConfiguredDevice or PairDevice.",
|
|
"params": {
|
|
"deviceClassId": "Uuid",
|
|
"name": "String",
|
|
"o:deviceDescriptorId": "Uuid",
|
|
"o:deviceParams": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:displayMessage": "String",
|
|
"o:pairingTransactionId": "Uuid",
|
|
"o:setupMethod": "$ref:SetupMethod"
|
|
}
|
|
},
|
|
"Devices.ReconfigureDevice": {
|
|
"description": "Edit the parameter configuration of the device. The device params will be set to the passed parameters and the setup device will be called. If the device is discoverable, you can perform a GetDiscoveredDevices before calling this method and pass the new DeviceDescriptor (rediscover). Only writable parameters can be changed. By default, every Param is writable.",
|
|
"params": {
|
|
"deviceId": "Uuid",
|
|
"o:deviceDescriptorId": "Uuid",
|
|
"o:deviceParams": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError"
|
|
}
|
|
},
|
|
"Devices.RemoveConfiguredDevice": {
|
|
"description": "Remove a device from the system.",
|
|
"params": {
|
|
"deviceId": "Uuid",
|
|
"o:removePolicy": "$ref:RemovePolicy",
|
|
"o:removePolicyList": [
|
|
{
|
|
"policy": "$ref:RemovePolicy",
|
|
"ruleId": "Uuid"
|
|
}
|
|
]
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:ruleIds": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"Devices.SetPluginConfiguration": {
|
|
"description": "Set a plugin's params.",
|
|
"params": {
|
|
"configuration": [
|
|
"$ref:Param"
|
|
],
|
|
"pluginId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError"
|
|
}
|
|
},
|
|
"Events.GetEventType": {
|
|
"description": "Get the EventType for the given eventTypeId.",
|
|
"params": {
|
|
"eventTypeId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:eventType": "$ref:EventType"
|
|
}
|
|
},
|
|
"JSONRPC.Introspect": {
|
|
"description": "Introspect this API.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"methods": "Object",
|
|
"types": "Object"
|
|
}
|
|
},
|
|
"JSONRPC.SetNotificationStatus": {
|
|
"description": "Enable/Disable notifications for this connections.",
|
|
"params": {
|
|
"enabled": "Bool"
|
|
},
|
|
"returns": {
|
|
"enabled": "Bool"
|
|
}
|
|
},
|
|
"JSONRPC.Version": {
|
|
"description": "Version of this Guh/JSONRPC interface.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"protocol version": "String",
|
|
"version": "String"
|
|
}
|
|
},
|
|
"Logging.GetLogEntries": {
|
|
"description": "Get the LogEntries matching the given filter. Each list element of a given filter will be connected with OR to each other. Each of the given filters will be connected with AND to each other.",
|
|
"params": {
|
|
"o:deviceIds": [
|
|
"Uuid"
|
|
],
|
|
"o:eventTypes": [
|
|
"$ref:LoggingEventType"
|
|
],
|
|
"o:loggingLevels": [
|
|
"$ref:LoggingLevel"
|
|
],
|
|
"o:loggingSources": [
|
|
"$ref:LoggingSource"
|
|
],
|
|
"o:timeFilters": [
|
|
{
|
|
"o:endDate": "Int",
|
|
"o:startDate": "Int"
|
|
}
|
|
],
|
|
"o:typeIds": [
|
|
"Uuid"
|
|
],
|
|
"o:values": [
|
|
"Variant"
|
|
]
|
|
},
|
|
"returns": {
|
|
"loggingError": "$ref:LoggingError",
|
|
"o:logEntries": [
|
|
"$ref:LogEntry"
|
|
]
|
|
}
|
|
},
|
|
"Rules.AddRule": {
|
|
"description": "Add a rule. You can describe rules by one or many EventDesciptors and a StateEvaluator. Note that only one of either eventDescriptor or eventDescriptorList may be passed at a time. A rule can be created but left disabled, meaning it won't actually be executed until set to enabled. If not given, enabled defaults to true.",
|
|
"params": {
|
|
"actions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"name": "String",
|
|
"o:enabled": "Bool",
|
|
"o:eventDescriptors": [
|
|
"$ref:EventDescriptor"
|
|
],
|
|
"o:executable": "Bool",
|
|
"o:exitActions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"o:stateEvaluator": "$ref:StateEvaluator",
|
|
"o:timeDescriptor": "$ref:TimeDescriptor"
|
|
},
|
|
"returns": {
|
|
"o:ruleId": "Uuid",
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.DisableRule": {
|
|
"description": "Disable a rule. The rule won't be triggered by it's events or state changes while it is disabled. If successfull, the notification \"Rule.RuleConfigurationChanged\" will be emitted.",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.EditRule": {
|
|
"description": "Edit the parameters of a rule. The configuration of the rule with the given ruleId will be replaced with the new given configuration. In ordert to enable or disable a Rule, please use the methods \"Rules.EnableRule\" and \"Rules.DisableRule\". If successfull, the notification \"Rule.RuleConfigurationChanged\" will be emitted.",
|
|
"params": {
|
|
"actions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"name": "String",
|
|
"o:enabled": "Bool",
|
|
"o:eventDescriptors": [
|
|
"$ref:EventDescriptor"
|
|
],
|
|
"o:executable": "Bool",
|
|
"o:exitActions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"o:stateEvaluator": "$ref:StateEvaluator",
|
|
"o:timeDescriptor": "$ref:TimeDescriptor",
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"o:rule": "$ref:Rule",
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.EnableRule": {
|
|
"description": "Enabled a rule that has previously been disabled.If successfull, the notification \"Rule.RuleConfigurationChanged\" will be emitted.",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.ExecuteActions": {
|
|
"description": "Execute the action list of the rule with the given ruleId.",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.ExecuteExitActions": {
|
|
"description": "Execute the exit action list of the rule with the given ruleId.",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.FindRules": {
|
|
"description": "Find a list of rules containing any of the given parameters.",
|
|
"params": {
|
|
"deviceId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleIds": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"Rules.GetRuleDetails": {
|
|
"description": "Get details for the rule identified by ruleId",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"o:rule": "$ref:Rule",
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"Rules.GetRules": {
|
|
"description": "Get the descriptions of all configured rules. If you need more information about a specific rule use the method Rules.GetRuleDetails.",
|
|
"params": {
|
|
},
|
|
"returns": {
|
|
"ruleDescriptions": [
|
|
"$ref:RuleDescription"
|
|
]
|
|
}
|
|
},
|
|
"Rules.RemoveRule": {
|
|
"description": "Remove a rule",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"ruleError": "$ref:RuleError"
|
|
}
|
|
},
|
|
"States.GetStateType": {
|
|
"description": "Get the StateType for the given stateTypeId.",
|
|
"params": {
|
|
"stateTypeId": "Uuid"
|
|
},
|
|
"returns": {
|
|
"deviceError": "$ref:DeviceError",
|
|
"o:stateType": "$ref:StateType"
|
|
}
|
|
}
|
|
},
|
|
"notifications": {
|
|
"Cloud.ConnectionStatusChanged": {
|
|
"description": "Emitted whenever the status of the cloud connection changed. The cloud connection is active if a cloud client is talking with the server.",
|
|
"params": {
|
|
"active": "Bool",
|
|
"authenticated": "Bool",
|
|
"connected": "Bool",
|
|
"enabled": "Bool"
|
|
}
|
|
},
|
|
"Configuration.BasicConfigurationChanged": {
|
|
"description": "Emitted whenever the basic configuration of this server changes.",
|
|
"params": {
|
|
"serverName": "String",
|
|
"serverTime": "Uint",
|
|
"serverUuid": "Uuid",
|
|
"timeZone": "String"
|
|
}
|
|
},
|
|
"Configuration.TcpServerConfigurationChanged": {
|
|
"description": "Emitted whenever the TCP server configuration changes.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
}
|
|
},
|
|
"Configuration.WebServerConfigurationChanged": {
|
|
"description": "Emitted whenever the web server configuration changes.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
}
|
|
},
|
|
"Configuration.WebSocketServerConfigurationChanged": {
|
|
"description": "Emitted whenever the web socket server configuration changes.",
|
|
"params": {
|
|
"host": "String",
|
|
"port": "Uint"
|
|
}
|
|
},
|
|
"Devices.DeviceAdded": {
|
|
"description": "Emitted whenever a Device was added.",
|
|
"params": {
|
|
"device": "$ref:Device"
|
|
}
|
|
},
|
|
"Devices.DeviceChanged": {
|
|
"description": "Emitted whenever the params or name of a Device changed (by EditDevice or ReconfigureDevice).",
|
|
"params": {
|
|
"device": "$ref:Device"
|
|
}
|
|
},
|
|
"Devices.DeviceRemoved": {
|
|
"description": "Emitted whenever a Device was removed.",
|
|
"params": {
|
|
"deviceId": "Uuid"
|
|
}
|
|
},
|
|
"Devices.StateChanged": {
|
|
"description": "Emitted whenever a State of a device changes.",
|
|
"params": {
|
|
"deviceId": "Uuid",
|
|
"stateTypeId": "Uuid",
|
|
"value": "Variant"
|
|
}
|
|
},
|
|
"Events.EventTriggered": {
|
|
"description": "Emitted whenever an Event is triggered.",
|
|
"params": {
|
|
"event": "$ref:Event"
|
|
}
|
|
},
|
|
"Logging.LogDatabaseUpdated": {
|
|
"description": "Emitted whenever the database was updated. The database will be updated when a log entry was deleted. A log entry will be deleted when the corresponding device or a rule will be removed, or when the oldest entry of the database was deleted to keep to database in the size limits.",
|
|
"params": {
|
|
}
|
|
},
|
|
"Logging.LogEntryAdded": {
|
|
"description": "Emitted whenever an entry is appended to the logging system. ",
|
|
"params": {
|
|
"logEntry": "$ref:LogEntry"
|
|
}
|
|
},
|
|
"Rules.RuleActiveChanged": {
|
|
"description": "Emitted whenever the active state of a Rule changed.",
|
|
"params": {
|
|
"active": "Bool",
|
|
"ruleId": "Uuid"
|
|
}
|
|
},
|
|
"Rules.RuleAdded": {
|
|
"description": "Emitted whenever a Rule was added.",
|
|
"params": {
|
|
"rule": "$ref:Rule"
|
|
}
|
|
},
|
|
"Rules.RuleConfigurationChanged": {
|
|
"description": "Emitted whenever the configuration of a Rule changed.",
|
|
"params": {
|
|
"rule": "$ref:Rule"
|
|
}
|
|
},
|
|
"Rules.RuleRemoved": {
|
|
"description": "Emitted whenever a Rule was removed.",
|
|
"params": {
|
|
"ruleId": "Uuid"
|
|
}
|
|
}
|
|
},
|
|
"types": {
|
|
"Action": {
|
|
"actionTypeId": "Uuid",
|
|
"deviceId": "Uuid",
|
|
"o:params": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"ActionType": {
|
|
"id": "Uuid",
|
|
"index": "Int",
|
|
"name": "Uuid",
|
|
"paramTypes": [
|
|
"$ref:ParamType"
|
|
]
|
|
},
|
|
"BasicTag": [
|
|
"BasicTagService",
|
|
"BasicTagDevice",
|
|
"BasicTagSensor",
|
|
"BasicTagActuator",
|
|
"BasicTagLighting",
|
|
"BasicTagEnergy",
|
|
"BasicTagMultimedia",
|
|
"BasicTagWeather",
|
|
"BasicTagGateway",
|
|
"BasicTagHeating",
|
|
"BasicTagCooling",
|
|
"BasicTagNotification",
|
|
"BasicTagSecurity",
|
|
"BasicTagTime",
|
|
"BasicTagShading",
|
|
"BasicTagAppliance",
|
|
"BasicTagCamera",
|
|
"BasicTagLock"
|
|
],
|
|
"BasicType": [
|
|
"Uuid",
|
|
"String",
|
|
"Int",
|
|
"Uint",
|
|
"Double",
|
|
"Bool",
|
|
"Variant",
|
|
"Color",
|
|
"Time",
|
|
"Object"
|
|
],
|
|
"CalendarItem": {
|
|
"duration": "Uint",
|
|
"o:datetime": "Uint",
|
|
"o:repeating": "$ref:RepeatingOption",
|
|
"o:startTime": "Time"
|
|
},
|
|
"CloudError": [
|
|
"CloudErrorNoError",
|
|
"CloudErrorAuthenticationFailed",
|
|
"CloudErrorCloudConnectionDisabled",
|
|
"CloudErrorIdentityServerNotReachable",
|
|
"CloudErrorProxyServerNotReachable",
|
|
"CloudErrorLoginCredentialsMissing"
|
|
],
|
|
"ConfigurationError": [
|
|
"ConfigurationErrorNoError",
|
|
"ConfigurationErrorInvalidTimeZone",
|
|
"ConfigurationErrorInvalidStationName",
|
|
"ConfigurationErrorInvalidPort",
|
|
"ConfigurationErrorInvalidHostAddress",
|
|
"ConfigurationErrorBluetoothHardwareNotAvailable",
|
|
"ConfigurationErrorInvalidCertificate"
|
|
],
|
|
"CreateMethod": [
|
|
"CreateMethodUser",
|
|
"CreateMethodAuto",
|
|
"CreateMethodDiscovery"
|
|
],
|
|
"Device": {
|
|
"deviceClassId": "Uuid",
|
|
"id": "Uuid",
|
|
"name": "String",
|
|
"o:parentId": "Uuid",
|
|
"params": [
|
|
"$ref:Param"
|
|
],
|
|
"setupComplete": "Bool",
|
|
"states": [
|
|
{
|
|
"stateTypeId": "Uuid",
|
|
"value": "Variant"
|
|
}
|
|
]
|
|
},
|
|
"DeviceClass": {
|
|
"actionTypes": [
|
|
"$ref:ActionType"
|
|
],
|
|
"basicTags": [
|
|
"$ref:BasicTag"
|
|
],
|
|
"createMethods": [
|
|
"$ref:CreateMethod"
|
|
],
|
|
"deviceIcon": "$ref:DeviceIcon",
|
|
"discoveryParamTypes": [
|
|
"$ref:ParamType"
|
|
],
|
|
"eventTypes": [
|
|
"$ref:EventType"
|
|
],
|
|
"id": "Uuid",
|
|
"name": "String",
|
|
"o:criticalStateTypeId": "Uuid",
|
|
"o:primaryActionTypeId": "Uuid",
|
|
"o:primaryStateTypeId": "Uuid",
|
|
"paramTypes": [
|
|
"$ref:ParamType"
|
|
],
|
|
"pluginId": "Uuid",
|
|
"setupMethod": "$ref:SetupMethod",
|
|
"stateTypes": [
|
|
"$ref:StateType"
|
|
],
|
|
"vendorId": "Uuid"
|
|
},
|
|
"DeviceDescriptor": {
|
|
"description": "String",
|
|
"id": "Uuid",
|
|
"title": "String"
|
|
},
|
|
"DeviceError": [
|
|
"DeviceErrorNoError",
|
|
"DeviceErrorPluginNotFound",
|
|
"DeviceErrorVendorNotFound",
|
|
"DeviceErrorDeviceNotFound",
|
|
"DeviceErrorDeviceClassNotFound",
|
|
"DeviceErrorActionTypeNotFound",
|
|
"DeviceErrorStateTypeNotFound",
|
|
"DeviceErrorEventTypeNotFound",
|
|
"DeviceErrorDeviceDescriptorNotFound",
|
|
"DeviceErrorMissingParameter",
|
|
"DeviceErrorInvalidParameter",
|
|
"DeviceErrorSetupFailed",
|
|
"DeviceErrorDuplicateUuid",
|
|
"DeviceErrorCreationMethodNotSupported",
|
|
"DeviceErrorSetupMethodNotSupported",
|
|
"DeviceErrorHardwareNotAvailable",
|
|
"DeviceErrorHardwareFailure",
|
|
"DeviceErrorAuthentificationFailure",
|
|
"DeviceErrorAsync",
|
|
"DeviceErrorDeviceInUse",
|
|
"DeviceErrorDeviceInRule",
|
|
"DeviceErrorDeviceIsChild",
|
|
"DeviceErrorPairingTransactionIdNotFound",
|
|
"DeviceErrorParameterNotWritable"
|
|
],
|
|
"DeviceIcon": [
|
|
"DeviceIconNone",
|
|
"DeviceIconBed",
|
|
"DeviceIconBlinds",
|
|
"DeviceIconCeilingLamp",
|
|
"DeviceIconCouch",
|
|
"DeviceIconDeskLamp",
|
|
"DeviceIconDesk",
|
|
"DeviceIconHifi",
|
|
"DeviceIconPower",
|
|
"DeviceIconEnergy",
|
|
"DeviceIconRadio",
|
|
"DeviceIconSmartPhone",
|
|
"DeviceIconSocket",
|
|
"DeviceIconStandardLamp",
|
|
"DeviceIconSun",
|
|
"DeviceIconTablet",
|
|
"DeviceIconThermometer",
|
|
"DeviceIconTune",
|
|
"DeviceIconTv",
|
|
"DeviceIconBattery",
|
|
"DeviceIconDishwasher",
|
|
"DeviceIconWashingMachine",
|
|
"DeviceIconLaundryDryer",
|
|
"DeviceIconIrHeater",
|
|
"DeviceIconRadiator",
|
|
"DeviceIconSwitch",
|
|
"DeviceIconMotionDetectors",
|
|
"DeviceIconWeather",
|
|
"DeviceIconTime",
|
|
"DeviceIconLightBulb",
|
|
"DeviceIconGateway",
|
|
"DeviceIconMail",
|
|
"DeviceIconNetwork",
|
|
"DeviceIconCloud",
|
|
"DeviceIconGarage",
|
|
"DeviceIconRollerShutter"
|
|
],
|
|
"Event": {
|
|
"deviceId": "Uuid",
|
|
"eventTypeId": "Uuid",
|
|
"o:params": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"EventDescriptor": {
|
|
"deviceId": "Uuid",
|
|
"eventTypeId": "Uuid",
|
|
"o:paramDescriptors": [
|
|
"$ref:ParamDescriptor"
|
|
]
|
|
},
|
|
"EventType": {
|
|
"id": "Uuid",
|
|
"index": "Int",
|
|
"name": "String",
|
|
"o:graphRelevant": "Bool",
|
|
"o:ruleRelevant": "Bool",
|
|
"paramTypes": [
|
|
"$ref:ParamType"
|
|
]
|
|
},
|
|
"InputType": [
|
|
"InputTypeNone",
|
|
"InputTypeTextLine",
|
|
"InputTypeTextArea",
|
|
"InputTypePassword",
|
|
"InputTypeSearch",
|
|
"InputTypeMail",
|
|
"InputTypeIPv4Address",
|
|
"InputTypeIPv6Address",
|
|
"InputTypeUrl",
|
|
"InputTypeMacAddress"
|
|
],
|
|
"LogEntry": {
|
|
"loggingLevel": "$ref:LoggingLevel",
|
|
"o:active": "Bool",
|
|
"o:deviceId": "Uuid",
|
|
"o:errorCode": "String",
|
|
"o:eventType": "$ref:LoggingEventType",
|
|
"o:typeId": "Uuid",
|
|
"o:value": "String",
|
|
"source": "$ref:LoggingSource",
|
|
"timestamp": "Int"
|
|
},
|
|
"LoggingError": [
|
|
"LoggingErrorNoError",
|
|
"LoggingErrorLogEntryNotFound",
|
|
"LoggingErrorInvalidFilterParameter"
|
|
],
|
|
"LoggingEventType": [
|
|
"LoggingEventTypeTrigger",
|
|
"LoggingEventTypeActiveChange",
|
|
"LoggingEventTypeEnabledChange",
|
|
"LoggingEventTypeActionsExecuted",
|
|
"LoggingEventTypeExitActionsExecuted"
|
|
],
|
|
"LoggingLevel": [
|
|
"LoggingLevelInfo",
|
|
"LoggingLevelAlert"
|
|
],
|
|
"LoggingSource": [
|
|
"LoggingSourceSystem",
|
|
"LoggingSourceEvents",
|
|
"LoggingSourceActions",
|
|
"LoggingSourceStates",
|
|
"LoggingSourceRules"
|
|
],
|
|
"Param": {
|
|
"name": "String",
|
|
"value": "$ref:BasicType"
|
|
},
|
|
"ParamDescriptor": {
|
|
"name": "String",
|
|
"operator": "$ref:ValueOperator",
|
|
"value": "$ref:BasicType"
|
|
},
|
|
"ParamType": {
|
|
"index": "Int",
|
|
"name": "String",
|
|
"o:allowedValues": [
|
|
"Variant"
|
|
],
|
|
"o:defaultValue": "Variant",
|
|
"o:inputType": "$ref:InputType",
|
|
"o:maxValue": "Variant",
|
|
"o:minValue": "Variant",
|
|
"o:readOnly": "Bool",
|
|
"o:unit": "$ref:Unit",
|
|
"type": "$ref:BasicType"
|
|
},
|
|
"Plugin": {
|
|
"id": "Uuid",
|
|
"name": "String",
|
|
"params": [
|
|
"$ref:Param"
|
|
]
|
|
},
|
|
"RemovePolicy": [
|
|
"RemovePolicyCascade",
|
|
"RemovePolicyUpdate"
|
|
],
|
|
"RepeatingMode": [
|
|
"RepeatingModeNone",
|
|
"RepeatingModeHourly",
|
|
"RepeatingModeDaily",
|
|
"RepeatingModeWeekly",
|
|
"RepeatingModeMonthly",
|
|
"RepeatingModeYearly"
|
|
],
|
|
"RepeatingOption": {
|
|
"mode": "$ref:RepeatingMode",
|
|
"o:monthDays": [
|
|
"Int"
|
|
],
|
|
"o:weekDays": [
|
|
"Int"
|
|
]
|
|
},
|
|
"Rule": {
|
|
"actions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"active": "Bool",
|
|
"enabled": "Bool",
|
|
"eventDescriptors": [
|
|
"$ref:EventDescriptor"
|
|
],
|
|
"executable": "Bool",
|
|
"exitActions": [
|
|
"$ref:RuleAction"
|
|
],
|
|
"id": "Uuid",
|
|
"name": "String",
|
|
"stateEvaluator": "$ref:StateEvaluator",
|
|
"timeDescriptor": "$ref:TimeDescriptor"
|
|
},
|
|
"RuleAction": {
|
|
"actionTypeId": "Uuid",
|
|
"deviceId": "Uuid",
|
|
"o:ruleActionParams": [
|
|
"$ref:RuleActionParam"
|
|
]
|
|
},
|
|
"RuleActionParam": {
|
|
"name": "String",
|
|
"o:eventParamName": "String",
|
|
"o:eventTypeId": "Uuid",
|
|
"o:value": "$ref:BasicType"
|
|
},
|
|
"RuleDescription": {
|
|
"active": "Bool",
|
|
"enabled": "Bool",
|
|
"executable": "Bool",
|
|
"id": "Uuid",
|
|
"name": "String"
|
|
},
|
|
"RuleError": [
|
|
"RuleErrorNoError",
|
|
"RuleErrorInvalidRuleId",
|
|
"RuleErrorRuleNotFound",
|
|
"RuleErrorDeviceNotFound",
|
|
"RuleErrorEventTypeNotFound",
|
|
"RuleErrorStateTypeNotFound",
|
|
"RuleErrorActionTypeNotFound",
|
|
"RuleErrorInvalidParameter",
|
|
"RuleErrorInvalidRuleFormat",
|
|
"RuleErrorMissingParameter",
|
|
"RuleErrorInvalidRuleActionParameter",
|
|
"RuleErrorInvalidStateEvaluatorValue",
|
|
"RuleErrorTypesNotMatching",
|
|
"RuleErrorNotExecutable",
|
|
"RuleErrorInvalidTimeDescriptor",
|
|
"RuleErrorInvalidRepeatingOption",
|
|
"RuleErrorInvalidCalendarItem",
|
|
"RuleErrorInvalidTimeEventItem",
|
|
"RuleErrorContainsEventBasesAction",
|
|
"RuleErrorNoExitActions"
|
|
],
|
|
"SetupMethod": [
|
|
"SetupMethodJustAdd",
|
|
"SetupMethodDisplayPin",
|
|
"SetupMethodEnterPin",
|
|
"SetupMethodPushButton"
|
|
],
|
|
"State": {
|
|
"deviceId": "Uuid",
|
|
"stateTypeId": "Uuid",
|
|
"value": "Variant"
|
|
},
|
|
"StateDescriptor": {
|
|
"deviceId": "Uuid",
|
|
"operator": "$ref:ValueOperator",
|
|
"stateTypeId": "Uuid",
|
|
"value": "Variant"
|
|
},
|
|
"StateEvaluator": {
|
|
"o:childEvaluators": [
|
|
"$ref:StateEvaluator"
|
|
],
|
|
"o:operator": "$ref:StateOperator",
|
|
"o:stateDescriptor": "$ref:StateDescriptor"
|
|
},
|
|
"StateOperator": [
|
|
"StateOperatorAnd",
|
|
"StateOperatorOr"
|
|
],
|
|
"StateType": {
|
|
"defaultValue": "Variant",
|
|
"id": "Uuid",
|
|
"index": "Int",
|
|
"name": "String",
|
|
"o:graphRelevant": "Bool",
|
|
"o:maxValue": "Variant",
|
|
"o:minValue": "Variant",
|
|
"o:possibleValues": [
|
|
"Variant"
|
|
],
|
|
"o:ruleRelevant": "Bool",
|
|
"o:unit": "$ref:Unit",
|
|
"type": "$ref:BasicType"
|
|
},
|
|
"TimeDescriptor": {
|
|
"o:calendarItems": [
|
|
"$ref:CalendarItem"
|
|
],
|
|
"o:timeEventItems": [
|
|
"$ref:TimeEventItem"
|
|
]
|
|
},
|
|
"TimeEventItem": {
|
|
"o:datetime": "Uint",
|
|
"o:repeating": "$ref:RepeatingOption",
|
|
"o:time": "Time"
|
|
},
|
|
"Unit": [
|
|
"UnitNone",
|
|
"UnitSeconds",
|
|
"UnitMinutes",
|
|
"UnitHours",
|
|
"UnitUnixTime",
|
|
"UnitMeterPerSecond",
|
|
"UnitKiloMeterPerHour",
|
|
"UnitDegree",
|
|
"UnitRadiant",
|
|
"UnitDegreeCelsius",
|
|
"UnitDegreeKelvin",
|
|
"UnitMired",
|
|
"UnitMilliBar",
|
|
"UnitBar",
|
|
"UnitPascal",
|
|
"UnitHectoPascal",
|
|
"UnitAtmosphere",
|
|
"UnitLumen",
|
|
"UnitLux",
|
|
"UnitCandela",
|
|
"UnitMilliMeter",
|
|
"UnitCentiMeter",
|
|
"UnitMeter",
|
|
"UnitKiloMeter",
|
|
"UnitGram",
|
|
"UnitKiloGram",
|
|
"UnitDezibel",
|
|
"UnitBpm",
|
|
"UnitKiloByte",
|
|
"UnitMegaByte",
|
|
"UnitGigaByte",
|
|
"UnitTeraByte",
|
|
"UnitMilliWatt",
|
|
"UnitWatt",
|
|
"UnitKiloWatt",
|
|
"UnitKiloWattHour",
|
|
"UnitEuroPerMegaWattHour",
|
|
"UnitEuroCentPerKiloWattHour",
|
|
"UnitPercentage",
|
|
"UnitPartsPerMillion",
|
|
"UnitEuro",
|
|
"UnitDollar",
|
|
"UnitHerz",
|
|
"UnitAmpere",
|
|
"UnitMilliAmpere",
|
|
"UnitVolt",
|
|
"UnitMilliVolt",
|
|
"UnitVoltAmpere",
|
|
"UnitVoltAmpereReactive",
|
|
"UnitAmpereHour"
|
|
],
|
|
"ValueOperator": [
|
|
"ValueOperatorEquals",
|
|
"ValueOperatorNotEquals",
|
|
"ValueOperatorLess",
|
|
"ValueOperatorGreater",
|
|
"ValueOperatorLessOrEqual",
|
|
"ValueOperatorGreaterOrEqual"
|
|
],
|
|
"Vendor": {
|
|
"id": "Uuid",
|
|
"name": "String"
|
|
}
|
|
}
|
|
}
|