Coder Social home page Coder Social logo

WiFi SSID about esp-homekit-devices HOT 19 CLOSED

ravensystem avatar ravensystem commented on May 13, 2024
WiFi SSID

from esp-homekit-devices.

Comments (19)

RavenSystem avatar RavenSystem commented on May 13, 2024 1

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.

RavenSystem avatar RavenSystem commented on May 13, 2024 1

If you want a normal switch, you can flash the Sonoff_Basic firmware.

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 13, 2024

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.

ageorgios avatar ageorgios commented on May 13, 2024

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.

RavenSystem avatar RavenSystem commented on May 13, 2024

SSID is "SonoffTH <end_of_mad_addr>". It's 2.4GHz Wifi.

What is your UART output?

from esp-homekit-devices.

ageorgios avatar ageorgios commented on May 13, 2024
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.

RavenSystem avatar RavenSystem commented on May 13, 2024

Your UART output when you power-on your Sonoff, after flashing.

from esp-homekit-devices.

ageorgios avatar ageorgios commented on May 13, 2024

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.

RavenSystem avatar RavenSystem commented on May 13, 2024

Ok. Don't worry. Follow those steps, assuming that your Sonoff is connected to your FTDI:

  1. Disconnect your FTDI from USB.
  2. Connect it to USB.
  3. 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 avatar ageorgios commented on May 13, 2024
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.

RavenSystem avatar RavenSystem commented on May 13, 2024

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.

ageorgios avatar ageorgios commented on May 13, 2024

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.

RavenSystem avatar RavenSystem commented on May 13, 2024

Can you setup your wifi now?

from esp-homekit-devices.

ageorgios avatar ageorgios commented on May 13, 2024

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.

RavenSystem avatar RavenSystem commented on May 13, 2024

I'm writing the Wiki just now :)

https://github.com/RavenSystem/esp-homekit-devices/wiki/General-user-manual

from esp-homekit-devices.

ageorgios avatar ageorgios commented on May 13, 2024

Cannot pair it with this number :(

from esp-homekit-devices.

RavenSystem avatar RavenSystem commented on May 13, 2024

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.

ageorgios avatar ageorgios commented on May 13, 2024

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.

ageorgios avatar ageorgios commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.