![]() |
|
Connect DS18b20 temperature sensor to KC868-AIO - 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-AIO (https://www.kincony.com/forum/forumdisplay.php?fid=46) +--- Thread: Connect DS18b20 temperature sensor to KC868-AIO (/showthread.php?tid=7072) |
Connect DS18b20 temperature sensor to KC868-AIO - slava - 11-16-2024 I am trying to connect DS18b20 temperature sensor to KC868-AIO and get sensor ID from ESPHome logs My configuration: one_wire: - pin: GPIO01 platform: gpio This is what I am getting: [10:58:55][C][gpio.one_wire:020]: GPIO 1-wire bus: [10:58:55][C][gpio.one_wire:021]: Pin: GPIO1 [10:58:55][W][gpio.one_wire:078]: Found no devices! RE: Connect DS18b20 temperature sensor to KC868-AIO - admin - 11-17-2024 you can see esp32 pin define for KC868-AIO: https://www.kincony.com/forum/showthread.php?tid=2735 the 1-wire sensor gpio are: DS18B20/DHT11/DHT21/LED strip -(TP1): GPIO14 DS18B20/DHT11/DHT21/LED strip -(TP2): GPIO5 so you use gpio14 or gpio5, NOT "gpio1" RE: Connect DS18b20 temperature sensor to KC868-AIO - slava - 11-17-2024 Thanks. It works now with GPIO14. RE: Connect DS18b20 temperature sensor to KC868-AIO - xarouli5 - 12-09-2024 I did the same for DHT11 but not showing anything. I connected to same pins with DSS18b20 (only the DHT without the DS). This is what I used: (Anything wrong?) # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 i2c: - id: bus_a sda: 4 scl: 16 scan: true one_wire: - pin: GPIO014 platform: gpio # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-16 i2c_id: bus_a address: 0x24 pcf8575: true RE: Connect DS18b20 temperature sensor to KC868-AIO - admin - 12-09-2024 now you just defined one_wire code in yaml. you have not added DHT11 code. Code: # Example configuration entryRE: Connect DS18b20 temperature sensor to KC868-AIO - xarouli5 - 01-29-2025 My code now is like this and is FINALLY working: Code: one_wire:RE: Connect DS18b20 temperature sensor to KC868-AIO - admin - 01-31-2025 ok, good. RE: Connect DS18b20 temperature sensor to KC868-AIO - xarouli5 - 01-31-2025 So how difficult was for you to just give THESE lines of yaml for the DS18b20 in the first place?? Maybe yaml is easy for you but new users like me struggle to understand what is happening. That means either to drop out your product due to "support issues" and find other product, or struggle for a long time with trial and error. RE: Connect DS18b20 temperature sensor to KC868-AIO - admin - 01-31-2025 sorry, we can't take all sample demo code. such as you are usuing DS18B20, someone use DHT11, someone use SHT30. The methods of learning and problem-solving are the most important. RE: Connect DS18b20 temperature sensor to KC868-AIO - xarouli5 - 01-31-2025 As you can see, this thread is for DS18B20 on AIO. Pretty specific I would say. |