Smart Home Automation Forum
AM2301 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A8 (https://www.kincony.com/forum/forumdisplay.php?fid=23)
+--- Thread: AM2301 (/showthread.php?tid=4998)



AM2301 - Vaughan2024 - 03-06-2024

Hi I wanted to add the AM2301 temperature and humidity sensor.

Is there an example of the code to add this type of sensor?


RE: AM2301 - admin - 03-06-2024

use by home assistant?


RE: AM2301 - Vaughan2024 - 03-06-2024

Sorry should of said.  Yes EspHome on home assistant. 

Thanks


RE: AM2301 - admin - 03-06-2024

you can see here: https://esphome.io/components/sensor/dht.html
just use DHT sensor code.


RE: AM2301 - Vaughan2024 - 03-06-2024

Great got it working, Thanks
I had to work out what pin to connect it to found that the S1- S4 
GPIO14 1-Wire GPIO
GPIO13 1-Wire GPIO
GPIO32 1-Wire GPIO
GPIO33 1-Wire GPIO


RE: AM2301 - admin - 03-06-2024

ok, good.