Skip to content

Corvych/esp_mqtt_temp_sensor_ds18b20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MQTT DS18B20 Temperature Sensor Software For ESP8266

Ready-To-Use Bulletproof DS18B20 MQTT Home Assistant-Compatable Software For ESP8266

GPIO Pins

Connect Sensor To GPIO 2 (For NodeMCU/Wemos - D4)

Libraries Used

  • ESP8266WiFi.h
  • OneWire.h
  • DallasTemperature.h (3.8.0)
  • PubSubCLient.h (Nick O'Leary, 2.8.0)

Getting Started

  1. Edit sone defines in config section:
  • wifi_ssid - Your Wi-Fi Network SSID
  • wifi_password - Your Wi-Fi Network Password
  • mqtt_server - IP Address/Domain Name of your MQTT Server
  • mqtt_user - Your MQTT User
  • mqtt_password - Your MQTT Password
  1. (Optional) Edit define "temperature_topic" that you wish
  2. Flash the firmware to your ESP8266 board
  3. Debug errors with built-in serial monitor

Integrating Your Craft to Home Assistant

In this repository you can download a configuration.yaml template. Just copy and paste it in your configuration.yaml and you're ready to go!

About

MQTT DS18B20 Temperature Sensor Software For ESP8266

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages