Skip to content

Commit

Permalink
feat: review esp8266-01 configuration and use as Master Sword switch …
Browse files Browse the repository at this point in the history
…instead of a smat plug
  • Loading branch information
aronnebrivio committed Oct 12, 2024
1 parent 94e19a7 commit 9bfa1cd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion entities/lights.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Master Sword
- platform: switch
name: "Spada Suprema"
entity_id: switch.smart_plug_1
entity_id: switch.esp8266_01_relay
# Piantana Sala
- platform: group
name: "Piantana Sala"
Expand Down
18 changes: 10 additions & 8 deletions esphome/master-sword.yaml → esphome/esp8266-01.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
substitutions:
name: "esp8266-01"

esphome:
name: "master-sword"
friendly_name: "Master Sword"
name: ${name}

esp8266:
board: esp01_1m
Expand All @@ -11,24 +13,24 @@ logger:
# Enable Home Assistant API
api:
encryption:
key: "qxnithwbnZKvfr29axNOVg3j51zlZB0R0jW7jOlGGCg="
key: !secret esp8266-01.api.encryption_key

ota:
- platform: esphome
password: "fbdc6f4c4599fe98ffc506b39ce48e04"
password: !secret esp8266-01.ota.password

wifi:
ssid: !secret wifi.ssid
password: !secret wifi.password

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "master-sword"
password: "bmChb8dr3hdO"
ssid: ${name}
password: !secret esp8266-01.wifi.ap.password

captive_portal:

switch:
- platform: gpio
pin: 14
id: master_sword
pin: GPIO14
name: ${name}-relay
8 changes: 6 additions & 2 deletions secrets.fake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,9 @@ google_assistant.client_email: "[email protected]
google_assistant.client_id: "00000000000000000000"
google_assistant.client_x509_cert_url: "https://www.googleapis.com/0000000000000000"

wifi.ssid: Vodafone-C02190017
wifi.password: 4Xe4YNnkyykF33AZ
wifi.ssid: ssid
wifi.password: password

esp8266-01.api.encryption_key: encryption_key
esp8266-01.ota.password: ota_password
esp8266-01.wifi.ap.password: ap_password

0 comments on commit 9bfa1cd

Please sign in to comment.