arendst / Sonoff-MQTT-OTA-Arduino

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE - Now EOL
618 stars 197 forks source link

Sonoff SC: Support for Itead Sonoff SC #155

Closed ThomDietrich closed 7 years ago

ThomDietrich commented 7 years ago

Hey Theo, back with yet another new product.

Are you personally interested in extending your firmware for it?

arendst commented 7 years ago

No not at the moment but that may change...

ThomDietrich commented 7 years ago

I'd actually be willing to motivate this issue by sponsoring one device for you (or one half). Is this something you are interested in or would you rather not receive donations for this open source project?

Bountysource

Best! Thomas

jaysuk commented 7 years ago

I just want to make sure you know this isn't a typical sonoff product. It doesn't run the sensors off an ESP. It has an atmega328 chip connected to the sensors which then feeds the data to an ESP to transmit the data to the internet. The code for the atmega328 is available on iteads wiki but there is no code for the ESP. It the ESP would have to be programmed to collect the data a d transmit it that way, assuming it's useable data. The temperature sensor is a rubbish DHT11

ThomDietrich commented 7 years ago

I've looked at the data sheet and the schematic. I don't think it will be remarkably hard to adopt arendst firmware for that. Of course we can only be sure after it was tested. The DHT11 is sure not the best sensor but I wouldn't define it as useless or rubbish...

arendst commented 7 years ago

I've read somewhere that they are already planning to replace the DHT11 by a DHT22. Still no high-tech but at least better than before.

I might receive a unit so hold on with your funding...

ThomDietrich commented 7 years ago

The only thing making me sad is, that the unit doesn't have a CO2 sensor. I'd expect the "environment monitor" in my bedroom to be equipped with one :-/ But it's no wonder, $19.90 is not enough to even buy one of these on the street.

derlucas commented 7 years ago

i ordered two of that Sonoff SC units and can supply hires photos of this.

farconada commented 7 years ago

I'm very interested in it too It will be great to installarends Sonoff firmware

derlucas commented 7 years ago

I started a firmware for Sonoff SC based on Homie-ESP8266. Maybe you can start from there: https://github.com/derlucas/homie-sonoff/tree/master/sonoff-homie-sc

I changed the original ATMega328p firmware to tell the sensor values on a regular base. The ESP runs Homie Firmware and sends the Data from Serial over to MQTT.

farconada commented 7 years ago

IMHO the esp8266 firmware should respect the original interface with the arduino firmware provided by itead, so you could have separate developments

farconada commented 7 years ago

I've placed my bounty to buy a Sonoff SC to @arendst

xoseperez commented 7 years ago

I have also been working on the Sonoff SC, with a firmware based on my ESPurna firmware for Sonoff devices and alike.

I have added DHT22 support, MQTT and Domoticz integration. Also I'm using the mic to monitor claps and send custom MQTT messages so you can clap your lights on/off.

An explanation of the whole process is here: http://tinkerman.cat/sonoff-sc-with-mqtt-and-domoticz-support/

JoeWiseman commented 7 years ago

I know it might not be the right place to ask, but is there any way to use a brighness sensor along with the existing Sonoff-devices (e.g. Sonoff TH) in combination with the firmware given here? I've red that the "brightness sensor" just give the a "dusky, normal and bright", so it would be better to get a numerical value in e.g. lux. Would be great if anyone did some experience with that and is willing to share it. Regards Joe

ThomDietrich commented 7 years ago

First support via: https://github.com/arendst/Sonoff-Tasmota/commit/79b63858b9c67f8bd33b8b5ce417702a294f6bc8, see https://github.com/arendst/Sonoff-Tasmota/issues/112