platypush.plugins.switch

class platypush.plugins.switch.SwitchPlugin(**kwargs)[source]

Abstract class for interacting with switch devices

__init__(**kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

off(device, *args, **kwargs)[source]

Turn the device off

on(device, *args, **kwargs)[source]

Turn the device on

status(device=None, *args, **kwargs)[source]

Get the status of a specified device or of all the configured devices (default)

toggle(device, *args, **kwargs)[source]

Toggle the device status (on/off)