Skip to content

Instantly share code, notes, and snippets.

@timmo001
Created March 11, 2019 19:00
Show Gist options
  • Save timmo001/cd681dd19f476b7eb0f766bb93383835 to your computer and use it in GitHub Desktop.
Save timmo001/cd681dd19f476b7eb0f766bb93383835 to your computer and use it in GitHub Desktop.
---
esphome:
name: central_heating
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
# 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: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.139
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: !secret ota_password
binary_sensor:
- platform: status
name: "Central Heating Status"
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Central Heating Left Touchpad"
id: hot_water_button
on_press:
- switch.toggle: hot_water
- platform: gpio
pin:
number: GPIO9
mode: INPUT_PULLUP
inverted: True
name: "Central Heating Right Touchpad"
id: central_heating_button
on_press:
- switch.toggle: central_heating
switch:
- platform: restart
name: "Central Heating Restart"
- platform: gpio
name: "Hot Water"
pin: GPIO12
id: hot_water
- platform: gpio
name: "Central Heating"
pin: GPIO5
id: central_heating
output:
- platform: esp8266_pwm
id: blue_led
pin: GPIO13
inverted: True
light:
- platform: monochromatic
name: "Central Heating Blue LED"
output: blue_led
internal: true
id: blue_led_light
sensor:
- platform: wifi_signal
name: "Central Heating WiFi Signal"
update_interval: 60s
- platform: uptime
name: "Central Heating Uptime"
text_sensor:
- platform: version
name: "Central Heating ESPHome Version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment