diff --git a/demandshaper-module/Views/add_device.php b/demandshaper-module/Views/add_device.php index 70c6ee5..5405b37 100644 --- a/demandshaper-module/Views/add_device.php +++ b/demandshaper-module/Views/add_device.php @@ -11,10 +11,19 @@ */ $v=2; -global $path; +global $path, $mysqli, $redis, $user, $session, $settings; $emoncmspath = $path; +if ($remoteaccess) $emoncmspath .= "remoteaccess/"; // if ($remoteaccess) $emoncmspath .= "remoteaccess/"; if (isset($_GET['apikey'])) $apikeystr = "&apikey=".$_GET['apikey']; else $apikeystr = ""; + +$device = false; +if (file_exists("Modules/device/device_model.php")) { + require_once "Modules/device/device_model.php"; + $device = new Device($mysqli, $redis); +} + +$u = $user->get($session['userid']) ?> @@ -55,6 +64,28 @@

4. With the smartplug WIFI settings configured, connect back to you home network and keep this window open. After a couple of minutes a notice will appear asking whether to allow device at the given ip address to connect. Click allow and wait a couple of minutes for the smart plug to appear in the left hand menu. Click on the smart plug to start scheduling it.

+ +
Tasmota Device
+
+
    +
  1. Commission your device as per the Tasmota instructions.

  2. +
  3. Navigate to your Tasmota device configuration in your webbrowser.

  4. +
  5. Select Configuration > Configure Other and set MQTT enabled. Save, and return to Configuration.

  6. +
  7. +

    Select Configure MQTT. Enter (or copy and paste) the values below before saving:

    +
      +
    • Host:
    • +
    • Port:
    • +
    • User: username ?>
    • +
    • Password (API write key): apikey_write ?>
    • +
    • Topic: tasmota_%06X
    • +
    • Full topic: user/id?>/%topic%/%prefix%
    • +
    +
  8. +
  9. A new Tasmota entry should appear in the devices menu shortly.
  10. +
+
+
OpenEVSE Charging Station
diff --git a/demandshaper-module/Views/main.php b/demandshaper-module/Views/main.php index 538e98e..b9cdfa7 100644 --- a/demandshaper-module/Views/main.php +++ b/demandshaper-module/Views/main.php @@ -1,4 +1,9 @@ - + @@ -10,6 +15,7 @@ +
@@ -209,6 +215,7 @@