2018-01-26 10:22:47 +00:00
|
|
|
# SonOff module based on Mongoose-OS and using MQTT to integrate to some home automation
|
2017-06-05 19:34:53 +00:00
|
|
|
|
2017-06-06 10:28:16 +00:00
|
|
|
## Overview
|
2017-06-05 19:34:53 +00:00
|
|
|
|
|
|
|
- Do not configure WiFi - leave the module in AP (Access Point mode).
|
2018-01-26 10:22:47 +00:00
|
|
|
- Mongoose OS starts a WiFi network called `SONOFF_XXXXXX` with password
|
2018-01-27 14:51:57 +00:00
|
|
|
- if STA is configured and gets access, the AP is disabled ~120 seconds after boot `Sonoff`. Switch your workstation to that WiFi network
|
|
|
|
|
|
|
|
## Setup via Web and in AP-mode
|
|
|
|
|
|
|
|
- Point your browser to [http://192.168.4.1]http://192.168.4.1
|
2018-01-26 10:22:47 +00:00
|
|
|
- You'll see a simple form to configure WiFi network & password and some sonoff parameters
|
|
|
|
- Integration into your home automation system based on MQTT, please configure
|
2018-01-27 14:51:57 +00:00
|
|
|
- MQTT host with port
|
|
|
|
- MQTT Client ID
|
|
|
|
- MQTT Password
|
2018-01-26 10:22:47 +00:00
|
|
|
- MQTT topic to send current switch status changes (published)
|
|
|
|
- MQTT topic to subscribe to receive commands
|
2017-06-05 19:34:53 +00:00
|
|
|
|
2017-06-06 11:33:00 +00:00
|
|
|
![Screenshot](shot.png)
|
2017-06-06 12:54:37 +00:00
|
|
|
|
2018-01-27 14:51:57 +00:00
|
|
|
## How to build and install this app
|
2017-06-06 12:54:37 +00:00
|
|
|
|
|
|
|
- Install and start [mos tool](https://mongoose-os.com/software.html)
|
|
|
|
- Switch to the Project page, find and import this app, build and flash it:
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<img src="https://mongoose-os.com/images/app1.gif" width="75%">
|
2018-01-27 14:51:57 +00:00
|
|
|
</p>
|