User Tools

Site Tools


basiccode

For ESP8266 Nodemcu

esphome:
  name: iotxxx
  friendly_name: IoTXXX

esp8266:
  board: esp01_1m  // even for ESP8266 due to memory usage //

logger:            
  level: NONE      // remove this line to send log to HA; just leave logger blank //  
  
api:
  encryption:
    key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  // provided by HA
  reboot_timeout: 0s                                     // remove this so it will auto reboot if not connected

ota:
  - platform: esphome
    password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  // auto generated by HA

wifi:
  ssid: xxxxxx
  password: xxxxxx
  min_auth_mode: WPA2
  manual_ip:
    static_ip: 192.168.x.xxx
    gateway: 192.168.x.x
    subnet: 255.255.255.0
    dns1: x.x.x.x
    dns2: x.x.x.x
  ap:
    ssid: "IotXXXHotspot"
    password: "xxxxxx"

mqtt:
  broker: 192.168.x.x            // specify mqtt server
  discovery: false               // remove to send mqtt back to home assistant

captive_portal:

web_server:
  port: 80 
  version: 3

time:
  - platform: sntp
    id: ntp_time
    servers:
      - "ntp.pagasa.dost.gov.ph"
      - "pool.ntp.org"
    timezone: "PHT-8"
    update_interval: 7d
basiccode.txt · Last modified: by jwan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki