Tasmota MQTT IRHVAC Controller

Thanks for the answer.
And…
After restarting Home Assistant I don’t see the initial temperature
Is this normal ?
2020-04-26_17-55-03

1 Like

I had a big desire to fix all things tonight, but after updating my Home ASSisstant to the later version - It just died! Sorry … Will Continue after I get my HASS up and running again …

Finally my parts have arrived so will go about setting this up and trying it. Glad gh0s7 is still working on this project

1 Like

I am using Daikin HVAC: FTNE25MV1V9 and user SmartIR with broadlink rm mini 3 to control them; but no state response. I used to use IRHVAC tasmota but I couldn’t, anyone who used this code to use Tasmota IRHVAC can help me. Thank you so muck!

@ngonluarecca I can help you, but I need more details aout the prolem. What is not working? What the log file says? What is your config? What firmware is your rm mini running? :slight_smile:

@Grantoboy @conrad66 @artuditu @iz3man

I finally found some time to make the new version of this custom component. Now you can control all attributes like econo and turbo. Also I fixed the bug, that started from HA v.108 with the target_temperature_step being always 0.5, instead of the defined in the configuration.yaml file one. :slight_smile:

UPDATED LINKS!!!
There is a new release and CHANGELOG.md was renamed to SERVICES.md. Also I gave examples how to use the services with switches.

This is the link for the new release: Tasmota IRHVAC for HA v0.108+

This is a link for some basic instructions on how to use the newly added services: SERVICES.md

Screenshot from my test HA with the switches mentioned above

@conrad66
As for your last question:

After restarting Home Assistant I don’t see the initial temperature
Is this normal ?

Yes, this is normal, as there has to be some time, until Tasmota send the current temperature to the component, via MQTT, after HA restart. :slight_smile:

Awesome. Thanks heaps for your work with this.

1 Like

Excellent. Thank you. Will test asap!! :grinning: :+1:
EDIT:
Tried it, but it’s not 100% clear how to use TURBO, ECONO etc …
Those are services that need to be called, correct? But what’s the “service data”? Can those services included in the thermostat card somehow? Or will this stay seperated?

@Grantoboy @conrad66 @artuditu @iz3man

I updated my last answer. There is a newer release, with a small fix on something that no one can see in action, but I recommend to use the new climate.py. The change is only in this file. Replace it with the new one and restart HA.

Also in services there is an example how to use the services with template switch. In addition they can be used with scripts, state icons, etc.

I hope that helps :slight_smile:

@iz3man

Can those services included in the thermostat card somehow? Or will this stay seperated?

For now, it is not possible to include them in the thermostat card and will stay separated. :slight_smile: One day, when this become possible, I’ll do my best to include them in the card. :slight_smile:

@gh0s7: Works great. Thanks for the updated information.

image

This set the TURBO mode on/off. :slight_smile:

1 Like

I’m always getting this every time Hassio Restart.

@Iq85k show me your config. :slight_smile: Also, tell me what your log says. :slight_smile:

So I did a fresh git pull today, and am running the tasmota-ir.bin firmware (can send commands manually just fine)

With the aircon in an Off state:
If I move the temperature slider the aircon beeps
If I hit the heat button the temperature goes back to 16 and the aircon beeps twice and comes on (and seems to be in auto. or fan only)
If I move the temperature back up to 26 it beeps but then the temperature drops to 16 again
If I hit the heat button again it goes back to auto, if I move the temperature it drops to 16 again.

  - platform: tasmota_irhvac
    name: Loungeroom Samsung IRHvac
    command_topic: "cmnd/LoungeIR/irhvac"
    state_topic: "tele/LoungeIR/RESULT"
    temperature_sensor: "sensor.dummy_temperature"
    protocol: "SAMSUNG_AC"
    target_temp: 26 #optional - default 26 int value
    initial_operation_mode: "auto" # optional - default "off" string value
    away_temp: 24 #optional - default 24 int value
    precision: 1.0 #optional - default 1.0 float value
    supported_modes:
      - heat
      - cool
      - dry
      - fan_only
      - auto
      - "off" #Turns the AC off - Should be quoted and should be always included here
    supported_fan_speeds:
      - max
      - medium
      - min
      - auto
    supported_swing_list:
      - "off"
      - vertical #up to down
      - horizontal # Left to right - remove if your AC does not support it
      - both # remove if your AC does not support horizontal

List of commands sent

Message 7 received on cmnd/LoungeIR/irhvac at 11:52 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "off",
    "Mode": "off",
    "Celsius": "on",
    "Temp": 16,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 6 received on cmnd/LoungeIR/irhvac at 11:51 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "auto",
    "Celsius": "on",
    "Temp": 26,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 5 received on cmnd/LoungeIR/irhvac at 11:51 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "heat",
    "Celsius": "on",
    "Temp": 16,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 4 received on cmnd/LoungeIR/irhvac at 11:48 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "off",
    "Mode": "off",
    "Celsius": "on",
    "Temp": 16,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 3 received on cmnd/LoungeIR/irhvac at 11:48 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "auto",
    "Celsius": "on",
    "Temp": 26,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 2 received on cmnd/LoungeIR/irhvac at 11:47 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "heat",
    "Celsius": "on",
    "Temp": 16,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 1 received on cmnd/LoungeIR/irhvac at 11:47 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "off",
    "Celsius": "on",
    "Temp": 26,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}
