Automation

AuthorElectins Core Team
Last revision31/07/2026

Automation

Mesin Automation Engine Electins mengeksekusi aturan logika secara otonom di cloud berdasarkan kondisi data sensor yang diterima atau jadwal waktu tertentu.

Skema Aturan Otomatisasi (Source Code Architecture)

  • triggerType: "sensor" (kondisi topik sensor) atau "schedule" (kondisi waktu/cron).

  • triggerConfig: Menyimpan properti { datastream, operator, value, time, cron } (operator pendukung: >, <, ==, !=, >=, <=).

  • conditionConfig: Pengaturan filter hari { days: ["monday", "tuesday"], timezone: "Asia/Jakarta" } (WIB / WITA / WIT).

  • actionType: "control" (mengubah status sakelar), "notify" (push notification).

Contoh Pembuatan Aturan Otomatis

PEMICU: triggerType = "sensor"
  - topic = "temp"
  - operator = ">="
  - value = 35.0

AKSI: actionType = "control"
  - targetTopic = "relay1"
  - value = 1

NOTIFIKASI: actionType = "notify"
  - message = "Peringatan: Suhu Ruang Terlalu Tinggi (35°C)!"

Was this article helpful?