Backup of latest home assistant scripts
This commit is contained in:
125
sonoff-3x-wohnzimmer.yaml
Normal file
125
sonoff-3x-wohnzimmer.yaml
Normal file
@@ -0,0 +1,125 @@
|
||||
esphome:
|
||||
name: sonoff-3x-wohnzimmer
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
board_flash_mode: dout
|
||||
|
||||
mqtt:
|
||||
broker: 192.168.178.36
|
||||
port: 1884
|
||||
username: nils
|
||||
password: inginf95
|
||||
on_message:
|
||||
- topic: sonoff-3x-wohnzimmer/relay1
|
||||
payload: "on"
|
||||
then:
|
||||
- switch.turn_on: relay
|
||||
- topic: sonoff-3x-wohnzimmer/relay1
|
||||
payload: "off"
|
||||
then:
|
||||
- switch.turn_off: relay
|
||||
- topic: sonoff-3x-wohnzimmer/relay2
|
||||
payload: "on"
|
||||
then:
|
||||
- switch.turn_on: relay2
|
||||
- topic: sonoff-3x-wohnzimmer/relay2
|
||||
payload: "off"
|
||||
then:
|
||||
- switch.turn_off: relay2
|
||||
- topic: sonoff-3x-wohnzimmer/relay3
|
||||
payload: "on"
|
||||
then:
|
||||
- switch.turn_on: relay3
|
||||
- topic: sonoff-3x-wohnzimmer/relay3
|
||||
payload: "off"
|
||||
then:
|
||||
- switch.turn_off: relay3
|
||||
|
||||
# Disable logging
|
||||
logger:
|
||||
baud_rate: 0
|
||||
|
||||
# Enable Home Assistant API
|
||||
#api:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: nils
|
||||
password: inginf95
|
||||
|
||||
ota:
|
||||
password: "0848c056d780accd7fbb0dbaf989156b"
|
||||
|
||||
wifi:
|
||||
ssid: "EasyBox-368239_WZ"
|
||||
password: "inginf95"
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Sonoff-3x-Wohnzimmer"
|
||||
password: "Wky9j6BNCgI0"
|
||||
|
||||
captive_portal:
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO0
|
||||
mode: INPUT_PULLUP
|
||||
inverted: True
|
||||
name: "Sonoff Basic Button"
|
||||
on_press:
|
||||
- switch.toggle: fakebutton
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Sonoff Basic Relay"
|
||||
optimistic: true
|
||||
id: fakebutton
|
||||
turn_on_action:
|
||||
- switch.turn_on: relay
|
||||
- light.turn_on: led
|
||||
turn_off_action:
|
||||
- switch.turn_off: relay
|
||||
- light.turn_off: led
|
||||
- platform: gpio
|
||||
name: "Relay1"
|
||||
id: relay
|
||||
pin: GPIO12
|
||||
- platform: gpio
|
||||
name: "Relay2"
|
||||
id: relay2
|
||||
pin:
|
||||
number: GPIO1
|
||||
- platform: gpio
|
||||
id: relay3
|
||||
name: "Relay3"
|
||||
pin:
|
||||
number: GPIO3
|
||||
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: basic_green_led
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: True
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
name: "Sonoff Basic Green LED"
|
||||
output: basic_green_led
|
||||
id: led
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "Sonoff Basic WiFi Signal"
|
||||
update_interval: 60s
|
||||
- platform: uptime
|
||||
name: "Sonoff Basic Uptime"
|
||||
|
||||
|
||||
text_sensor:
|
||||
- platform: version
|
||||
name: "Sonoff Basic ESPHome Version"
|
||||
Reference in New Issue
Block a user