QoS: 0 - Retain: false
Message 0 received on cmnd/LoungeIR/irhvac at 11:47 AM:
{
    "Vendor": "SAMSUNG_AC",
    "Model": "-1",
    "Power": "on",
    "Mode": "off",
    "Celsius": "on",
    "Temp": 25,
    "FanSpeed": "auto",
    "SwingV": "off",
    "SwingH": "off",
    "Quiet": "off",
    "Turbo": "off",
    "Econo": "off",
    "Light": "off",
    "Filter": "off",
    "Clean": "off",
    "Beep": "off",
    "Sleep": -1
}

Log Details (WARNING)

Logger: homeassistant.helpers.service
Source: helpers/service.py:258
First occurred: 5:39:30 AM (1 occurrences)
Last logged: 5:39:30 AM

Unable to find services.yaml for the tasmota_irhvac integration

Log Details (ERROR)

Logger: homeassistant.setup
Source: setup.py:178
First occurred: 5:39:19 AM (1 occurrences)
Last logged: 5:39:19 AM

Setup failed for tasmota_irhvac: No setup function defined.

@Iq85k I mean the “home-assistant.log” file in the “config” directory. Restart HA and search in the log for “tasmota_irhvac”. You will find an error. Copy the all error block (usually about 7 - 10 lines) and paste them here. :slight_smile: Also, copy and paste your “climate:” config from “configuration.yaml”. :slight_smile:
EDIT: Also … What version of Home Assistant are you using? I’m starting to suspect, that you are using the beta versions, and there are some changes, that I’m not aware of… :slight_smile:

@Freman Scan your real AC remote IR codes on 25C and 26C and paste me the “IrReceived” result from Tasmota console. What I can tell you right now is that you’ve missed the “model:” key in your config and “tasmota_irhvac” component sends its default value of “-1” for that key, which is invalid for “SAMSUNG_AC” protocol and when Tasmota receive it, it actually sends temperature key with default value of 16. So you have to scan your original IR remote to see what the actual “model:” value should be and populate it in the config. :slight_smile: Most probably it will be “1”, but test your IR code, to be shure. :slight_smile: If the problem is solved by populating the “model” key, there is no need to paste the codes here. And … Keep us posted with the results. :slight_smile:

Hi Hristo, I am very happy using your component.

I want to make a small contribution to your great job.
I saw there is a file missing on the component, so I created a “services.yaml” file to avoid the warning message on the log of home assistant and also to provide examples on the service page of home assistant.
This file should be added to the folder “custom_components/tasmota_irhvac/services.yaml”

the content of the file is:

set_beep:
  description: Sets Beep mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    beep:
      description: Sets Beep mode
      example: "on"

set_clean:
  description: Sets Clean mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    clean:
      description: Sets Clean mode
      example: "on"

set_econo:
  description: Sets Econo mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    econo:
      description: Sets Econo mode
      example: "on"

set_filters:
  description: Sets Filters mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    filters:
      description: Sets Filters mode
      example: "on"

set_light:
  description: Sets Light mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    light:
      description: Sets Light mode
      example: "on"

set_quiet:
  description: Sets Quiet mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    quiet:
      description: Sets Quiet mode
      example: "on"

set_sleep:
  description: Sets Sleep mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    sleep:
      description: Sets Sleep mode
      example: "0"

set_turbo:
  description: Sets Turbo mode.
  fields:
    entity_id:
      description: Name(s) of the entities to set
      example: "climate.ac_living"
    turbo:
      description: Sets Turbo mode
      example: "on"

Thanks again for your great job.

1 Like

@artuditu Thank you! Added! :slight_smile:

Hi @gh0s7

I tried tossing a 1 in there (tasmoa-ir said the field was optional) but that didn’t help, UI is still bouncing around

{
    "IrReceived": {
        "Protocol": "SAMSUNG_AC",
        "Bits": 112,
        "Data": "0x0x02920F000000F001C2FE71900DF0",
        "Repeat": 0,
        "IRHVAC": {
            "Vendor": "SAMSUNG_AC",
            "Model": -1,
            "Power": "On",
            "Mode": "Auto",
            "Celsius": "On",
            "Temp": 25,
            "FanSpeed": "Auto",
            "SwingV": "Off",
            "SwingH": "Off",
            "Quiet": "Off",
            "Turbo": "Off",
            "Econo": "Off",
            "Light": "On",
            "Filter": "Off",
            "Clean": "Off",
            "Beep": "Off",
            "Sleep": -1
        }
    }
}
{
    "IrReceived": {
        "Protocol": "SAMSUNG_AC",
        "Bits": 112,
        "Data": "0x0x02920F000000F001C2FE71A00DF0",
        "Repeat": 0,
        "IRHVAC": {
            "Vendor": "SAMSUNG_AC",
            "Model": -1,
            "Power": "On",
            "Mode": "Auto",
            "Celsius": "On",
            "Temp": 26,
            "FanSpeed": "Auto",
            "SwingV": "Off",
            "SwingH": "Off",
            "Quiet": "Off",
            "Turbo": "Off",
            "Econo": "Off",
            "Light": "On",
            "Filter": "Off",
            "Clean": "Off",
            "Beep": "Off",
            "Sleep": -1
        }
    }
}

Edit:
I re-copy-pasta’d the config and changed it and now it’s working fine. Just have to do all the other cool things (turn on/off the light, beep, swing, etc)

Thanks

1 Like