Hi, I’m brand new in ESPHome world with H.A.
Since a year I had a ESP8266 with Dallas temperature sensor and it show in my H.A. page with gauge.
I changed my internet provider and since, my esp disconnect and show offline. But it in router with is fixed ip address.
I tried :
- Fixed my esp IP
- Fixed my esp IP in the code
- Change the code
- Just show the 2.4 ghz radio with the same SSID
- Cry
- Deleted my device
- Adopt new device
- used chat GPT
- Readed some forum
This is my Code :
substitutions:
name: esphome-web-d55b00
friendly_name: Thermometre-piscine
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
esp8266:
board: esp01_1m
# Enable logging
logger:
# 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: {}
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:
# To have a "next url" for improv serial
web_server:
# Configuration for the Dallas temperature sensor
dallas:
- pin: GPIO4
# Sensor configuration
sensor:
- platform: dallas
address: 0x5D01204FBBF75228
name: "Piscine Temperature"
unit_of_measurement: "°F"
accuracy_decimals: 1
filters:
- lambda: return x * 1.8 + 32.0; # Convert Celsius to Fahrenheit
icon: "mdi:thermometer"
- platform: template
name: ${Piscine Temperature}
id: temperature_f
dashboard_import:
package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main
import_full_config: true
Thank you!