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

StateInterface

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.

Example:

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