Menü umschalten
Persönliches Menü umschalten
Nicht angemeldet
Your IP address will be publicly visible if you make any edits.

BW-SHP5

Aus Hennings Wiki
flashen:


Zum einmaligen flashen GND und IO0 verbinden

ESPhome config:
substitutions:
  plug_name: bw_shp5

esphome:
  name: ${plug_name}
  platform: ESP8266
  board: esp8285

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

logger:

web_server:
  port: 80

api:
  password: !secret api_password

ota:
  password: !secret ota_password

time:
  - platform: homeassistant
    id: homeassistant_time

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO16
      inverted: True
    name: "${plug_name}_button"
    on_press:
      - switch.toggle: relay

switch:
- platform: gpio
  name: "${plug_name}_Relay"
  id: relay
  pin: GPIO14
  restore_mode: ALWAYS_ON
- platform: gpio
  name: "${plug_name}_USB"
  id: relay_usb
  pin: GPIO5
  restore_mode: ALWAYS_ON
- platform: gpio
  name: "${plug_name}_LED_Blue"
  pin: GPIO2
  inverted: True
  restore_mode: ALWAYS_OFF
- platform: gpio
  name: "${plug_name}_LED_Red"
  pin: GPIO0
  inverted: True
  restore_mode: ALWAYS_OFF

sensor:
  - platform: uptime
    name: ${plug_name}_Uptime Sensor