Smart Home Automation Forum
Lesson14 - integrate DS18B20 temperature sensor to home assistant - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Home automation training courses (https://www.kincony.com/forum/forumdisplay.php?fid=18)
+--- Thread: Lesson14 - integrate DS18B20 temperature sensor to home assistant (/showthread.php?tid=1826)

Pages: 1 2


Lesson14 - integrate DS18B20 temperature sensor to home assistant - admin - 04-12-2022


DS18B20 temperature range: -55°C to +125°C and is accurate to ±0.5°C

ESPHome config:

# Example configuration entry
dallas:
  - pin: 4
    update_interval: 5s

# Individual sensors
sensor:
  - platform: dallas
    address: 0x69062162d9ec4328
    name: "Temperature"


   


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - Laxhult - 08-28-2022

Please make a guide for homekit and how to use multiple temp sensors.


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - admin - 08-29-2022

when have free time, can make it.


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - ARSHAD - 01-27-2024

Hi , I want to connect DHT22 sensor but getting some error 

code i am using 

sensor:
  - platform: dht
    pin: 3
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

error message i am getting 

[18:12:11][D][api:102]: Accepted 192.168.1.13
[18:12:11][W][api.connection:083]: 192.168.1.13: Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11
[18:12:45][W][dht:169]: Requesting data from DHT failed!
[18:12:45][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[18:12:45][D][sensor:094]: ‘Living Room Temperature’: Sending state nan °C with 1 decimals of accuracy
[18:12:45][D][sensor:094]: ‘Living Room Humidity’: Sending state nan % with 0 decimals of accuracy

wired connection


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - admin - 01-27-2024

which board you are using?


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - ARSHAD - 01-27-2024

(01-27-2024, 06:47 AM)admin Wrote: which board you are using?

KC868-Server


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - admin - 01-27-2024

delete your device in ESPHome, re add it , maybe will solve it.


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - ARSHAD - 01-27-2024

(01-27-2024, 12:11 PM)admin Wrote: delete your device in ESPHome, re add it , maybe will solve it.

it working now

1. Add the device with code in ESPHome
2. After Install - it will show online status in ESPhome
3. Setting  >> Device&Service >> AddIntergration >> select ESPHome > and in hostname give ip add of sensor (in log file get the ip add - step 1)
4. Final - add encryption key (in step 2 open the device , copy the key) --- paste it and submit


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - admin - 01-27-2024

ok, good.


RE: Lesson14 - integrate DS18B20 temperature sensor to home assistant - ARSHAD - 01-29-2024

(01-27-2024, 11:39 PM)admin Wrote: ok, good.

on KC868-E16s - Board -- which pin we can use for the Temperature sensor or other sensors ?