I have a problem with ESP32C3 SUPER MINI and the DALLAS component:
The log does not display the address of the detected DS18B20 units (as all my other ESP32S2, ESP32 DEV KIT etc. do perfectly…).
.
If I set the sensor setting to index instead of address, it displays the temperature of the connected DS18B20 (so the sensor works).
This is fine for 1 DS18B20, but with 2 or more temp sensors, its necessary to get (and set) the hardware address of the sensor.
In the output below, I have set the known hardware address, but whether i use the address or the index, i get a temperature reading but no log lines showing the address(es) of detected dallas units…
substitutions:
name: esphome-web-048f14
friendly_name: ESP32C3STRAPTEST
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# level: VERBOSE
# logs:
# component: ERROR
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
# Allow provisioning Wi-Fi via serial
improv_serial:
wifi:
# Set up a wifi access point
ap: {}
ssid: !secret wifi_ssid
password: !secret wifi_password
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:
dashboard_import:
package_import_url: github://esphome/firmware/esphome-web/esp32c3.yaml@v2
import_full_config: true
# Sets up Bluetooth LE (Only on ESP32) to allow the user
# to provision wifi credentials to the device.
esp32_improv:
authorizer: none
# To have a "next url" for improv serial
web_server:
# Temp Sensor = GPIO 6
dallas:
pin: GPIO10
update_interval: 10s
sensor:
- platform: dallas
address: 0xac3c01d075185128
# index: 0
name: temp1
output.
[11:43:16][I][app:100]: ESPHome version 2024.4.2 compiled on May 10 2024, 11:26:18
[11:43:16][I][app:102]: Project esphome.web version 1.0
[11:43:16][C][wifi:580]: WiFi:
[11:43:16][C][wifi:408]: Local MAC: 48:31:B7:04:9E:74
[11:43:16][C][wifi:413]: SSID: [redacted]
[11:43:16][C][wifi:416]: IP Address: 192.168.0.120
[11:43:16][C][wifi:420]: BSSID: [redacted]
[11:43:16][C][wifi:421]: Hostname: 'esphome-web-048f14'
[11:43:16][C][wifi:423]: Signal strength: -55 dB ▂▄▆█
[11:43:16][C][wifi:427]: Channel: 6
[11:43:16][C][wifi:428]: Subnet: 255.255.255.0
[11:43:16][C][wifi:429]: Gateway: 192.168.0.1
[11:43:16][C][wifi:430]: DNS1: 192.168.0.1
[11:43:16][C][wifi:431]: DNS2: 192.168.0.1
[11:43:16][C][logger:166]: Logger:
[11:43:16][C][logger:167]: Level: DEBUG
[11:43:16][C][web_server:169]: Web Server:
[11:43:16][C][web_server:170]: Address: esphome-web-048f14.local:80
[11:43:16][C][mdns:115]: mDNS:
[11:43:16][C][mdns:116]: Hostname: esphome-web-048f14
[11:43:16][C][ota:096]: Over-The-Air Updates:
[11:43:16][C][ota:097]: Address: esphome-web-048f14.local:3232
[11:43:16][C][ota:103]: OTA version: 2.
[11:43:16][C][api:139]: API Server:
[11:43:16][C][api:140]: Address: esphome-web-048f14.local:6053
[11:43:16][C][api:144]: Using noise encryption: NO
[11:43:16][C][improv_serial:032]: Improv Serial:
[11:43:18][D][dallas.sensor:153]: 'temp1': Got Temperature=23.9°C
[11:43:18][D][sensor:094]: 'temp1': Sending state 23.87500 °C with 1 decimals of accuracy
[11:43:28][D][dallas.sensor:153]: 'temp1': Got Temperature=23.9°C
[11:43:28][D][sensor:094]: 'temp1': Sending state 23.87500 °C with 1 decimals of accuracy