hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
187 stars 64 forks source link

Can't update HA UI anymore #96

Closed bilogic closed 1 year ago

bilogic commented 1 year ago

Hi,

// 1. turn off the aircon
cmnd/tasmota_aircon/IRhvac = 
    {"Vendor":"MITSUBISHI_AC","Mode":"Cool","Power":"Off","Celsius":"On",
    "FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off",
    "Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1} 

// 2. update HA's UI
tele/tasmota_aircon/STATE = {"IRHVAC":
    {"Vendor":"MITSUBISHI_AC","Mode":"Off","Power":"Off","Celsius":"On",
    "FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off",
    "Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}
} 

// 3. This was tested to still be working, it updates HA's UI only, without turning on the S20 switch
tele/tasmota_S20/STATE = {"POWER":"ON"}

I have a script from the past that sends out the above, this script lives outside HA, so what it does is take certain actions and informs HA about it via MQTT. After moving everything to the latest version, part 2 does not update HA's UI anymore.

My questions are:

  1. Does the part 2 MQTT go through Tasmota-IRHVAC?
  2. If yes, any idea what the issue might be?

Thank you!

bilogic commented 1 year ago

Ok, it was due to the case sensitive vendor mitsubishi_ac.

Perhaps should do a case insensitive comparison?