Input request: AM2301 sensor has been replaced with SI7021 in Sonoff TH16/10

Hi,

I have been using Mycodo for a couple of years now and it has worked very well, I love it. Recently my AM2301 sensor died so I bought a replacement. Even though it is labelled as AM2301 the sensor inside is SI7021.

Upon further research it appears Sonoff at some point switched to using this SI7021 instead of AM2301 for temp/humidity . I bought 2 more sensors labelled as AM2301 but they both also have SI7021 inside so it does not work with Mycodo.

Is it possible to request that this sensor be added as an input?

Many thanks,

1 Like

A recent circuitpython library exists (adafruit-circuitpython-si7021 · PyPI) so it shouldn’t be too difficult to modify another temp/hum circuitpython library to use this library.

1 Like

Hi Kyle,

Thank you. I took a look at the link. Is this something that I would need to do myself? I am a much better grower than I am a coder lol.

The instructions at the link you posted seems like something I could follow but what would be needed after that to be able to use it within Mycodo for my conditional functions. How does it get added as an input?

Sorry if these questions are rudimentary but I am a novice.

Cheers