diff --git a/esphome/device_packages/sonoff-tx-series.yaml b/esphome/device_packages/sonoff-tx-series.yaml new file mode 100644 index 0000000..940c63d --- /dev/null +++ b/esphome/device_packages/sonoff-tx-series.yaml @@ -0,0 +1,74 @@ +esphome: + name: ${devicename} + +esp8266: + board: esp01_1m + +wifi: + ssid: ${ssid} + password: ${wifipass} + fast_connect: on + domain: .phiax.nl + min_auth_mode: WPA2 + ap: + ssid: "${friendly_devicename} Hotspot" + password: ${hotspotpass} + +captive_portal: + +api: + encryption: + key: ${apikey} + on_client_connected: + then: + - light.turn_on: blue_led_light + on_client_disconnected: + then: + - light.turn_off: blue_led_light + +ota: + - platform: esphome + password: ${otapass} + +web_server: + port: 80 + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "${friendly_devicename} Touchpad" + on_press: + - light.toggle: light_switch + +sensor: + - platform: wifi_signal + name: "${devicename} WiFi Signal" + update_interval: 300s + +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 + id: blue_led_light + - platform: binary + name: "${friendly_devicename} Licht" + output: relay + id: light_switch + +switch: + - platform: restart + name: "${friendly_devicename} Restart" + +logger: \ No newline at end of file