10 settings - patience4711/SONOFF-SENSOR GitHub Wiki
Time Config: In order to have a correct system time and sunrise/sunset values you have to fillup the 'time config' page.
Mosquitto: Sends data about the sensor readings and the state of the switch to your mqtt broker. It even listens on its in topic for commands. You should provide data in the mosquitto page.
settings: In the settings menu you should uncheck 'serial debug' as this prevents the sensors to work. When you provide a name
this is used in the hostname of the device, so you can recognize it in your network.
The sonoff can switch automatically based on the time (timers) or based on sensor readings (e.g. thermostate).
Via the webinterface we can do all the configuration. For instance we can configure a thermostate, when we connected a temperature sensor
You will get a very advanced thermostate that sends the sensor readings and the state of the relay via mosquitto. In our domotica software we can see a chart of the temperature and we can see if the thermostate switched off or on. We can monitor these things on our phone and we can change the settings easely.
Click : menu-> sensors-> Now we can choose the adequate sensor and save. Next we click "thermostate", here we can set the behaviour of the thermostate, e.g. switch on when the temperature is higher than the set value (or reversed). Save this. Now we go to "menu > settings" and choose the automation we want (thermostate). When this is saved the thermostate starts working, provided that the debug checkbox in "settings" is unchecked (we are not in debug mode).
Visit the info page to get more info, the value of senSor should be 3.
setting the kind of sensor
setup of a thermostate that switches on when the temperature is below -12.7
this works in the same way as the thermostate.
this also works in the same way as the thermostate.
You can set 4 different timers. Enter the switching times and select whether this is an absolute time or relative to sunrise or sunset. Check on which days the switch should be active. In the 'active automation' selectbox, choose the option 'on/off timers'
We can set a sensor and its behaviour (does it have to work during the day and/or night, how long does the swith stays on, etc. All the events are send with mosquitto.