Butler Logo
Fail-Safe IoT Topology

The Stateful, Local-First IoT Platform

An open-core hardware automation ecosystem built to operate reliably through power losses and intermittent network drops. Simplifying human lives by automating physical activities locally.

"Smart devices shouldn't become dumb when the internet drops. Butler is an enterprise-grade, local-first IoT platform designed to remain fully operational and maintain state even under total network failure."

Request IoT Customization Firmware Core Android Console

Two Parts, One Ecosystem

The Butler platform connects robust microcontroller firmware directly to a native mobile controller.

1. Embedded C/C++ Firmware

Hardware controller code built targeting ESP32 and ESP8266 microcontrollers. Resides directly on physical automation switches, relays, and motor pins.

  • C/C++ compatible with ESP-IDF v6.0 and ESP8266 RTOS SDK
  • Stateful schedule synchronization & hardware RTC support
  • Persistent diagnostics stored in Non-Volatile Storage (NVS)
View Firmware on GitHub

2. Kotlin Android Companion

The mobile app console designed for commissioning, configuration, local wireless handshakes, and remote telemetry dashboard sync.

  • Jetpack Compose frontend utilizing modern Kotlin architecture
  • SoftAP and BLE provisioning using hardware QR keys
  • Direct local file/diagnostic extraction during offline gaps
View App on GitHub

Pillar A: Fail-Safe Hierarchy

Butler operates under a strict hierarchical fallback model, prioritizing local survival over cloud dependency.

LEVEL 1

Cloud-Tethered

Optional cloud sync. Streams logs and configurations to standard cloud platforms when network is stable.

LEVEL 2

Local Hub (MQTT)

Control and metrics stream locally through a local Linux IoT Hub (iothub.local) via MQTT protocol.

LEVEL 3

Standalone Offline

If Wi-Fi drops, the local RTC chip maintains perfect cron clock cycles, executing board schedules offline.

LEVEL 4

Direct Mobile AP

In total isolation, a direct SoftAP/BLE connection retrieves local diagnostics and uploads configs directly.


Pillar B: Stateful Execution

Preventing digital twin drift. Traverses and calculates exact target state dynamically.

Traditional Event-Based IoT

Listens for isolated triggers (e.g. "Relay On"). If a power cut or connection drop occurs at trigger time, the device boots into the wrong state, drifting completely from cloud configurations and skipping crucial daily cycles.

Butler Stateful Simulation

On boot, NTP sync, or schedule updates, the firmware runs a Full-Day Simulation. It traverses the stored NVS cron configurations, aggregates chronological changes up to the current second, and enforces the correct target state immediately.

Local Provisioning & Sync Workflow

How Butler Manager securely commissions hardware controllers without cloud dependencies.

1
Scan QR Code App Launch

User scans the hardware board's factory QR code using Butler Manager to retrieve board credentials and POP keys.

2
Secure Local Connect SoftAP / BLE

The mobile app establishes a direct, secure local handshake with the controller using Bluetooth Low Energy (BLE) or SoftAP.

3
Write Configuration bcfgWr Payload

The app transmits localized Wi-Fi configurations, local NTP target addresses, MQTT endpoint credentials, and OTA parameters.

4
Schedules Injection sProbe Cron

The app synchronizes the current UTC timestamp and uploads cron schedules directly into the ESP32 non-volatile storage (NVS).

5
Network Connect MQTT Channel

The device reboots, connects to the local broker (iothub.local), and subscribes to BUTLER_<MAC>/nvCron/wr topics for real-time adjustments.

Flexible Deployment Types

Butler dynamically scales down or up to target different physical automation node architectures.

Sensor Only Nodes

Monitors and logs physical events locally in flash storage. Automatically streams buffered logs to local hubs or cloud backends when network links are restored.

Actuator Only Nodes

Triggers scheduled physical switches and relay changes locally. Fetches and updates new cron configurations from the network whenever links become active.

Integrated Controller Nodes

Combines sensor telemetry with local trigger actions directly on the device. Runs fully independent logic loops offline and syncs control algorithms when connected.

Target Use Cases

Engineered specifically for environments where connection cuts are common but operations are critical.

Smart Agriculture

Solar-powered sensor nodes deployed across remote agricultural fields, syncing logs when farm vehicles with satellite hotspot links pass by.

Resilient Home Automation

Local automations continue executing even during router outages or power resets, completely shielding the property from internet or cloud provider shutdowns.

Remote Extreme Deployments

Bespoke controller setups for offline sensor gathering in extreme settings (e.g., deep sea research nodes, dense forest micro-climates, and deserts).

Air-Gapped Industrial Networks

High-security configurations where operational commands and telemetry are too critical to ever be exposed to the public internet.

Paid Customizations & Services

Butler is an open-core platform. We customize hardware and firmware setups to automate physical workflows for commercial operations.

1. Custom PCB & Hardware Layouts

Board layout modifications tailored to custom physical form factors, custom relay specifications, and direct integration of specialized current, temperature, or humidity sensors.

2. Bespoke Firmware Implementations

Bespoke firmware logic including custom PWM power modulation profiles, complex sensor thresholds, hardware encryption chips, and industrial Modbus / RS485 communication protocols.

3. White-Labeled Companion App

Branded builds of Butler Manager for corporate identity (custom logos, preset local hub DNS end-points, strict internal networking rules, and pre-packaged APK distributions).

4. Local Hub Appliances & Dashboards

Deploying customized on-premise local Linux appliances pre-loaded with secured MQTT brokers, local NTP chronometers, and firmware FOTA update managers for industrial sites.

5. Enterprise SLA & Support

Support agreements covering periodic firmware security patches, on-site diagnostics synchronization, firmware maintenance cycles, and direct engineering help.

Automate Your Physical Activities Safely

Have specialized requirements for fail-safe automation, state preservation, or custom embedded controllers? Let's discuss custom engineering specifications.

Email Customization Support
Inquiries at: niyogi.labs [at] gmail.com