Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
N60 ESP Home Dallas sensor
#5
(11-22-2025, 12:46 PM)admin Wrote: free GPIO (without pull up resistance):
GPIO15
GPIO16

these two free gpios can use for DS18B20 for N60

I´ve used pin 15 with no luck. The actual question was, in what spot in the code I should put the sensor setup?
I just tried again like this (part of the code):

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 15

i2c:
  sda: 18
  scl: 17

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 15, id(roboto), "IP: %s", id(eth_ip).state.c_str());

modbus:

modbus_controller:
  - address: 1
    update_interval: 5s

one_wire:
  - platform: gpio
    pin: GPIO15     

sensor:

  - platform: dallas_temp
    name: spk_lampotila
    update_interval: 10s

  - platform: modbus_controller
    address: 100
    register_type: holding
    name: bl0910_1_current_1
    id: n60_1_current_1
    unit_of_measurement: A
    device_class: current
    accuracy_decimals: 3
    value_type: U_DWORD_R
    filters:
      - multiply: 0.001


And I get an error:

collect2: error: ld returned 1 exit status
*** [.pioenvs/spk-mittaukset/firmware.elf] Error 1
========================= [FAILED] Took 46.92 seconds =========================

What could cause this and again, where in what palce in the code should I put that sensor in?
Reply


Messages In This Thread
N60 ESP Home Dallas sensor - by tapsakoo - 11-21-2025, 03:01 PM
RE: N60 ESP Home Dallas sensor - by admin - 11-22-2025, 12:24 AM
RE: N60 ESP Home Dallas sensor - by tapsakoo - 11-22-2025, 11:58 AM
RE: N60 ESP Home Dallas sensor - by admin - 11-22-2025, 12:46 PM
RE: N60 ESP Home Dallas sensor - by tapsakoo - 11-23-2025, 10:08 AM
RE: N60 ESP Home Dallas sensor - by admin - 11-23-2025, 10:52 PM
RE: N60 ESP Home Dallas sensor - by tapsakoo - 11-25-2025, 05:25 PM
RE: N60 ESP Home Dallas sensor - by admin - 11-25-2025, 11:25 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)