Untitled

 avatar
unknown
plain_text
4 years ago
920 B
4
Indexable
esphome:
  name: 16gpio
  platform: ESP32
  board: nodemcu-32s

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: ""

wifi:
  ssid: ""
  password: ""
  manual_ip:
  # Set this to the IP of the ESP
    static_ip: 10.10.1.35
  # Set this to the IP address of the router. Often ends with .1
    gateway: 10.10.1.1
  # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0  

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "16Gpio Fallback Hotspot"
    password: "sS34a0SPD6Nr"

captive_portal:
 
i2c:
  sda: GPIO21
  scl: GPIO22
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub'
    address: 0x21
    pcf8575: true
    
switch:
  - platform: gpio
    name: "PCF8574 Pin #0"
    pin:
      pcf8574: pcf8574_hub
      # Use pin number 0
      number: 2
      # One of INPUT or OUTPUT
      mode: OUTPUT
 
Editor is loading...