Skip to content

Device Saving Structure

Dominik edited this page Dec 27, 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": "SimpleHome API",
      "icon": "Display"
    }
  }
}

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:

  • Display
  • Electricity
  • Gauge
  • Hygrometer
  • Lamp
  • Raspberry Pi
  • Router
  • Speaker
  • Stack
  • Thermometer

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