Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ironicbadger/9e67e8e917f17636177820e4818ce8fe to your computer and use it in GitHub Desktop.

Select an option

Save ironicbadger/9e67e8e917f17636177820e4818ce8fe to your computer and use it in GitHub Desktop.

Revisions

  1. ironicbadger created this gist Jul 10, 2024.
    104 changes: 104 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,104 @@
    ---
    substitutions:
    name: esp32-garage-heatpump
    friendly_name: esp32-garage-heatpump

    esphome:
    name: ${name}

    esp32:
    board: esp32doit-devkit-v1
    # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2

    wifi:
    ssid: !secret wifi_ssid
    password: !secret wifi_password

    # Note: if upgrading from 1.x releases of esphome-mitsubishiheatpump, be sure
    # to remove any old entries from the `libraries` and `includes` section.
    #libraries:
    # Remove reference to SwiCago/HeatPump

    #includes:
    # Remove reference to src/esphome-mitsubishiheatpump

    # Enable logging
    logger:
    # ESP8266 only - disable serial port logging, as the HeatPump component
    # needs the sole hardware UART on the ESP8266

    # Enable Home Assistant API
    api:
    encryption:
    key: ""

    mqtt:
    broker: !secret mqtt_broker
    username: !secret mqtt_username
    password: !secret mqtt_password
    client_id: ${name}
    #discovery: false
    topic_prefix: esphome/${name}

    ota:
    - platform: esphome
    password: ""

    # Enable Web server.
    web_server:
    port: 80

    # Sync time with Home Assistant.
    #time:
    #- platform: homeassistant
    # id: homeassistant_time

    # Text sensors with general information.
    text_sensor:
    # Expose ESPHome version as sensor.
    - platform: version
    name: ${name} ESPHome Version
    # Expose WiFi information as sensors.
    - platform: wifi_info
    ip_address:
    name: ${name} IP
    ssid:
    name: ${name} SSID
    bssid:
    name: ${name} BSSID

    # Sensors with general information.
    sensor:
    # Uptime sensor.
    - platform: uptime
    name: ${name} Uptime

    # WiFi Signal sensor.
    - platform: wifi_signal
    name: ${name} WiFi Signal
    update_interval: 60s

    external_components:
    #- source: github://geoffdavis/esphome-mitsubishiheatpump
    #- source: "github://geoffdavis/esphome-mitsubishiheatpump@31ed3068fcf0713873b157e28d0d36248a352d83"
    - source: github://echavet/MitsubishiCN105ESPHome

    climate:
    #- platform: mitsubishi_heatpump
    - platform: cn105
    name: "${friendly_name}"
    supports:
    swing_mode: []
    vertical_vane_select:
    name: ${name} Vertical Vane

    # ESP32 only - change UART0 to UART1 or UART2 and remove the
    # logging:baud_rate above to allow the built-in UART0 to function for
    # logging.
    #hardware_uart: UART2

    uart:
    id: HP_UART
    baud_rate: 2400
    tx_pin: GPIO17
    rx_pin: GPIO16