ESPHome configuration for Arlec Grid Connect Smart Plug-in Socket

by

in

Ben asked if I could share my ESPHome configuration for the Arlec device. Here it is:

esphome:
  name: master_bedroom_heater
  platform: ESP8266
  board: esp01_1m
#  esp8266_restore_from_flash: True
wifi:
  networks:
    - ssid: !secret work_ssid
      password: !secret work_psk
    - ssid: !secret home_ssid
      password: !secret home_psk
# Enable logging
logger:
# Enable Home Assistant API
api:
  password: !secret ha_api_pw
ota:
  password: !secret ota_pw
binary_sensor:
  - platform: gpio
    pin:
      number: GPIO14
      mode: INPUT_PULLUP
      inverted: True
    name: "master br heater Button"
    on_press:
      - switch.toggle: mr_br_heater
  - platform: status
    name: "master bedroom heater status"
switch:
  - platform: gpio
    name: "Master Bedroom Heater"
    pin:
      number: GPIO12
    id: mr_br_heater
    restore_mode: RESTORE_DEFAULT_OFF
    on_turn_on:
      light.turn_on:
        id: mr_br_led1
    on_turn_off:
      light.turn_off:
        id: mr_br_led1
light:
  - platform: binary
    name: "led1"
    output: led1
    id: mr_br_led1
  - platform: binary
    name: "led2"
    output: led2
output:
  - platform: gpio
    pin:
      number: GPIO04
    id: led2
    inverted: True
  - platform: gpio
    pin:
      number: GPIO13
    id: led1
    inverted: True

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *