Library for remotely interfacing with the Momit Cool air conditioning controller.
Project description
py-momit-cool-remote is a Python 3 library for remotely controlling your air conditioning unit through the use of the Momit Cool.
The Momit Cool is a small device that can be attached to your AC, allowing you to control it from your smart phone. In order to accomplish remote control from anywhere, commands are sent to their central server, which then sends them to your Momit Gateway device. There are two problems with this:
If Momit goes bankrupt and shuts down their servers, everything will stop working.
It is extremely unsecure, all the traffic goes unencrypted over the wire.
py-momit-cool-remote communicates directly with the Momit Gateway, completely circumventing Momit’s servers.
Note: Python 3.5 and newer only.
Installation
$ pip install py-momit-cool-remote
Example usage
from momitcool import MomitCool
cool = MomitCool('192.168.3.164')
cool.on()
cool.off()
$ momit-cool --host 192.168.3.164 --action on
$ momit-cool --host 192.168.3.164 --action off
Details
The Momit Cool is a commercial, closed source product that does not have any documentation on how communication is performed. All of the information provided in this repository was found by reverse engineering the protocol. I uncovered most of the information by ARP poisoning and intercepting the traffic between the Momit Gateway and the Momit servers. The Momit Gateway communicates over the CoAP protocol.
Turning on
PUT /10242/0/0
Content-Format: 1541
cm=cool,t=1335,sp=210
Turning off
PUT /10242/0/0
Content-Format: 1541
cm=cool,t=0,sp=off
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.