Skip to Content
🚀 We just launched! Please star us on Github!

Switcher Device

Device Category: switcher

The Switcher device represents a controllable outlet or switch that can toggle the power supply to connected devices and monitor energy usage. It supports multiple outlets for power control.


Required Channels

These channels are mandatory for the functionality of the switcher device:

ChannelDescriptionMultipleDetails
outletControls the on/off state of the connected outlets or switches.YesSee details
device_informationProvides metadata about the device, such as manufacturer, model, and firmware.NoSee details

Optional Channels

These channels are optional and provide additional features:

ChannelDescriptionMultipleDetails
electrical_energyTracks total energy consumption over time.NoSee details
electrical_powerProvides real-time power usage information.NoSee details

Use Case Scenarios

  1. Power Control:

    • Use the outlet channel to toggle the power supply on or off for connected devices.
    • For multi-outlet devices, control each outlet independently.
  2. Energy Monitoring:

    • Track energy consumption with the electrical_energy channel for billing or usage optimization.
    • Monitor real-time power usage with the electrical_power channel to identify energy-hungry devices.

Developer Notes

  1. Channel Implementation:

    • The device_information channel is required for identifying the device and providing basic metadata.
    • Implement multiple outlet channels for devices with multiple controllable switches or sockets.
  2. Integration:

    • Add the electrical_energy and electrical_power channels to enable energy monitoring features.
  3. Extensibility:

    • This device can be further enhanced by adding custom features for specific hardware, like timers or schedules for each outlet.
  4. Handling Multiple Outlets:

    • Ensure that each outlet channel is uniquely identified and managed within the device for seamless user control.
Last updated on