Hey there,
i want to flash a Shelly Plug S with esphome. So far so easy. I have found the followoing template and pinout: Esphome Devices - Shelly Plug S and compiled it to this easy sketch:
substitutions:
ip: 10.0.3.33
node_name: schlafzimmer_fernseher
esphome:
build_path: ./build/${node_name}
name: ${node_name}
platform: ESP8266
board: esp8285
arduino_version: 2.4.2
wifi:
ssid: TE-IOT
password: !secret wifi_password
manual_ip:
static_ip: ${ip}
gateway: 10.0.3.1
subnet: 255.255.255.0
api:
password: !secret api_password
logger:
ota:
password: !secret ota_password
status_led:
pin:
number: GPIO2
inverted: True
binary_sensor:
- platform: gpio
id: "Button"
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
internal: true
on_press:
then:
switch.toggle: relay
output:
- platform: gpio
pin: GPIO00
inverted: true
id: led
switch:
- platform: gpio
pin: GPIO15
id: relay
name: "Schlafzimmer Fernseher"
on_turn_on:
- output.turn_on: led
on_turn_off:
- output.turn_off: led
and uploaded it to the Plug S without any problems. After the first reset the esp is stuck in a boot loop and just spits out a stack trace:
[15:19:36]3ffffe80: 4b873397 03b687e7 3c313d92 3516eeee
[15:19:36]3ffffe90: 3fffd848 40002364 00000007 00000000
[15:19:36]3ffffea0: 40001db4 00000078 00000000 00000010
[15:19:36]3ffffeb0: 00000000 3fffff20 3fffff20 3fffff46
[15:19:36]3ffffec0: 40002514 3fffdd3c 00000002 3fffffb0
[15:19:36]3ffffed0: 3fffefc0 00000008 00000008 00000001
[15:19:36]3ffffee0: 00000000 2843a5ac 00000000 3ffffe78
[15:19:36]3ffffef0: 00000008 40002394 0000002c ffffffff
[15:19:36]3fffff00: 3fffff20 3fffff20 00000004 4010f120
[15:19:36]3fffff10: 00000000 400042db 3fffff90 000000df
[15:19:36]3fffff20: 40004b31 00000004 0005605c 00000000
[15:19:36]3fffff30: 4010f19a 00000001 00000000 3ffffec2
[15:19:36]3fffff40: 3ffe8530 00001df8 200305e9 401000b8
[15:19:36]3fffff50: 3fffffb0 00000000 00000009 4010f51d
[15:19:36]3fffff60: de833936 ffffffff 00000000 1c05fafe
[15:19:36]3fffff70: 9eb68100 97d99d18 6fdf36c4 260657f4
[15:19:36]3fffff80: eed83624 c77a4d3b 72298e6c 99a8c426
[15:19:36]3fffff90: 2b8b2401 1c0240a6 7079cd66 a9a2e726
[15:19:36]3fffffa0: de97420b ed4cd72e 96f0202c 56c26f84
[15:19:36]<<<stack<<<
[15:19:36]
[15:19:36]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[15:19:36]
[15:19:36] ets Jan 8 2013,rst cause:2, boot mode:(3,6)
[15:19:36]
[15:19:36]load 0x4010f000, len 3584, room 16
[15:19:36]tail 0
[15:19:36]chksum 0xb0
[15:19:36]csum 0xb0
[15:19:36]v2843a5ac
[15:19:36]~ld
I already have recompiled and reflashed it but it does not change anything.
Does anyone has an idea?