esphome:
name: orvibo_b25
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
inverted: True
name: "B25 Plug button"
on_press:
- switch.toggle: relay
- platform: status
name: "B25 Plug Status"
switch:
- platform: gpio
name: "B25 Plug relay"
pin: GPIO05
id: relay
on_turn_on:
- output.turn_on: activity_led
on_turn_off:
- output.turn_off: activity_led
status_led:
pin:
number: GPIO12
sensor:
- platform: wifi_signal
name: "B25 WiFi signal"
update_interval: 60s
- platform: uptime
name: "B25 Uptime"
output:
- id: activity_led
platform: gpio
pin: GPIO04