Smart Home Automation Forum
KC868-A16 Ethernet DS18B20 issues - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: KC868-A16 Ethernet DS18B20 issues (/showthread.php?tid=7332)



KC868-A16 Ethernet DS18B20 issues - nielsek - 01-07-2025

Greetings to everybody.
I have quite extensively tested KC868-16 and KC868-6 with tens of DS18B20 temperature sensors.  I'm using ESPHOME.  With KC868-16 I found that if enabling Ethernet (instead of Wifi), after few hours I loose connection with temperature sensors:
Code:
12:26:37][W][dallas.temp.sensor:139]: 'Temperature sensor 115 (1m)' - Scratch pad checksum invalid!
[12:26:37][W][component:157]: Component dallas_temp.sensor set Warning flag: scratch pad checksum invalid
[12:26:37][D][sensor:093]: 'Temperature sensor 115 (1m)': Sending state nan °C with 2 decimals of accuracy
It first starts with few of these messages in logs, but soon (in few hours or even less) it happens to all of them.  Also tested with 5v (from 433mhz port), but still the same.
With wifi there isn't that problem.

While testing I had 6 sensors connected to HT2.  It doesn't matter, if there's less or more sensors, or shared between all three HT ports (HT1-HT3).  The outcome is the same.
Have different good quality power supplies that I have tested. During the testing there were no other devices connected.  Below I use 1 second interval, if using longer time, the issue is still there.
I really need ethernet.  Much appreciated, if you could point me in a direction, what to test next.
outtake from yaml (with one sensor):
Code:
#Workaround for sensors update
interval:
  - interval: 6s
    then:
      - component.update: temp_111 #IO_2
      - delay: 1s
      - component.update: temp_112 #IO_2
      - delay: 1s
      - component.update: temp_113 #IO_2
      - delay: 1s
      - component.update: temp_114 #IO_2
      - delay: 1s
      - component.update: temp_115 #IO_2
      - delay: 1s
      - component.update: temp_117 #IO_2
one_wire:
  - platform: gpio
    pin: GPIO32
    id: IO_1 #HT1
  - platform: gpio
    pin: GPIO33 #HT2
    id: IO_2
  - platform: gpio
    pin: GPIO14 #HT2
    id: IO_3
sensor: 
  - platform: dallas_temp
    address: xxxxxxxxxxxxxxx
    name: Temperature sensor 109 (1m)
    id: temp_109
    one_wire_id: IO_3
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-plus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 2
    update_interval: never
    filters:
#      - filter_out: nan
      - filter_out: 85.0



RE: KC868-A16 Ethernet DS18B20 issues - admin - 01-07-2025

how long cable with your sensor?
take a photo how you wire.


RE: KC868-A16 Ethernet DS18B20 issues - nielsek - 01-07-2025

(01-07-2025, 11:13 AM)admin Wrote: how long cable with your sensor?
take a photo how you wire.

Very short and I do the wiring very carefully, really doubt if that's the issue.  Have had my experience with DS18B20 lousy wiring :-)
Forgot to add, that once the senors are lost, only way to get them back is to cut the power to the device and powering on again.  Rebooting does not help (nor reflashing/updating esphome configuration).
Device+sensors
Wiring example

Thanks for prompt reply!


RE: KC868-A16 Ethernet DS18B20 issues - admin - 01-07-2025

we have tested one gpio with 10pcs of DS18B20, it's OK.
[Image: attachment.php?aid=1392]
maybe you can check with this arduino demo code: https://www.kincony.com/forum/showthread.php?tid=2290
whether the DS18B20 sensor bought from KinCony?