Xiaomi IR Remote Climate Component

Not working in 0.96.1
It seems there are some issues with init.py

If I copy this file into the folder HA fails to start and say syntax error on this file
If I delete it HA starts but dont load the component

Please update component from github

I need to stop ha before copying the files, manually remove cache folder, update customize settings in yaml file, then reboot hassos but now it works. Thanks :slight_smile:

my xiaomi ir remote control keep disconecting and doesnt want to connect at all. any body exp this?

Hello.

Feedback would be possible with some smart socket like the Xiaomi Smart Plug (zigbee or wifi). Combined with this information you should be able to turn on/off correctly your AC.

Does anyone know if something similar exists under the form of an internal plug? Some home-assistant compatible smart device that allows you to measure power (not consumption but at least a on/off sensor).

Thanks,
Victor

Update: found what I was looking for: https://www.reddit.com/r/homeassistant/comments/atxu02/10_wifi_energy_plug_meters_with_esphome_final/

Cheers.

HI all, I just used hacs to setup the component . My remote is setup and running but if i add the climate coponent i get

image

if I remove the climate it works fine to proceed the configuration validation

here my config:

### Xiaomi Remote

remote:
  - platform: xiaomi_miio
    host: 192.168.1.141
    token: 8c8af2c6395c6d8c136d20939f264a3b
    name: Remote Rose

  - platform: xiaomi_miio
    host: 192.168.1.142
    token: b79479110e36195fd60c1f3285323d36
    name: Remote Bedroom

  - platform: xiaomi_miio
    host: 192.168.1.114
    token: 7612164cdd50d27d8ef4e5ffb4691d09
    name: Remote Evan

  - platform: xiaomi_miio
    host: 192.168.1.217
    token: dbaad2b7975c2d2a5e5345b855ad4e96
    name: Remote Living Room

# Climate

climate:
#  - platform: smartir
#    name: Smart IR 
#    unique_id: bedroom_ac
#    device_code: 1001
#    controller_data: remote.remote_bedroom
#    temperature_sensor: sensor.temperature_bedroom
#    humidity_sensor: sensor.humidity_bedroom
#    power_sensor: binary_sensor.ac_power
#  - platform: cozytouch
#    username: [email protected]
#    password: cozytouch

############## AC ROSE #######################

  - platform: xiaomi_remote
    name: Air Conditioner Rose
    remote: remote.remote_rose
#    temp_sensor: sensor.multisensor_rose_temperature
    commands: !include Hitachi.yaml
    min_temp: 16
    max_temp: 32
#    target_temp: 21
#    target_temp_step: 1
    hvac_mode: 'off'
#    fan_mode: low
    customize:
      hvac_modes:
        - cool
        - heat
        - dry
        - auto
        - fan_only
        - 'off'
      fan_modes:
        - low
        - medium
        - high
        - auto

################### AC BEDROOM ###########################

  - platform: xiaomi_remote
    name: Air Conditioner Bedroom
#    temp_sensor: sensor.multisensor_bedroom_temperature
    remote: remote.remote_bedroom
    commands: !include Hitachi.yaml
#    min_temp: 16
#    max_temp: 32
#    target_temp: 21
#    target_temp_step: 1
    hvac_mode: 'off'
#    fan_mode: low
    customize:
      hvac_modes:
        - cool
        - heat
        - dry
        - auto
        - fan_only
        - 'off'
      fan_modes:
        - low
        - medium
        - high
        - auto

############### AC EVAN ###################################

  - platform: xiaomi_remote
    name: Air Conditioner Evan
    remote: remote.remote_evan
#    temp_sensor: sensor.multisensor_evan_temperature
    commands: !include Hitachi.yaml
    min_temp: 16
    max_temp: 32
#    target_temp: 21
#    target_temp_step: 1
    hvac_mode: 'off'
#    fan_mode: low
    customize:
      hvac_modes:
        - cool
        - heat
        - dry
        - auto
        - fan_only
        - 'off'
      fan_modes:
        - low
        - medium
        - high
        - auto