Comments (19)
I'm going to write specific user manual for Sonoff TH, but some info:
- Auto mode has no effect because device has only one relay.
- Sensor is read every 30 seconds.
- If you have connected a heater, then you must use Heat mode, and if you have connected a cooler, then you must use Cool mode.
- If sensor fails, relay turn off automatically.
- You can select operating mode using the Sonoff button (1 LED flash: off; 2 LED flash: heat; 3 LED flash: cool).
from esp-homekit-devices.
If you want a normal switch, you can flash the Sonoff_Basic firmware.
from esp-homekit-devices.
To configure Wifi, device enters in access point mode, so you can connect directly to it, and a web page will appear automatically to let you to configure your wifi network.
from esp-homekit-devices.
Uploaded the firmware on a Sonoff TH16, connected to power, no SSID from it coming... What SSID name am I looking for?
from esp-homekit-devices.
SSID is "SonoffTH <end_of_mad_addr>". It's 2.4GHz Wifi.
What is your UART output?
from esp-homekit-devices.
ageorgios@ubuntu:~/temp4/esp-homekit-devices/devices/Sonoff_TH$ /home/ageorgios/esptool/esptool.py -p /dev/ttyUSB0 --baud 115200 write_flash -fs 8m -fm dout -ff 40m 0x0 /home/ageorgios/temp4/esp-homekit-devices/sdk/esp-open-rtos/bootloader/firmware_prebuilt/rboot.bin 0x1000 /home/ageorgios/temp4/esp-homekit-devices/sdk/esp-open-rtos/bootloader/firmware_prebuilt/blank_config.bin 0x2000 ./firmware/Sonoff_TH.bin
WARNING: Flash size arguments in megabits like '8m' are deprecated.
Please use the equivalent size '1MB'.
Megabit arguments may be removed in a future release.
esptool.py v2.3-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x0320
Compressed 3104 bytes to 2169...
Wrote 3104 bytes (2169 compressed) at 0x00000000 in 0.2 seconds (effective 119.6 kbit/s)...
Hash of data verified.
Compressed 2048 bytes to 23...
Wrote 2048 bytes (23 compressed) at 0x00001000 in 0.0 seconds (effective 1029.5 kbit/s)...
Hash of data verified.
Compressed 455104 bytes to 322351...
Wrote 455104 bytes (322351 compressed) at 0x00002000 in 28.3 seconds (effective 128.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
from esp-homekit-devices.
Your UART output when you power-on your Sonoff, after flashing.
from esp-homekit-devices.
I dont really know how to do this (UART output).
The difference is that I used external esptool v2.3, and the command directly instead of the
make -C devices/Sonoff_TH test
because the esptool included in the sdk is v1.2 and does not work, stopping at this stage:
ageorgios@ubuntu:~/temp4/esp-homekit-devices$ make -C devices/Sonoff_TH test
make: Entering directory '/home/ageorgios/temp4/esp-homekit-devices/devices/Sonoff_TH'
esptool.py -p /dev/ttyUSB0 --baud 115200 write_flash -fs 8m -fm dout -ff 40m \
0x0 /home/ageorgios/temp4/esp-homekit-devices/sdk/esp-open-rtos/bootloader/firmware_prebuilt/rboot.bin 0x1000 /home/ageorgios/temp4/esp-homekit-devices/sdk/esp-open-rtos/bootloader/firmware_prebuilt/blank_config.bin 0x2000 ./firmware/Sonoff_TH.bin
esptool.py v1.2
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0320
Writing 4096 @ 0x0...
How can I lower the baud rate?
from esp-homekit-devices.
Ok. Don't worry. Follow those steps, assuming that your Sonoff is connected to your FTDI:
- Disconnect your FTDI from USB.
- Connect it to USB.
- In your terminal, run:
cd ~/temp4/esp-homekit-devices/devices/Sonoff_TH/
export ESPPORT=/dev/ttyUSB0
make monitor
Now you will see the UART output.
from esp-homekit-devices.
ageorgios@ubuntu:~/temp4/esp-homekit-devices/devices/Sonoff_TH$ make monitor
/home/ageorgios/temp4/esp-homekit-devices/sdk/esp-open-rtos//utils/filteroutput.py --port /dev/ttyUSB0 --baud 115200 --elf ./build/Sonoff_TH.out
Opening /dev/ttyUSB0 at 115200bps...
No output..
I think I will use the precompiled firmwares you just uploaded
from esp-homekit-devices.
It's strange. Maybe your FTDI has not enough power for Sonoff TH. If you have connected sensor, please, disconnect it.
from esp-homekit-devices.
Success with your precompiled firmware using this:
/home/ageorgios/esptool/esptool.py -p /dev/ttyUSB0 --baud 115200 write_flash -fs 8m -fm dout -ff 40m 0x0 /home/ageorgios/Desktop/Sonoff_TH_v0.1.0.bin
I will continue testing.
Thanks for your work.
from esp-homekit-devices.
Can you setup your wifi now?
from esp-homekit-devices.
Yes
I am adding the accessory in Home app
What is the HomeKit password (8 digit)?
021-82-017 I guess?
no.. wrong it says
from esp-homekit-devices.
I'm writing the Wiki just now :)
https://github.com/RavenSystem/esp-homekit-devices/wiki/General-user-manual
from esp-homekit-devices.
Cannot pair it with this number :(
from esp-homekit-devices.
Sometime pairing fails, in that case, you can unpower your device, repower it, and start HomeKit setup again (Wifi config keeps configured).
from esp-homekit-devices.
Success after repowering the sonoff!
Thanx for the great work! Keep it up! I will test it and report my experiences!
from esp-homekit-devices.
Sonoff TH16 is recognized as Sonoff Thermostat
Would be great to have option to configure it on demand (like just a switch)
from esp-homekit-devices.
Related Issues (20)
- Device lost installing haa trough tasmota
- Can't enter setup mode
- Support for Ratgdo device
- MEPLHAA Script issue HOT 1
- Problem to open/close partially window (NEW behavior)
- Remove WI-Fi Settings should re-enable AP mode HOT 1
- relay active low clicking on restart/boot HOT 1
- QS-WiFi-D01-TRIAC dimmer no reaction on button + glows being OFF
- Sonoff SwitchMan M5-2C crashes HOT 1
- Reset State / Manual set State
- WiFi version drops after updates HOT 1
- HAA installer never completes / HAABOOT download infinite loop HOT 3
- Botton does not work (after update) HOT 1
- Shelly Plus 1PM don't boot in Wifi AP Mode
- Shelly Plus 1PM firmware issue HOT 1
- Relay/button for tuya switch not properly working HOT 2
- Switch doesn’t boot up if led invert option is enabled
- i2c not working properly (iAQ-Core, ESP32) HOT 1
- Button 1 doesn’t start any action on boot (until button 2 is toggled) HOT 3
- Sonoff SV isolated mode type garage door begin unresponsive HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-homekit-devices.