geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
583 stars 156 forks source link

External RF not updating #64

Closed jdgarcia99 closed 2 years ago

jdgarcia99 commented 2 years ago

Hi!

I have successfully implemented this project on a Wemos D1 Mini running through TTL level shifter.

I can manage the AC from HA without any problem and the response is very good.

However, although the documentation says that external RF calls are also informed to HA I cannot get this to work and any RF command is not updated

I'm using last versions of HA, ESPHome and libraries

Am I missing something?

Thx in advance!

Please find config file:

substitutions:
  name: ac-salon
  friendly_name: AC Salon

esphome:
  name: ${name}
  platform: ESP8266
  board: esp01_1m
  # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2

wifi:
  ssid: !secret iot_ssid
  password: !secret iot_password
  fast_connect: true

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${friendly_name} Fallback Hotspot"
    password: !secret ap_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

captive_portal:

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

# Enable Home Assistant API
api:

ota:
  password: !secret ota_password

# Enable Web server.
web_server:
  port: 80

  # Sync time with Home Assistant.
  # Sync time with Home Assistant.

# MQTT
mqtt:
  broker: 192.168.1.211
  port: 1883
  topic_prefix: ${name}

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: 15s

external_components:
  - source: github://geoffdavis/esphome-mitsubishiheatpump

climate:
  - platform: mitsubishi_heatpump
    name: "${friendly_name}"
    # Optional
    update_interval: 500ms

    # 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: UART0
jdgarcia99 commented 2 years ago

EDIT: It turned to to be the pull-ups resistors of the wemos board.

I did cut the traces to the resistors and let direct connection to RX and TX from the TTL shift converter and voilà! everything works like a charm!

So I close the thread here.

Thanks!