Switchs

Smart Switches (/switch.php)

Designed for binary state automation, smart relay toggling, lighting, power outlets, and multi-channel hardware controllers with supplemental data attributes. 

Technical Endpoint

- Path: /switch.php
- Protocol: HTTP GET / POST

Key Query Parameters

- cmd : Operational instruction
          • "on" -> Energize relay / set state to Active
          • "off" -> De-energize relay / set state to Inactive • "get" -> Query present device switch state 

          • "ping" -> Keep-alive heartbeat verification

- data1 : Auxiliary parameter (e.g., Dimmer level 0-100%, Color RGB, Timer)
- data2 : Auxiliary parameter (e.g., Power consumption metrics, Wattage)
- data3 : Auxiliary parameter (e.g., Custom diagnostic or sub-state flag) 

Common Use Cases

- Smart lighting and power outlet controllers.
- Remote HVAC, pump, and electrical contactor triggers.
- Multi-state toggling with operational feedback loops.


Generated by IoTBind Docs on 2026-11-28 00:41