Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95370

Convert an IR controlled air conditioner to a proper climate device

$
0
0

@robi wrote:

Hello community!

I searched all over the forum an the internet and didn’t find any normal IR-controlled AC devices to be integrated as standard “climate” units.

Using a simple IR blaster the devices can be controlled using JSON strinks like this, usinng IRhvac command:

'IRhvac {"Vendor":"GREE","Model":1,"Power":"on","Mode":"heat","Celsius":"on","Temp":21,"FanSpeed":"auto","SwingV":"auto","Turbo":"off","Light":"on"}'

The IR blaster uning Tasmota firmware can be easily integrated in Home Assistant like this, as a switch, to just turn on and off the AC:

  - platform: mqtt
    name: "Room1"
    command_topic: "cmnd/ir-room1/backlog"
    payload_on: 'IRhvac {"Vendor":"GREE","Model":1,"Power":"on","Mode":"heat","Celsius":"on","Temp":21,"FanSpeed":"auto","SwingV":"auto","Turbo":"off","Light":"on"}'
    payload_off: 'IRhvac {"Vendor":"GREE","Model":1,"Power":"off","Mode":"off","Celsius":"on","Temp":21,"FanSpeed":"auto","SwingV":"auto","Turbo":"off","Light":"off"}'

But, that’s not very useful if one wants to modify AC parameters.

Is there a way to crate an abstraction layer between an climate.mqtt device and the payloads required to be sent?

I’m thinking about some virtual device with different topics as a standard climate.mqtt, but these topics would point to some sort of script or or function which would concatenate the json string based on the required values, and then send them by mqtt to the real IR blaster topic as a normal IRhvac command. Does such an “mqtt topic catcher” exist?

Can you please point me in the right direction? How to do that?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>