An interface to control ModerForms smart fans
Modern Forms smart fan interface
Modern Forms has a collection of cloud connected Wi-Fi smart fans. They can be controlled via their app, but they also support local control. This project is an interface to control their fans locally via the REST API on the fan.
All aspects of the fan and option light kit can be controlled.
The REST API of the fan is unpublished. It was mapped out using a packet capture and interactions with their app. Since the manufacturer was unwilling to publish the API it is subject to change and break at any time.
Import into your code and create a
import modernforms fan = moderforms.ModernFormsFan('192.168.1.10', 5)
Constructor takes 2 arguments. The IP or hostname (if you DNS registered your fan) and the timeout for communicating with the fan.
The timeout is optional and has a default value of 5.
The fan has 3 attributes to control:
>>> fan.fan_on False >>> fan.fan_on = True >>> fan.fan_on True
The light kit has two attributes to control:
>>> fan.light_on False >>> fan.light_on = True >>> fan.light_on True
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size modernforms-0.1.6-py3-none-any.whl (17.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size modernforms-0.1.6.tar.gz (4.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for modernforms-0.1.6-py3-none-any.whl