Open hemantkamalakar opened 5 years ago
Why pin 10?
The DHT 11 is shown as connectiong to pin 10 on an MCU, but if you look carefully it is a ATMega328P. There two MCU's in this device, the ESP8266 and the ATMega328P. The sensors are connected to the latter. It is therefore a bit different to just flashing to the esp8266. There is a good analysis here http://tinkerman.cat/sonoff-sc-with-mqtt-and-domoticz-support/
PS your link to the SC Schematic is wrong. Hopefully this will work https://www.itead.cc/wiki/images/f/f7/Sonoff-SC-Schematic.pdf
So, i see that SC is not fully supported yet ? It's sad. I migrated to ESPHome from Tasmota only because i thought that SC is fully supported.
Would love to see this happening too! I just ain't got the skills...
Sonoff SC have two boards inside. ESP and Atmel. ESP responsible only for outside communication. All sensors connected to Atmel board. Two boards communicating via serial. If you can implement communication protocol inside ESP you'll able to publish data anywhere.
Describe the problem you have/What new integration you would like I managed to migrate my Sonoff basic devices from Tasmota to esphome. But facing issues with Sonoff sc. Initially I flashed sonoff sc using OTA. But can't figure out how to define the sensors available in Sonoff SC in esphome yaml file. I'd really love to have a cookbook for Sonoff SC.
Please describe your use case for this integration and alternatives you've tried: I have tried following sensor definition in my esphome yaml file for DHT11 sensor. `sensor:
This is what i found in the logs.
14:01:26][W][sensor.dht:140]: Requesting data from DHT failed! [14:01:26][W][sensor.dht:076]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
Additional context Sonoff SC is a sensor station that packs a DHT11 temperature and humidity sensor, a GM55 LDR, a microphone with an amplifier circuit and a Sharp GP2Y1010AU0F dust sensor. Here is the schematic of sonoff SC. https://www.itead.cc/wiki/images/f/f7/Sonoff-SC-Schematic.pdf.
Datasheet for Sharp GP2Y1010AU0F dust sensor: https://www.sparkfun.com/datasheets/Sensors/gp2y1010au_e.pdf
Datasheet for GM55 LDR: https://www.sunrom.com/get/443700