Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: thermostat
- platform: ESP8266
- board: nodemcuv2
- esp8266_restore_from_flash: True
- on_boot:
- priority: 500
- then:
- - climate.control:
- id: climateid
- mode: "HEAT"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- ap:
- ssid: thermostat
- password: !secret ap_password
- web_server:
- port: 80
- logger:
- api:
- ota:
- captive_portal:
- sensor:
- - platform: dht
- pin: D5
- temperature:
- name: "Test Room Temperature"
- id: test_id
- humidity:
- name: "Test Room Humidity"
- update_interval: 60s
- switch:
- - platform: gpio
- pin: D8
- id: Relay
- name: "Heating Element Relay"
- climate:
- - platform: thermostat
- name: "thermostat_test"
- sensor: test_id
- id: climateid
- default_target_temperature_low: 30 °C
- heat_action:
- - switch.turn_on: Relay
- idle_action:
- - switch.turn_off: Relay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement