Skip to content

Commit

Permalink
support mcu reset in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mightymos committed Nov 28, 2024
1 parent 5d17719 commit 277048e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions example_esphome_yaml/sonoff_rcswitch_portisch_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ logger:

ota:
- platform: esphome
password: "**************"
password: !secret ota_password

wifi:
ssid: !secret wifi_ssid
Expand All @@ -20,7 +20,7 @@ wifi:
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sonoff-Rf-Bridge"
password: "CWaaf568KJlb"
password: !secret api_password

captive_portal:

Expand All @@ -33,7 +33,7 @@ uart:
# Enable Home Assistant API
api:
encryption:
key: "**********************"
key: !secret api_key

services:
#Code can be sent as int or as a hex. I've chosen integer. Most people use hex.
Expand Down Expand Up @@ -126,7 +126,14 @@ button:
- rf_bridge.beep:
duration: 100



- platform: template
name: "restart radio"
id: mcu_reset
on_press:
then:
- rf_bridge.send_raw:
raw: 'AAFE55'

# Sensors for ESP version and WIFI information
text_sensor:
Expand Down

0 comments on commit 277048e

Please sign in to comment.