Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson14 - integrate DS18B20 temperature sensor to home assistant
#1

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"


   
Reply
#2
Please make a guide for homekit and how to use multiple temp sensors.
Reply
#3
when have free time, can make it.
Reply
#4
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


Attached Files Image(s)
   
Thanks & Regards,
Arshad Abbas
Smile
Reply
#5
which board you are using?
Reply
#6
(01-27-2024, 06:47 AM)admin Wrote: which board you are using?

KC868-Server
Thanks & Regards,
Arshad Abbas
Smile
Reply
#7
delete your device in ESPHome, re add it , maybe will solve it.
Reply
#8
(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
Thanks & Regards,
Arshad Abbas
Smile
Reply
#9
ok, good.
Reply
#10
(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 ?
Thanks & Regards,
Arshad Abbas
Smile
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)