Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff TH16 #18

Open
bachoo786 opened this issue Feb 6, 2018 · 10 comments
Open

Sonoff TH16 #18

bachoo786 opened this issue Feb 6, 2018 · 10 comments

Comments

@bachoo786
Copy link

Hi

Is your code compatible with Sonoff TH16? I have uploaded the correct code of yours but I am not registering any temperature and humidity. I have also installed DHT.h library to no joy.

Is there something I need to enable? am I missing anything?

Thanks.

@AnchorIT
Copy link

AnchorIT commented Feb 7, 2018 via email

@bachoo786
Copy link
Author

Hi for the temperature sensor is it mc or school arduino file? I used sc as it contains the dht22 library and talks about temperature?

Thanks

@bachoo786
Copy link
Author

I meant mc.h or sc.h?

@AnchorIT
Copy link

AnchorIT commented Feb 7, 2018

config_sc.h
change #define NONE to #define TEMP
#define DHTTYPE DHT22

@bachoo786
Copy link
Author

right so I done the changes above and have subscribed to the topic as well but yet I cannot receive any temperature values. I can turn the switch on and off.

@bachoo786
Copy link
Author

Quick question : does the temperature sensor only work when the sonoff is connected to the mains? Because I am m testing it out from a USB 3v supply

@mjoshd
Copy link
Contributor

mjoshd commented Feb 9, 2018

Yes. Try connecting it to the mains (after disconnecting from your programming cable of course). I had a similar issue, tried almost everything and thought I was losing my mind, but connecting to mains power solved it and the readings come through just fine now.

@bachoo786
Copy link
Author

@mjoshd thanks for the reply.

quick question does this Kman’s code work with DS18B20? because i am not getting any readings with DS18B20 but getting readings with AM2301.

@mjoshd
Copy link
Contributor

mjoshd commented Feb 12, 2018 via email

@bachoo786
Copy link
Author

bachoo786 commented Feb 12, 2018

yeah but sonoff do 2 types of temp sensors i.e. AM2301 and DS18B20 I think AM2301 is DHT22 because it works fine but DS18B20 is something else ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants