Collection of code for ESP8266 devices
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Haigh fb7b4cfe16 Add autoupdate.h as a common file for all projects 1 month ago
Case [ClimateControl] Add 3D printable case for example usage 2 months ago
lib [ClimateControl] Update to IRremoteESP8266 v2.5.6 3 months ago
src [ClimateControl] Ship out autoupdate to a different file and make it optional via #define WITH_AUTOUPDATE 1 month ago Add more links to the parts I used on AliExpress 3 months ago
platformio.ini Add autoupdate.h as a common file for all projects 1 month ago


ESP8266 D1 Mini (Wemos)


This code is to be used with HomeAssistant and its Generic Thermostat card.

It will listen on MQTT topic climate/heater

HA Configuration example:

  - platform: generic_thermostat
    name: Heater
    heater: switch.heater_control
    target_sensor: sensor.climate_temp
    min_temp: 12
    max_temp: 26
    ac_mode: false
    target_temp: 20
    cold_tolerance: 1
    hot_tolerance: 0.5
      seconds: 60
      minutes: 2
    initial_operation_mode: "auto"
    away_temp: 15
    precision: 0.1

  - platform: mqtt
    name: "Heater Control"
    state_topic: "climate/heater"
    command_topic: "climate/heater"
    payload_on: "on"
    payload_off: "off"
    icon: mdi:power

  - platform: mqtt
    name: "Climate Temp"
    state_topic: "climate/current_temp"

  - platform: mqtt
    name: "Climate Humidity"
    state_topic: "climate/current_humidity"