diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java
index 327e451225..e9baabb9ca 100644
--- a/app/src/main/java/info/nightscout/androidaps/MainApp.java
+++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java
@@ -75,6 +75,7 @@ import info.nightscout.androidaps.plugins.Source.SourceXdripPlugin;
import info.nightscout.androidaps.plugins.Treatments.TreatmentsPlugin;
import info.nightscout.androidaps.plugins.Wear.WearPlugin;
import info.nightscout.androidaps.plugins.XDripStatusline.StatuslinePlugin;
+import info.nightscout.androidaps.plugins.general.automation.AutomationPlugin;
import info.nightscout.androidaps.receivers.DataReceiver;
import info.nightscout.androidaps.receivers.KeepAliveReceiver;
import info.nightscout.androidaps.receivers.NSAlarmReceiver;
@@ -187,6 +188,7 @@ public class MainApp extends Application {
pluginsList.add(PersistentNotificationPlugin.getPlugin());
pluginsList.add(NSClientPlugin.getPlugin());
pluginsList.add(MaintenancePlugin.initPlugin(this));
+ pluginsList.add(AutomationPlugin.getPlugin());
pluginsList.add(ConfigBuilderPlugin.getPlugin());
diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationFragment.java
new file mode 100644
index 0000000000..0e9eccd84e
--- /dev/null
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationFragment.java
@@ -0,0 +1,24 @@
+package info.nightscout.androidaps.plugins.general.automation;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import info.nightscout.androidaps.R;
+import info.nightscout.androidaps.plugins.Common.SubscriberFragment;
+
+public class AutomationFragment extends SubscriberFragment {
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.automation_fragment, container, false);
+ return view;
+ }
+
+ @Override
+ protected void updateGUI() {
+
+ }
+}
diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.java
new file mode 100644
index 0000000000..86e7ae74b7
--- /dev/null
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationPlugin.java
@@ -0,0 +1,28 @@
+package info.nightscout.androidaps.plugins.general.automation;
+
+import info.nightscout.androidaps.R;
+import info.nightscout.androidaps.interfaces.PluginBase;
+import info.nightscout.androidaps.interfaces.PluginDescription;
+import info.nightscout.androidaps.interfaces.PluginType;
+
+public class AutomationPlugin extends PluginBase {
+
+ static AutomationPlugin plugin = null;
+
+ public static AutomationPlugin getPlugin() {
+ if (plugin == null)
+ plugin = new AutomationPlugin();
+ return plugin;
+ }
+
+ private AutomationPlugin() {
+ super(new PluginDescription()
+ .mainType(PluginType.GENERAL)
+ .fragmentClass(AutomationFragment.class.getName())
+ .pluginName(R.string.automation)
+ .shortName(R.string.automation_short)
+ .preferencesId(R.xml.pref_safety)
+ .description(R.string.automation_description)
+ );
+ }
+}
diff --git a/app/src/main/res/layout/automation_fragment.xml b/app/src/main/res/layout/automation_fragment.xml
new file mode 100644
index 0000000000..64cdf916fb
--- /dev/null
+++ b/app/src/main/res/layout/automation_fragment.xml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7f6067898b..8e74db6510 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1205,6 +1205,9 @@
Minimal request change [%]
Loop will popup new change request only if change is bigger than this value. Default value is 20%
short_tabtitles
+ Automation
+ Auto
+ User defined automation tasks
- %1$d day