testicle/esphome/device_packages/sonoff-tx-series.yaml
Frank "PHiAX" Weggelaar beadd7cbda Spelling
2026-01-25 17:26:16 +01:00

40 lines
No EOL
763 B
YAML

esp8266:
board: esp01_1m
api:
on_client_connected:
then:
- light.turn_on: blue_led_light
on_client_disconnected:
then:
- light.turn_off: blue_led_light
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "${friendly_devicename} Touch-pad"
on_press:
- light.toggle: light_switch
output:
- platform: esp8266_pwm
id: blue_led
pin: GPIO13
inverted: True
- platform: gpio
pin: GPIO12
id: relay
light:
- platform: monochromatic
name: "${friendly_devicename} WiFi LED"
output: blue_led
internal: True
id: blue_led_light
- platform: binary
name: "${friendly_devicename} Licht"
output: relay
id: light_switch