mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-18 11:15:36 +01:00
918de941bc
* Adding manual for Sonoff T1 UK 3 Gang V1.1 This manual is based on the existing 4CH version with necessary changes. I know there's a pending PR for V1 of the same switch but V1.1 is more difficult to get into flashing mode and behaves weirdly after flashing. * Removing .DS_Store * Update devices/sonoff_t1_uk_3gang_v1.1.rst Co-Authored-By: nnmalex <6181345+nnmalex@users.noreply.github.com> * Update devices/sonoff_t1_uk_3gang_v1.1.rst Co-Authored-By: nnmalex <6181345+nnmalex@users.noreply.github.com> * Update devices/sonoff_t1_uk_3gang_v1.1.rst Co-Authored-By: nnmalex <6181345+nnmalex@users.noreply.github.com> * Update devices/sonoff_t1_uk_3gang_v1.1.rst Co-Authored-By: nnmalex <6181345+nnmalex@users.noreply.github.com> * Update devices/sonoff_t1_uk_3gang_v1.1.rst Co-Authored-By: nnmalex <6181345+nnmalex@users.noreply.github.com> * Changing images' extensions From .jpeg to .jpg * Fixing image URLs * Lint
79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
esphome:
|
|
name: <NAME_OF_NODE>
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
# Automation turning on the blue status LED once T1 is booted up
|
|
on_boot:
|
|
priority: -10
|
|
then:
|
|
- light.turn_on: blue_led_light
|
|
|
|
wifi:
|
|
ssid: <YOUR_SSID>
|
|
password: <YOUR_PASSWORD>
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO0
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
name: "Sonoff T1 UK 3 Gang Touchpad 1"
|
|
on_press:
|
|
- switch.toggle: relay_1
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO9
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
name: "Sonoff T1 UK 3 Gang Touchpad 2"
|
|
on_press:
|
|
- switch.toggle: relay_2
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO10
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
name: "Sonoff T1 UK 3 Gang Touchpad 3"
|
|
on_press:
|
|
- switch.toggle: relay_3
|
|
- platform: status
|
|
name: "Sonoff T1 UK 3 Gang Status"
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: "Sonoff T1 UK 3 Gang Relay 1"
|
|
pin: GPIO12
|
|
id: relay_1
|
|
- platform: gpio
|
|
name: "Sonoff T1 UK 3 Gang Relay 2"
|
|
pin: GPIO5
|
|
id: relay_2
|
|
- platform: gpio
|
|
name: "Sonoff T1 UK 3 Gang Relay 3"
|
|
pin: GPIO4
|
|
id: relay_3
|
|
|
|
output:
|
|
# Register the blue LED as a dimmable output ....
|
|
- platform: esp8266_pwm
|
|
id: blue_led
|
|
pin: GPIO13
|
|
inverted: True
|
|
|
|
light:
|
|
# ... and then make a light out of it.
|
|
- platform: monochromatic
|
|
name: "Sonoff T1 UK 3 Gang Blue LED"
|
|
output: blue_led
|
|
internal: true
|
|
id: blue_led_light
|