Skip to content

Device Saving Structure

Christian Weiske edited this page Dec 9, 2021 · 6 revisions

List of Devices

You can add devices with their Internet address in the app.
If you want to edit the raw JSON string, you have to create the string as follows:

{
  "devices": {
    "randomdeviceid": {
      "name": "New Device",
      "address": "http://127.0.0.1/",
      "mode": "Normal",
      "icon": "Phone"
    }
  }
}

This will generate a device with the name New Device and the address http://127.0.0.1/. Please note that the properties mode and icon are case-sensitive. The ID is used internally and can be chosen freely.

icon

Supported values for icon:

  • Lamp
  • Laptop
  • Phone
  • Raspberry Pi
  • Router
  • Speaker
  • Stack
  • Tablet
  • Thermometer
  • TV

See Global#getIcon.

mode

Supported values for mode:

  • Fritz! Auto-Login
  • Hue API
  • Node-RED
  • SimpleHome API
  • Shelly Gen 1
  • Shelly Gen 2
  • Tasmota
  • Website

See MainActivity#handleLevelOne.

Clone this wiki locally