lrswss / tasmota-am2320-i2c-driver

Driver for Sonoff-Tasmota to support the temperature/humidity sensor AM2320 (I2C)
GNU General Public License v3.0
6 stars 4 forks source link

Driver for Tasmota 8.4 #4

Open agisofttm opened 4 years ago

agisofttm commented 4 years ago

Hi, is there a way for compatibility for Tasmota 8.4?

Thanks in advance Best Regards

OberfragGER commented 3 years ago

Got this working under 8.3.1 but u have to use the file from the pull request https://github.com/lrswss/tasmota-am2320-i2c-driver/blob/3f2971e1e95324ba31cae137a011189510d35cf1/xsns_92_am2320.ino Works together with BH1750!

Under 9.2 it shows up as DHT12 with incorect values (forgot to enable AM2320 Support). Compiling with enabled AM2320 is not working.

OberfragGER commented 3 years ago

I got this working with small code fixing under Tasmota 9.2. 2 variables were not declared in runtime in the driver file. uptime and log_data.

I dont think that i need this parts so i decided to uncomment this.

image

OberfragGER commented 3 years ago

Can be closed. See updated file from avorak. Its working fine even with dew poit! Great and very fast- thx a lot avorak. Please go to avoraks repo! https://github.com/arovak/tasmota-am2320-i2c-driver

image

thc08 commented 3 years ago

Hi, can anybody fix this driver for Tasmota 9.4 ?

Driver compiled and works well with json and (humidity,dewpoint) in web, when "WSContentSend_PD(HTTP_SNS_TEMP,AM2320_types, temperature,TempUnit());" commented out.

Greetz!

OberfragGER commented 3 years ago

Go here: https://github.com/arovak/tasmota-am2320-i2c-driver

Its look like lrswss is not longer active with the AM2320. I tried to compile the driver from avorak 4 days ago- no success. But u can use Tasmota 9.2 with his driver.

thc08 commented 3 years ago

Thanks for Info. I have testet with 9.2. Temperatur in web works. But i think switch the Sensor to 1-wire.

nightphobos commented 3 years ago

https://github.com/nightphobos/tasmota-am2320-i2c-driver - also fixed & rewrited & build for 9.5.0 esp&esp32 platforms