Hi you all, I’m newbe in this world. I’ve tried to create a simple project to automate temperature in my aquarium.
I have DALLAS probe and ESP8266MOD device with this very simple project code:
esphome:
name: esp8266mod
esp8266:
board: nodemcuv2
logger:
# Enable Home Assistant API
api:
encryption:
key: "..."
ota:
password: "..."
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
#Temperature Probe
dallas:
- pin: D5
update_interval: 10s
# Individual sensors
sensor:
- platform: dallas
address: 0x920312979463c228
id: acquario
I have installed HA in a virtual machine for test purpose but my device does not include any “acquario” entity:
In the log of my esp device I can see the temperature correctly shown:
[20:02:24][C][dallas.sensor:032]: Setting up DallasComponent...
[20:02:24][C][wifi:037]: Setting up WiFi...
[20:02:24][C][wifi:038]: Local MAC: B4:E6:2D:45:58:D2
[20:02:24][D][wifi:386]: Starting scan...
[20:02:24][D][dallas.sensor:143]: 'acquario': Got Temperature=14.2°C
[20:02:24][D][sensor:126]: 'acquario': Sending state 14.18750 °C with 1 decimals of accuracy
[20:02:30][D][wifi:401]: Found networks:
[20:02:30][I][wifi:444]: - 'MATPOINT' [redacted]▂▄▆█
[20:02:30][D][wifi:446]: Channel: 11
[20:02:30][D][wifi:447]: RSSI: -28 dB
...
[20:02:30][I][wifi:257]: WiFi Connecting to 'MATPOINT'...
[20:02:31][I][wifi:518]: WiFi Connected!
[20:02:31][C][wifi:362]: Local MAC: B4:E6:2D:45:58:D2
[20:02:31][C][wifi:363]: SSID: [redacted]
[20:02:31][C][wifi:364]: IP Address: 192.168.1.116
[20:02:31][C][wifi:365]: BSSID: [redacted]
[20:02:31][C][wifi:367]: Hostname: 'esp8266mod'
[20:02:31][C][wifi:369]: Signal strength: -33 dB ▂▄▆█
[20:02:31][C][wifi:373]: Channel: 11
[20:02:31][C][wifi:374]: Subnet: 255.255.255.0
[20:02:31][C][wifi:375]: Gateway: 192.168.1.1
[20:02:31][C][wifi:376]: DNS1: 192.168.1.8
[20:02:31][C][wifi:377]: DNS2: 0.0.0.0
[20:02:31][D][wifi:527]: Disabling AP...
[20:02:31][C][ota:093]: Over-The-Air Updates:
[20:02:31][C][ota:094]: Address: esp8266mod.local:8266
[20:02:31][C][ota:097]: Using Password.
[20:02:31][C][api:025]: Setting up Home Assistant API server...
[20:02:31][I][app:062]: setup() finished successfully!
[20:02:31][I][app:102]: ESPHome version 2022.12.8 compiled on Feb 10 2023, 19:37:42
[20:02:31][C][wifi:504]: WiFi:
[20:02:31][C][wifi:362]: Local MAC: B4:E6:2D:45:58:D2
[20:02:31][C][wifi:363]: SSID: [redacted]
[20:02:31][C][wifi:364]: IP Address: 192.168.1.116
[20:02:31][C][wifi:365]: BSSID: [redacted]
[20:02:31][C][wifi:367]: Hostname: 'esp8266mod'
[20:02:31][C][wifi:369]: Signal strength: -33 dB ▂▄▆█
[20:02:31][C][wifi:373]: Channel: 11
[20:02:31][C][wifi:374]: Subnet: 255.255.255.0
[20:02:31][C][wifi:375]: Gateway: 192.168.1.1
[20:02:31][C][wifi:376]: DNS1: 192.168.1.8
[20:02:31][C][wifi:377]: DNS2: 0.0.0.0
[20:02:31][C][logger:293]: Logger:
[20:02:31][C][logger:294]: Level: DEBUG
[20:02:31][C][logger:295]: Log Baud Rate: 115200
[20:02:31][C][logger:296]: Hardware UART: UART0
[20:02:31][C][dallas.sensor:075]: DallasComponent:
[20:02:31][C][dallas.sensor:076]: Pin: GPIO14
[20:02:31][C][dallas.sensor:077]: Update Interval: 10.0s
[20:02:31][D][dallas.sensor:082]: Found sensors:
[20:02:31][D][dallas.sensor:084]: 0x920312979463c228
[20:02:31][C][dallas.sensor:089]: Device 'acquario'
[20:02:31][C][dallas.sensor:089]: Device Class: 'temperature'
[20:02:31][C][dallas.sensor:089]: State Class: 'measurement'
[20:02:31][C][dallas.sensor:089]: Unit of Measurement: '°C'
[20:02:31][C][dallas.sensor:089]: Accuracy Decimals: 1
[20:02:31][C][dallas.sensor:097]: Address: 0x920312979463c228
[20:02:31][C][dallas.sensor:098]: Resolution: 12
[20:02:31][C][captive_portal:088]: Captive Portal:
[20:02:31][C][mdns:103]: mDNS:
[20:02:31][C][mdns:104]: Hostname: esp8266mod
[20:02:31][C][ota:093]: Over-The-Air Updates:
[20:02:31][C][ota:094]: Address: esp8266mod.local:8266
[20:02:31][C][ota:097]: Using Password.
[20:02:31][C][api:138]: API Server:
[20:02:31][C][api:139]: Address: esp8266mod.local:6053
[20:02:31][C][api:141]: Using noise encryption: YES
[20:02:32][D][api:102]: Accepted 192.168.1.52
[20:02:33][D][api.connection:918]: Home Assistant 2023.2.3 (192.168.1.52): Connected successfully
[20:02:34][D][dallas.sensor:143]: 'acquario': Got Temperature=14.2°C
[20:02:34][D][sensor:126]: 'acquario': Sending state 14.25000 °C with 1 decimals of accuracy
[20:02:44][D][dallas.sensor:143]: 'acquario': Got Temperature=14.2°C
[20:02:44][D][sensor:126]: 'acquario': Sending state 14.25000 °C with 1 decimals of accuracy
[20:02:54][D][dallas.sensor:143]: 'acquario': Got Temperature=14.2°C
[20:02:54][D][sensor:126]: 'acquario': Sending state 14.25000 °C with 1 decimals of accuracy
what am I doing wrong?
Thank you all.
M@t