fauxmo package¶
Subpackages¶
Submodules¶
fauxmo.cli module¶
cli.py Argparse based CLI for fauxmo. Helps provide console_script via argparse. Also initializes logging.
fauxmo.fauxmo module¶
fauxmo.py
Emulates a Belkin Wemo for interaction with an Amazon Echo. See README.md at <https://github.com/n8henrie/fauxmo>.
-
fauxmo.fauxmo.
main
(config_path=None, verbosity=20)[source]¶ Runs the main fauxmo process
Spawns a UDP server to handle the Echo’s UPnP / SSDP device discovery process as well as multiple TCP servers to respond to the Echo’s device setup requests and handle its process for turning devices on and off.
- Kwargs:
- config_path (str): Path to config file. If not given will search for
- config.json in cwd, ~/.fauxmo/, and /etc/fauxmo/.
verbosity (int): Logging verbosity, defaults to 20
fauxmo.protocols module¶
protocols.py
Holds asyncio protocols required classes for the Echo’s UPnP / SSDP device discovery.
-
class
fauxmo.protocols.
Fauxmo
(name, action_handler)[source]¶ Bases:
asyncio.protocols.Protocol
Mimics a WeMo switch on the network.
Aysncio protocol intended for use with BaseEventLoop.create_server.
fauxmo.utils module¶
utils.py
Utility functions for Fauxmo.