Project Home‎ > ‎Documentation‎ > ‎Devices‎ > ‎


States supported - UNKNOWN, ON, OFF, LEVEL

A StateInterface device is mainly used to interface any manor of virtual or real devices that can communicate through a NamedPipe interface. Since it uses a NamedPipe you could communicate to the system with scripts or other software and may provide a simpler way to add one device without writing a full interface for it. The sky is the limit here.


# My camera motion software will echo a "motion" to this pipe. pipe_front_yard_motion = StateInterface(NamedPipe('/tmp/yard_motion'))