Added SonoffStecker. Yeah that was like a 5 minute work thing and just pushed that out real quick...

This commit is contained in:
Nicolas Bachschwell 2022-05-27 08:10:20 +02:00
parent 5eb3ab6bc9
commit 87ba336d88
Signed by: NBSgamesAT
GPG Key ID: B2F1E0D04F024688
2 changed files with 44 additions and 0 deletions

View File

@ -65,4 +65,7 @@ MQTT topic `tabletenniscounter/display/number/command` is used to send the score
Should state ON be sent without any other attribute, the nbs logo is displayed with a little minus at the end for no particular reason. Should state ON be sent without any other attribute, the nbs logo is displayed with a little minus at the end for no particular reason.
# Sonoff Stecker 1 (Sonoff Plug 1)
Is the base implementation of the Sonoff Power switch. Nothings special. Still here just in case someone wants it.
More infos are coming soon. More infos are coming soon.

41
sonoffStecker1.yaml Normal file
View File

@ -0,0 +1,41 @@
esphome:
name: sonoffstecker1
platform: ESP8266
board: sonoff_basic
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret ss1password
encryption:
key: !secret ss1password
ota:
password: !secret ss1password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
switch:
- platform: gpio
name: "Sonoff Stecker 1"
pin: GPIO12
id: relay
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
id: "sonoff_power"
on_press:
- switch.toggle: relay